{

Usage

cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Options
  -C <initial-cache>           = Pre-load a script to populate the cache.
  -D <var>[:<type>]=<value>    = Create a cmake cache entry.
  -U <globbing_expr>           = Remove matching entries from CMake cache.
  -G <generator-name>          = Specify a build system generator.
  -T <toolset-name>            = Specify toolset name if supported by
                                 generator.
  -A <platform-name>           = Specify platform name if supported by
                                 generator.
  -Wdev                        = Enable developer warnings.
  -Wno-dev                     = Suppress developer warnings.
  -Werror=dev                  = Make developer warnings errors.
  -Wno-error=dev               = Make developer warnings not errors.
  -Wdeprecated                 = Enable deprecation warnings.
  -Wno-deprecated              = Suppress deprecation warnings.
  -Werror=deprecated           = Make deprecated macro and function warnings
                                 errors.
  -Wno-error=deprecated        = Make deprecated macro and function warnings
                                 not errors.
  -E                           = CMake command mode.
  -L[A][H]                     = List non-advanced cached variables.
  --build <dir>                = Build a CMake-generated project binary tree.
  -N                           = View mode only.
  -P <file>                    = Process script mode.
  --find-package               = Run in pkg-config like mode.
  --graphviz=[file]            = Generate graphviz of dependencies, see
                                 CMakeGraphVizOptions.cmake for more.
  --system-information [file]  = Dump information about this system.
  --debug-trycompile           = Do not delete the try_compile build tree.
                                 Only useful on one try_compile at a time.
  --debug-output               = Put cmake in a debug mode.
  --trace                      = Put cmake in trace mode.
  --trace-expand               = Put cmake in trace mode with variable
                                 expansion.
  --trace-source=<file>        = Trace only this CMake file/module.  Multiple
                                 options allowed.
  --warn-uninitialized         = Warn about uninitialized values.
  --warn-unused-vars           = Warn about unused variables.
  --no-warn-unused-cli         = Don't warn about command line options.
  --check-system-vars          = Find problems with variable usage in system
                                 files.
  --help,-help,-usage,-h,-H,/? = Print usage information and exit.
  --version,-version,/V [<f>]  = Print version number and exit.
  --help-full [<f>]            = Print all help manuals and exit.
  --help-manual <man> [<f>]    = Print one help manual and exit.
  --help-manual-list [<f>]     = List help manuals available and exit.
  --help-command <cmd> [<f>]   = Print help for one command and exit.
  --help-command-list [<f>]    = List commands with help available and exit.
  --help-commands [<f>]        = Print cmake-commands manual and exit.
  --help-module <mod> [<f>]    = Print help for one module and exit.
  --help-module-list [<f>]     = List modules with help available and exit.
  --help-modules [<f>]         = Print cmake-modules manual and exit.
  --help-policy <cmp> [<f>]    = Print help for one policy and exit.
  --help-policy-list [<f>]     = List policies with help available and exit.
  --help-policies [<f>]        = Print cmake-policies manual and exit.
  --help-property <prop> [<f>] = Print help for one property and exit.
  --help-property-list [<f>]   = List properties with help available and
                                 exit.
  --help-properties [<f>]      = Print cmake-properties manual and exit.
  --help-variable var [<f>]    = Print help for one variable and exit.
  --help-variable-list [<f>]   = List variables with help available and exit.
  --help-variables [<f>]       = Print cmake-variables manual and exit.

Generators

The following generators are available on this platform:
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 8 2005 [arch]  = Deprecated.  Generates Visual Studio 2005
                                 project files.  Optional [arch] can be
                                 "Win64".
  Borland Makefiles            = Generates Borland makefiles.
  NMake Makefiles              = Generates NMake makefiles.
  NMake Makefiles JOM          = Generates JOM makefiles.
  Green Hills MULTI            = Generates Green Hills MULTI files
                                 (experimental, work-in-progress).
  MSYS Makefiles               = Generates MSYS makefiles.
  MinGW Makefiles              = Generates a make file for use with
                                 mingw32-make.
  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles JOM
                               = Generates CodeBlocks project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - MinGW Makefiles   = Generates CodeLite project files.
  CodeLite - NMake Makefiles   = Generates CodeLite project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - MinGW Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - NMake Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - MinGW Makefiles       = Generates Kate project files.
  Kate - NMake Makefiles       = Generates Kate project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

}

