Мануалы и справочники Общие команды
cmake

Команда cmake: опции, ключи и примеры использования

cmake

Cross-platform build system generator. It generates Makefiles, Visual Studio projects or others, depending on the target system.

  • Generate a Makefile and use it to compile a project in the same folder as the source:

cmake && make

  • Generate a Makefile and use it to compile a project in a separate "build" folder (out-of-source build):

cmake -H. -B{{build}} && make -C {{build}}

  • Run cmake in interactive mode (it will ask for each variable, instead of using defaults):

cmake -i

Изображение Выучи 10 хороших привычек для работы в UNIX от IBM