2016-11-30 16:23:28 -05:00
|
|
|
# cmake
|
|
|
|
|
2017-05-04 00:18:57 +01:00
|
|
|
> Cross-platform build system generator.
|
|
|
|
> It generates Makefiles, Visual Studio projects or others, depending on the target system.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://cmake.org/cmake/help/v3.2/manual/cmake.1.html>.
|
2016-11-30 16:23:28 -05:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
- Generate a Makefile and use it to compile a project in the same directory as the source:
|
2016-11-30 16:23:28 -05:00
|
|
|
|
2017-05-04 00:18:57 +01:00
|
|
|
`cmake && make`
|
2016-11-30 16:23:28 -05:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
- Generate a Makefile and use it to compile a project in a separate "build" directory (out-of-source build):
|
2016-11-30 16:23:28 -05:00
|
|
|
|
2017-05-22 23:09:28 +01:00
|
|
|
`cmake -H. -B{{build}} && make -C {{build}}`
|