Skip to content

vcatechnology/cmake

Repository files navigation

CMake Extensions

A set of extensions to be used to enhance the functionality of CMake. Intended to be used as a subtree in a project:

git subtree add --squash --prefix cmake https://github.com/vcatechnology/cmake.git master

Then it is possible to use the modules by adding to the CMAKE_MODULE_PATH:

# Make sure we can import CMake extensions
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

To update to a new version of the extensions, run the following command:

git subtree pull --squash --prefix cmake https://github.com/vcatechnology/cmake.git master

It is possible to replace the master in both commands with a version tag, such as v0.1.0. If you would like to keep the whole history, omit the --squash argument.