cmake
Generates build files for cross-platform C/C++ projects
Syntax
$cmake [options] <source-dir>
Optionen
-S
-B
-D
--build
Examples
Examples
$cmake -S . -B build
Examples
$cmake --build build
Examples
$cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
Typical use cases
Note
Configures build systems and outputs Makefiles or Ninja projects.
Export