cmake -help
{
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的更多相关文章
- 使用cmake自动构建工程
公司引擎是用cmake根据目标平台来构建工程的,刚接触的时候深深体会到cmake的方便:如果目标平台是windows,它可以帮你自动构建出vs工程:如果是安卓,自动构建出eclipse工程,如果是IO ...
- CMake
使用CMake编译跨平台静态库 http://www.tuicool.com/articles/3uu2Yj cmake命令 安装.用法简介 https://fukun.org/archives/04 ...
- CMake学习笔记
C++开发者必备技能CMake 先简单介绍一下,CMake是一个跨平台的编译工具,它可以根据不用的平台,不同的编译环境,生成不同的MakeFile,从而控制编译的过程. 使用CMake的步骤: 1. ...
- 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的版本,并且支持 ...
- cmake cannot find package
cmake 找不到package,如 find_package (OpenMesh REQUIRED) 出现错误 在项目的文件夹中找到 FindOpenMesh.cmake 文件,将其所在路径添加到 ...
- Cmake的交叉编译
http://www.cmake.org/Wiki/CMake_Cross_Compiling
- CMake命令/函数汇总(翻译自官方手册)
查看官方文档 cmake命令 选项 CMake变量 CMake命令汇总 / add_custom_command add_custom_target/add_definitions/add_depen ...
- 《CMake实践》笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE
<CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...
- 《CMake实践》笔记二:INSTALL/CMAKE_INSTALL_PREFIX
<CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...
- 《CMake实践》笔记三:构建静态库(.a) 与 动态库(.so) 及 如何使用外部共享库和头文件
<CMake实践>笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE <CMake实践>笔记二:INSTALL/CMAKE_INSTALL_PREFIX &l ...
随机推荐
- createReadStream().pipe() Callback
const stream = fs.createReadStream('<filepath>/example.pdf', {bufferSize: 64 * 1024}) stream.p ...
- KMP 算法学习
KMP算法是用来做字符串匹配的.关于字符串匹配,最简单最容易想到的方法是暴利查找,使用双重for循环处理. 该方法的时间复杂度为O((n-m+1)*m) (n为目标串T长度,m为模式串P长度, 从T中 ...
- [转载]Ubuntu Server下配置UTF-8中文环境
转载自:http://www.gaojinbo.com/ubuntu-server%E4%B8%8B%E9%85%8D%E7%BD%AEutf-8%E4%B8%AD%E6%96%87%E7%8E%AF ...
- react 的生命周期函数
生命周期函数: 是指在某一时刻组件自动执行 的函数 初始化: 设置props和state mounting: componentWillMount 在组件即将被挂载到页面的时候自动执行 render ...
- json数据返回数字,页面显示文字处理
var obj = { 1:'你好1', 2:'你好2', 3:'你好3' } var e = obj[1]; e; //'你好1'
- Vue学习笔记【4】——Vue指令之v-on
Vue指令之v-on v-on指令介绍 直接使用指令v-on 使用简化指令@ 绑定事件代码:@事件名="methods中的方法名称" <!DOCTYPE html> & ...
- Yii2中的规则
//Yii2中的规则,用户名的规则,1.用户名只能是字母 2.判断用户名已经存在 3.用户名的长度 4.用户名不能为空 [['username'], 'match', 'pattern' => ...
- Shiro学习(24)在线回话管理
有时候需要显示当前在线人数.当前在线用户,有时候可能需要强制某个用户下线等:此时就需要获取相应的在线用户并进行一些操作. 本章基于<第十六章 综合实例>代码构建. 会话控制器 Java代码 ...
- 管理员技术(二): 访问练习用虚拟机、 命令行基础技巧 、 挂载并访问光盘设备、ls列表及文档创建、复制删除移动
一.访问练习用虚拟机 目标: 学会在教学环境中访问练习用虚拟机,主要完成以下事项: 1> 快速重置教学虚拟机环境 2> 通过“虚拟系统管理器”访问虚拟机 3> ...
- git stash 保存和恢复进度
1. stash当前修改 git stash会把所有未提交的修改(包括暂存的和非暂存的)都保存起来,用于后续恢复当前工作目录. 比如下面的中间状态,通过git stash命令推送一个新的储藏,当前的工 ...