mirror of https://github.com/CrimsonTome/tldr.git
cmake: add generator flag, help example (#10087)
* cmake: Add generator flag * Add help example & generator listpull/23/head
parent
deeffd9df6
commit
4eafd9978d
|
@ -11,6 +11,10 @@
|
||||||
|
|
||||||
`cmake {{path/to/project_directory}} -D {{CMAKE_BUILD_TYPE=Release}}`
|
`cmake {{path/to/project_directory}} -D {{CMAKE_BUILD_TYPE=Release}}`
|
||||||
|
|
||||||
|
- Generate a build recipe using `generator_name` as the underlying build system:
|
||||||
|
|
||||||
|
`cmake -G {{generator_name}} {{path/to/project_directory}}`
|
||||||
|
|
||||||
- Use a generated recipe in a given directory to build artifacts:
|
- Use a generated recipe in a given directory to build artifacts:
|
||||||
|
|
||||||
`cmake --build {{path/to/build_directory}}`
|
`cmake --build {{path/to/build_directory}}`
|
||||||
|
@ -26,3 +30,7 @@
|
||||||
- Run a custom build target:
|
- Run a custom build target:
|
||||||
|
|
||||||
`cmake --build {{path/to/build_directory}} --target {{target_name}}`
|
`cmake --build {{path/to/build_directory}} --target {{target_name}}`
|
||||||
|
|
||||||
|
- Display help, obtain a list of generators:
|
||||||
|
|
||||||
|
`cmake --help`
|
||||||
|
|
Loading…
Reference in New Issue