Skip to content

CMake git utils for work with git repositories dependencies

License

Notifications You must be signed in to change notification settings

sigdev2/cmake_gitutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

cmake_gitutils

CMake git utils for work with git repositories dependencies

Using

CMakeLists.txt of libA:

...

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_gitutils")
include(GitUtils)

...

GitUtils_Define(libB https://github.com/libdev/libB)
GitUtils_Define(libC https://github.com/libdev/libC)
GitUtils_Depends(libA DEPENDS libB libC)

CMakeLists.txt of Application:

...

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_gitutils")
include(GitUtils)

...

GitUtils_Define(libA https://github.com/libdev/libA)

...

add_executable(Application main.cpp)
GitUtils_TargetInclude(Application DEPENDS libA)

About

CMake git utils for work with git repositories dependencies

Topics

Resources

License

Stars

Watchers

Forks

Languages