Programming
cmake
Generiert Build-Dateien für plattformübergreifende C/C++-Projekte
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Arch
Alpine
macOS
Verifiziert: 2026-05-13
Syntax
$cmake [options] <source-dir>
Optionen
-S
-B
-D
--build
Beispiele
$cmake -S . -B build
$cmake --build build
$cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
Typische Anwendungsfälle
?
Standardverwendung
cmake --help
Hinweis
Konfiguriert Buildsysteme und erzeugt Makefiles oder Ninja-Projekte.
Export