新闻  |   论坛  |   博客  |   在线研讨会
cmake 命令行参数
电子禅石 | 2020-02-17 17:00:20    阅读:4390   发布文章


https://cmake.org/cmake/help/latest/manual/cmake.1.html#manual:cmake(1)

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>]
  1. cmake 运行指定cmake 脚本 

    cmake [{-D <var>=<value>}...] -P <cmake-script-file>


    Process the given cmake file as a script written in the CMake language.  No configure or generate step is performed and the cache is not modified.  If variables are defined using -D, this must be done before the -P argument.

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
属于自己的技术积累分享,成为嵌入式系统研发高手。
推荐文章
最近访客