mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-07 02:15:45 +02:00
cmake: add page (closes #1172)
This commit is contained in:
parent
e8d141b6c4
commit
d3fed3b31f
1 changed files with 26 additions and 0 deletions
26
pages/common/cmake.md
Normal file
26
pages/common/cmake.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# cmake
|
||||
|
||||
> CMake is a cross-platform build system generator.
|
||||
|
||||
Make a project in the same directory as the source:
|
||||
|
||||
```
|
||||
cmake
|
||||
make
|
||||
```
|
||||
|
||||
Make a project in a subdirectory, required for some projects:
|
||||
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../
|
||||
make
|
||||
```
|
||||
|
||||
To run cmake in interactive mode (It will ask you for each variable,
|
||||
instead of relying on defaults):
|
||||
|
||||
`cmake -i`
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue