mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
cmake: resolve PR conversations
This commit is contained in:
parent
c39095a21d
commit
32e858f5f7
1 changed files with 12 additions and 5 deletions
|
@ -1,21 +1,28 @@
|
|||
# cmake
|
||||
|
||||
> Cross-platform build, testing and packaging automation system.
|
||||
> CMake uses its own shell-like syntax and generates recipes for many build systems.
|
||||
> Cross-platform build automation system, that generates recipes for native build systems.
|
||||
> More information: <https://cmake.org/cmake/help/latest/manual/cmake.1.html>.
|
||||
|
||||
- Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:
|
||||
|
||||
`cmake {{path/to/project_directory}}`
|
||||
|
||||
- Generate a build recipe, build type setted to `Release` with CMake variable:
|
||||
|
||||
`cmake {{path/to/project_directory}} -D CMAKE_BUILD_TYPE=Release`
|
||||
|
||||
- Build artifacts with the generated recipe in `build_directory`:
|
||||
|
||||
`cmake --build {{path/to/build_directory}}`
|
||||
|
||||
- Install the build artifacts into /usr/local/ striping debugging symbols:
|
||||
- Install the build artifacts into `/usr/local/` and strip debugging symbols:
|
||||
|
||||
`cmake --install {{path/to/build_directory}} --strip --prefix /usr/local/`
|
||||
`cmake --install {{path/to/build_directory}} --strip`
|
||||
|
||||
- Install the build artifacts using the custom prefix for paths:
|
||||
|
||||
`cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/prefix_directory}}`
|
||||
|
||||
- Run a custom build target:
|
||||
|
||||
`cmake --build {{path/to/build_dir/}} --target {{target_name}}`
|
||||
`cmake --build {{path/to/build_directory}} --target {{target_name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue