From tasks and workflows to apps and systems, Make is where you create and automate at the speed of your ideas. - Make
Report repository Releases28 build/install_cmake/ninja: use project instead of scriptLatest Jul 14, 2022 + 27 releases Sponsor this project scivision ko-fi.com/scivision Languages CMake75.3% Python10.2% Shell6.5% C++4.8% C1.6% Fortran1.6%...
可以是打包文件的 URL,比如 github 上的某个项目的 tag,或者像 boost 这种,在官网提供的下载链接,也可以直接是 GIT_REPOSITORY,一般建议直接使用打包的 tag,因为比较快,而且有固定的 tag,比较好做版本管理,但是有些项目引用了外部项目需要执行 git submodule update --init,这种就比较适合用 git 地址,会自动下载...
include(FetchContent)# 引入功能模块FetchContent_Declare(my-logger #项目名称GIT_REPOSITORYhttps://github.com/ACking-you/my-logger.git #仓库地址GIT_TAGv1.6.2#仓库的版本tagGIT_SHALLOWTRUE#是否只拉取最新的记录)FetchContent_MakeAvailable(my-logger)add_excutable(main ${SRC})# 链接到程序进行使用target_l...
直接复制/Users/***/.ssh/id_rsa.pub的内容,然后在github的SSH and GPG keys新建了一个,填上title粘贴上内容,然后回到终端git clone “你的地址” 结果就报了这个 Cloning into 'xxxx'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. ...
GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.10.0 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> UPDATE_COMMAND"" ) # 添加包含目录 include_directories(${CMAKE_BINARY_DIR}/include) # 添加测试可执行文件
return roleRepository; } } public GenericRepository<Department> DepartmentRepository { get { if (this.departmentRepository == null) { this.departmentRepository = new GenericRepository<Department>(context); } return departmentRepository; } } public void Save() { context.SaveChanges(); } private bool...
GIT_REPOSITORY https://github.com/grpc/grpcGIT_TAG v1.25.0)FetchContent_MakeAvailable(gRPC)add_executable(my_exe my_exe.cc)target_link_libraries(my_exe grpc++)如果你决定使用 FetchContent,不妨考虑一下 CPM 这个 CMake 扩展。CPM 在 FetchContent 和传统的 Package dependency 的基础之上做了很多整合,...
然后 clonehttps://github.com/ttroy50/cmake-examples这个项目到本地,把里面的 01-basic(跳过E-...
( Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG 605a34765aa5d5ecbf476b4598a862ada971b0cc # v3.0.1 DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) FetchContent_Declare( mylib URL myurl/myfile.tar.gz URL_HASH MD5=... DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) FetchContent_MakeAvailable...