Some basic syntax
Build a project
$ mkdir build
$ cmake -S . -B build
$ cmake --build build
Install
$ cmake --build build --target install
$ cmake -v # verbose build
Picking a compiler
$ CC=clang CXX=clang++ cmake ...
Picking a generator
$ cmake -G"mytool"
Top comments (0)