1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 09:02:08 +02:00
tldr/pages/common/cmake.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

512 B

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 directory as the source:

cmake && make

  • Generate a Makefile and use it to compile a project in a separate "build" directory (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