General CMake documentation links

From PLplotWiki
Jump to: navigation, search

Useful CMake documentation.

  • To get the same documentation in perhaps more convenient form from cmake itself, run

cmake --help-full |less

  • To get a complete list of cmake commands use

cmake --help-command-list |less

  • To get specific help for, e.g., the ADD_SUBDIRECTORY command use

cmake --help-command ADD_SUBDIRECTORY

  • CMake is an easy language to understand so the cmake modules in $cmake_prefix/share/CMake/Modules, where cmake_prefix is the prefix for your cmake install, are a good source of ideas.
Personal tools