- Notifications
You must be signed in to change notification settings - Fork22
Bunch of CMake pain in the baker
License
UCL/GreatCMakeCookOff
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a repository of usefull and less than usefull cmake recipes. It is distributed under theMIT License
The files in this repository can be added individually or as a whole to a project, as long as theMIT copyright terms are followed. One possibility is to include this project as agitsubmodule.
However, the easiest method may well be to have this repository downloaded upon configuration of aproject. In that case, the fileLookUp-GreatCMakeCookOff.cmakeshould be downloaded and inserted into the target project. It can then be included in the targetproject's mainCMakeLists.txt
file:
include(LookUp-GreatCMakeCookOff)
This will download the cook-off into the build directory right at configure time. Cook-off recipescan then be used anywhere below that.
Another option is to pointCMake
towards the location on disk where a repo of the cook-off can befound, or more explicitely, where the fileGreatCMakeCookOffConfig.cmake
can be found. This isdone withcmake -DGreatCMakeCookOff_DIR=/path/to/cookoff/cmake ..
. Please note that this trick worksfor anyCMake
project that definesSomethingConfig.cmake
files.
Please check thewiki
About
Bunch of CMake pain in the baker