CMake

Page Contents

References / useful Links

  • https://github.com/onqtam/awesome-cmake
  • https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html
  • https://cgold.readthedocs.io/en/latest/overview.html
  • https://github.com/toeb/moderncmake/blob/master/Modern%20CMake.pdf
  • https://stackoverflow.com/questions/8934295/add-source-in-a-subdirectory-to-a-cmake-project
  • https://stackoverflow.com/questions/17653738/recursive-cmake-search-for-header-and-source-files
  • https://github.com/ruslo/sugar/wiki/Collecting-sources
  • https://crascit.com/2015/02/02/cmake-target-dependencies/
  • http://floooh.github.io/2016/01/12/cmake-dependency-juggling.html
  • http://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/
  • https://cmake.org/pipermail/cmake/2016-May/063400.html
	http://derekmolloy.ie/hello-world-introductions-to-cmake/
https://mirkokiefer.com/cmake-by-example-f95eb47d45b1
https://www.udemy.com/introduction-to-cmake/
https://cgold.readthedocs.io/en/latest/overview/cmake-can.html
https://crascit.com/professional-cmake/
https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/

Misc

Dumpy out all variables and their values:

get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
    message(STATUS "${_variableName}=${${_variableName}}")
endforeach()