3.7. CMake listfiles¶
There are several places where CMake code can live:
CMakeLists.txtlistfiles loaded by
add_subdirectorycommand will help you to create source/binary tree. This is a skeleton of your project.
*.cmakemodules help you to organize/reuse CMake code.
- CMake scripts can be executed by
cmake -Pand help you to solve problems in cross-platform fashion without relying on system specific tools like bash or without introducing external tool dependency like Python.
- 3.7.1. Subdirectories
- 3.7.2. Include modules
- 3.7.3. Common variables
- 3.7.4. Scripts