{

用法

cmake[选项]<path to source>

CMAD[OPTION] <现有构建路径>

指定一个源目录,以便(重新)在

当前工作目录。指定现有的生成目录

重新生成其生成系统。

选项

-C<initial cache>=预加载脚本以填充缓存。

-D<var>[:<type>]=<value>=创建cmake缓存项。

-U<globbing_expr>=从CMake缓存中删除匹配项。

-G<generator name>=指定生成系统生成器。

-T<toolset name>=如果支持,请指定工具集名称

发电机。

-A<platform name>=如果支持,请指定平台名称

发电机。

-Wdev=启用开发人员警告。

-Wno dev=禁止显示开发人员警告。

-Werror=dev=生成开发人员警告错误。

-Wno error=dev=使开发人员警告不是错误。

-Wdeprecated=启用弃用警告。

-Wno deprecated=取消弃用警告。

-Werror=deprecated=Make deprecated宏和函数警告

错误。

-Wno error=deprecated=Make deprecated宏和函数警告

不是错误。

-E=CMake命令模式。

-L[A][H]=列出非高级缓存变量。

--build<dir>=生成CMake生成的项目二叉树。

-N=仅查看模式。

-P<file>=进程脚本模式。

--find package=在类似pkg配置的模式下运行。

--graphviz=[file]=生成依赖关系的graphviz,请参见

CMakeGraphVizOptions.cmake了解更多信息。

--系统信息[文件]=转储有关此系统的信息。

--debug try compile=不要删除try_编译生成树。

一次只对一个try_编译有用。

--调试输出=将cmake置于调试模式。

--trace=将cmake置于跟踪模式。

--trace expand=使用变量将cmake置于跟踪模式

扩张。

--trace source=<file>=仅跟踪此CMake文件/模块。多重

允许选项。

--warn uninitialized=警告未初始化的值。

--warn unused vars=警告未使用的变量。

--no warn unused cli=不警告命令行选项。

--check system vars=查找系统中变量使用的问题

文件夹。

--帮助,-帮助,-用法,-h,-h,/?=打印使用信息并退出。

-版本,-版本,/v[< f> ] =打印版本号和退出。

-帮助完整[< f> ] =打印所有帮助手册并退出。

-帮助手册<…> =打印一个帮助手册并退出。

-帮助手册列表[< f> ] =列表帮助手册可用和退出。

-帮助命令< CMD> [< f> ] =打印帮助一个命令并退出。

-帮助命令列表[< f> ] =列表命令与可用的帮助和退出。

-帮助命令[< f> ] =打印CMASK命令手册并退出。

-帮助模块< mod > [< f> ] =打印帮助一个模块并退出。

-帮助模块列表[< f> ] =列表模块,在可用的帮助下退出。

“帮助模块”=“打印模块”和“手动”和“退出”。

-帮助策略<CMP> [< f> ] =打印帮助一个策略并退出。

——帮助策略列表[f> > =列表策略,可用帮助和退出。

——帮助策略[< f> ] =打印CGuffic策略手册并退出。

——帮助属性< PROP> [< F> ] =打印一个属性的帮助,然后退出。

--help property list[<f>]=列出具有可用帮助和

出口。

-帮助属性[< f> ] =打印cFisher属性手册并退出。

-变量帮助=一个变量的打印帮助和退出。

——帮助变量列表[< f> ] =列表变量,在可用的帮助下退出。

——帮助变量[< f> ] =打印CVICE变量手册并退出。

发电机

此平台上提供以下发电机:

Visual Studio 15 2017[arch]=生成Visual Studio 2017项目文件。

可选[arch]可以是“Win64”或“ARM”。

Visual Studio 14 2015[arch]=生成Visual Studio 2015项目文件。

可选[arch]可以是“Win64”或“ARM”。

Visual Studio 12 2013[arch]=生成Visual Studio 2013项目文件。

可选[arch]可以是“Win64”或“ARM”。

Visual Studio 11 2012[arch]=生成Visual Studio 2012项目文件。

可选[arch]可以是“Win64”或“ARM”。

Visual Studio 10 2010[arch]=生成Visual Studio 2010项目

可选[arch]可以是“Win64”或“IA64”。

Visual Studio 9 2008[arch]=生成Visual Studio 2008项目文件。

可选[arch]可以是“Win64”或“IA64”。

Visual Studio 8 2005[arch]=已弃用。生成Visual Studio 2005

项目文件。可选的[arch]可以是

“Win64”。

Borland Makefiles=生成Borland Makefiles。

NMake Makefiles=生成NMake Makefiles。

NMake Makefiles JOM=生成JOM Makefiles。

Green Hills MULTI=生成Green Hills多文件

(实验性,进行中的工作)。

MSYS Makefiles=生成MSYS Makefiles。

MinGW Makefiles=生成用于

明威32品牌。

Unix Makefiles=生成标准的Unix makefile。

忍者=生成build.Ninja文件。

Watcom WMake=生成Watcom WMake生成文件。

CodeBlocks-MinGW Makefiles=生成代码块项目文件。

CodeBlocks-NMake Makefiles=生成代码块项目文件。

代码块-NMake Makefiles JOM

=生成代码块项目文件。

CodeBlocks-Ninja=生成代码块项目文件。

CodeBlocks-Unix Makefiles=生成代码块项目文件。

CodeLite-MinGW Makefiles=生成CodeLite项目文件。

CodeLite-NMake Makefiles=生成CodeLite项目文件。

CodeLite-Ninja=生成CodeLite项目文件。

CodeLite-Unix Makefiles=生成CodeLite项目文件。

升华文本2-MinGW Makefiles

=生成Sublime Text 2项目文件。

升华文本2-生成Makefiles

=生成Sublime Text 2项目文件。

Sublime Text 2-忍者=生成Sublime Text 2项目文件。

Sublime Text 2-Unix生成文件

=生成Sublime Text 2项目文件。

Kate-MinGW Makefiles=生成Kate项目文件。

Kate-NMake Makefiles=生成Kate项目文件。

Kate-Ninja=生成Kate项目文件。

Kate-Unix Makefiles=生成Kate项目文件。

Eclipse CDT4-NMake生成文件

=生成EclipseCDT4.0项目文件。

Eclipse CDT4-MinGW生成文件

=生成EclipseCDT4.0项目文件。

Eclipse CDT4-Ninja=生成eclipsecdt4.0项目文件。

Eclipse CDT4-Unix Makefiles=生成Eclipse CDT4.0项目文件。

}

cmake -help的更多相关文章

  1. 使用cmake自动构建工程

    公司引擎是用cmake根据目标平台来构建工程的,刚接触的时候深深体会到cmake的方便:如果目标平台是windows,它可以帮你自动构建出vs工程:如果是安卓,自动构建出eclipse工程,如果是IO ...

  2. CMake

    使用CMake编译跨平台静态库 http://www.tuicool.com/articles/3uu2Yj cmake命令 安装.用法简介 https://fukun.org/archives/04 ...

  3. CMake学习笔记

    C++开发者必备技能CMake  先简单介绍一下,CMake是一个跨平台的编译工具,它可以根据不用的平台,不同的编译环境,生成不同的MakeFile,从而控制编译的过程. 使用CMake的步骤: 1. ...

  4. VS 2013编译64位版本QT 4.8.6及使用cmake为依赖QT生成VS项目时Could NOT find Qt4

    对于一些已经解决的问题,本博客不再讨论.只将本人遇到的问题做简单的说明. 一.VS 2013编译64位版本QT 4.8.6 QT项目官网中,对于QT4,其只提供了windows X86的版本,并且支持 ...

  5. cmake cannot find package

    cmake 找不到package,如 find_package (OpenMesh REQUIRED) 出现错误 在项目的文件夹中找到 FindOpenMesh.cmake 文件,将其所在路径添加到 ...

  6. Cmake的交叉编译

    http://www.cmake.org/Wiki/CMake_Cross_Compiling

  7. CMake命令/函数汇总(翻译自官方手册)

    查看官方文档 cmake命令 选项 CMake变量 CMake命令汇总 / add_custom_command add_custom_target/add_definitions/add_depen ...

  8. 《CMake实践》笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE

    <CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...

  9. 《CMake实践》笔记二:INSTALL/CMAKE_INSTALL_PREFIX

    <CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...

  10. 《CMake实践》笔记三:构建静态库(.a) 与 动态库(.so) 及 如何使用外部共享库和头文件

    <CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...

随机推荐

  1. 关于PCB的Mark点

    关于PCB的Mark PCB板子做好后,需要贴装元器件,现在元器件的贴装都是通过机器来完成的(SMT).SMT中会用到mark点. 一.什么是Mark点 Mark点也叫基准点或者光学定位点,为贴装工艺 ...

  2. 转帖 新Eclipse安装与配置

    Eclipse的官网地址:http://www.eclipse.org/ 我们下载J2EE版本:Eclipse IDE for Java EE Developers 目前最新版本是:Eclipse K ...

  3. 微信小程序 封装接口

    1.util-util.js //封装接口 let baseURL = 'http://127.0.0.1:3000/'; //接口路径 let request = function (url, op ...

  4. 【JZOJ3920】噪音

    description FJ有M个牛棚,编号1至M,刚开始所有牛棚都是空的.FJ有N头牛,编号1至N,这N头牛按照编号从小到大依次排队走进牛棚,每一天只有一头奶牛走进牛棚.第i头奶牛选择走进第p[i] ...

  5. springMVC配置文件 的约束

    <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.spr ...

  6. bzoj1098题解

    [题意分析] 给你一张无向图,求其补图的联通块数及各个联通块大小. [解题思路] 暴搜! 然而n2会T怎么办? 仔细观察发现m远小于n2,也就是说这是一张极其稠密的补图. 这时就要用到黑科技了:flo ...

  7. ASP.NET Core学习——3

    中间件 中间件是用于组成应用程序管道来处理请求和相应的组件.管道内的每一个组件都可以选择是否将请求交给下一个组件,并在管道中调用下一个组件之前和之后执行某些操作.请求委托被用来建立请求管道,请求委托处 ...

  8. windows10安装sqlmap与简单配置

    一.获取sqlmap压缩包: 注意:安装sqlmap之前,先确认已有python2.x环境 获取sqlmap压缩包并解压 下载地址:http://sqlmap.org/ 二.将解压缩的文件放在pyth ...

  9. JVM简介及类加载机制(一)

    JVM介绍: 目标:JVM运行字节码文件,根据JVM的日志调节程序,对于底层原理有一定的了解 1. 类加载 在JAVA代码中,类型的加载,连接与初始化都是在程序运行期间完成的,提供了灵活性增加了更多的 ...

  10. 错误 1 error C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getcwd. See online help for details.

    解决办法: 属性>C/C++>预处理定义>编辑>添加_CRT_NONSTDC_NO_DEPRECATE>应用