CMake Commands
Cross-platform build system generator.All CMake pages
- cmake --install build --prefix: install a CMake project to a custom directoryInstall a CMake project to a custom directory with cmake --install build --prefix DIR, install one component, and stage files for packaging with DESTDIR.
- cmake --preset: configure and build with CMakePresets.jsonConfigure and build with CMakePresets.json: cmake --list-presets, cmake --preset NAME, cmake --build --preset NAME and cmake --workflow, with inheritance.
- cmake -LAH: list CMake cache variables and options of a projectList the cache variables and options of a CMake project with cmake -L -N build, add help and advanced entries with -LAH, and filter them by name with -LR.
- cmake clean build: --target clean, --clean-first and --freshClean a CMake build with cmake --build build --target clean, rebuild with --clean-first, and reset the cache with cmake --fresh or by deleting the build tree.