Interaction
1. About
This will detail
- the steps needed to run the cmake or cmake-gui executable
- how to choose a generator
- how to complete the build
2. Setting Build Variables
2.1. Commonly used CMake variables
| Variable | Meaning | |
|---|---|---|
CMAKE_PREFIX_PATH |
Path to search for dependent packages | |
CMAKE_MODULE_PATH |
Path to search for additional CMake modules | |
CMAKE_BUILD_TYPE |
Configuration: Debug \ | Release |
CMAKE_INSTALL_PREFIX |
Path to install build target | |
CMAKE_TOOLCHAIN_FILE |
File containing cross-compiling data such as toolchains and sysroots. | |
BUILD_SHARED_LIBS |
Build shared libraries \ | static libraries |
CMAKE_EXPORT_COMPILE_COMMANDS |
Generate a compile_commands.json file for use with clang-based tools |