1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:42:07 +02:00
tldr/pages/common/cmake.md
2020-11-16 18:53:30 +00:00

13 lines
487 B
Markdown

# cmake
> Cross-platform build system generator.
> It generates Makefiles, Visual Studio projects or others, depending on the target system.
> More information: <https://cmake.org/cmake/help/latest/manual/cmake.1.html>.
- 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}}`