cmake Command Examples

Cross-platform build automation system, that generates recipes for native build systems. More information: https://cmake.org/cmake/help/latest/manual/cmake.1.html.

cmake {{path/to/project_directory}}

cmake {{path/to/project_directory}} -D {{CMAKE_BUILD_TYPE=Release}}

cmake -G {{generator_name}} {{path/to/project_directory}}

cmake --build {{path/to/build_directory}}

cmake --install {{path/to/build_directory}} --strip

cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/directory}}

cmake --build {{path/to/build_directory}} --target {{target_name}}

cmake --help