forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: fix syntax and adjust per code review
- Loading branch information
1 parent
d3fed3b
commit 776fdcf
Showing
1 changed file
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
# cmake | ||
|
||
> CMake is a cross-platform build system generator. | ||
> Cross-platform build system generator. | ||
> It generates Makefiles, Visual Studio projects or others, depending on the target system. | ||
Make a project in the same directory as the source: | ||
- Generate a Makefile and use it to compile a project in the same directory as the source: | ||
|
||
``` | ||
cmake | ||
make | ||
``` | ||
`cmake && make` | ||
|
||
Make a project in a subdirectory, required for some projects: | ||
- Generate a Makefule and use it to compile a project in a separate directory (out-of-source build): | ||
|
||
``` | ||
mkdir build | ||
cd build | ||
cmake ../ | ||
make | ||
``` | ||
`cd {{build_dir}} && cmake ../ && make` | ||
|
||
To run cmake in interactive mode (It will ask you for each variable, | ||
instead of relying on defaults): | ||
- Run cmake in interactive mode (it will ask for each variable, instead of using defaults): | ||
|
||
`cmake -i` | ||
|
||
|