[TOC]
文章参考:https://cmake.org/cmake/help/v3.19/manual/cmake.1.html#build-a-project
概述
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| # Generate a Project Buildsystem cmake [<options>] <path-to-source> cmake [<options>] <path-to-existing-build> cmake [<options>] -S <path-to-source> -B <path-to-build>
# Build a Project cmake --build <dir> [<options>] [-- <build-tool-options>]
Install a Project cmake --install <dir> [<options>]
Open a Project cmake --open <dir>
Run a Script cmake [{-D <var>=<value>}...] -P <cmake-script-file>
Run a Command-Line Tool cmake -E <command> [<options>]
Run the Find-Package Tool cmake --find-package [<options>]
View Help cmake --help[-<topic>]
|