本文是转载!!!
本文是转载!!!
本文是转载!!!
原博客地址:https://www.cnblogs.com/coderfenghc/archive/2013/01/20/2846621.html
最近看ros里的CMakeLists.txt看的比较多,发现ros的CMakeLists.txt基本上都是CMake里的命令,只有少数自定义的宏,比如 catkin_package,所以记录一下。
------------------------------------------------------------------------------------------------------------------------------------------
CMake部分
本文是CMake官方文档CMake Tutorial (http://www.cmake.org/cmake/help/cmake_tutorial.html) 的翻译。通过一个样例工程从简单到复杂的完善过程,文档介绍了CMake主要模块(cmake, ctest, cpack)的功能和使用环境;从中可以一窥cmake的大体形貌。
讲的是cmake选项,具体包括:
-C <initial-cache>
-D <var>:<type>=<value>
-U <globbing_expr>
-G <generator-name>
-Wno-dev
-Wdev
-E
-i
-L[A][H]
也是讲cmake选项,包括如下:
--build <dir>
-N
-P <file>
--graphviz=[file]
--system-information [file]
--debug-trycompile
--debug-output
--trace
--help-command cmd [file]
--help-command-list [file]
--help-commands [file]
--help-compatcommands [file]
--help-module module [file]
--help-module-list [file]
--help-modules [file]
--help-custom-modules [file]
--help-policy cmp [file]
--help-policies [file]
--help-property prop [file]
--help-property-list [file]
--help-properties [file]
--help-variable var [file]
--help-variable-list [file]
--help-variables [file]
--copyright [file]
--help
--help-full [file]
--help-html [file]
--help-man [file]
--version [file]
这部分主要讲生成器,包括Borland Makefiles、MSYS Makefiles、MinGW Makefiles等
CMake命令:add_custom_command.
CMake命令:add_custom_target; add_definitions; add_dependencies; add_executable.
CMake命令:add_library; add_subdirectory; add_test; aux_source_directory; break.
CMake命令: build_command; cmake_minimum_required; cmake_policy.
CMake命令:configure_file; create_test_sourcelist; define_property
CMake命令:else; elseif; enable_language; enable_testing; endforeach; endfunction; endif; endmacro; endwhile; execute_process; export.
CMake命令:file
CMake命令:file_find
CMake命令:find_library
CMake命令:find_package
CMake命令:find_path
CMake 命令:find_program, fltk_wrap_ui
CMake命令:foreach;function;get_cmake_property;get_directory_property;get_filename_component
CMake命令:get_property;get_source_file_property;get_test_property;[*]if
CMake命令:include; include_directories; include_external_msproject; include_regular_expression.
CMake命令:install; link_directories;
CMake命令:list; load_cache; load_command; macro; mark_as_advanced; math; message
CMake命令: option; output_required_files; project; qt_wrap_cpp; qt_wrap_ui; remove_definitions; return.
CMake 命令:separate_arguments; set; set_directory_properties; set_property; set_source_files_properties; set_target_properties; set_tests_properties; site_name; source_group; string; target_link_libraries; try_compile; try_run; unset; variable_watch; while
提供信息的变量,从 VAR#1-1
到
VAR#1-53
相关推荐
本文是CMake官方文档CMake Tutorial (http://www.cmake.org/cmake/help/cmake_tutorial.html) 的翻译。通过一个样例工程从简单到复杂的完善过程,文档介绍了CMake主要模块(cmake, ctest, cpack)的功能和使用环境
Cmake 官方教程(翻译)
cmake最新版本3.18的英文官方教程,包含了cmake的所有命令的使用方法,因为工作需要学习cmake,而官方的教程是最权威的教程,网上查找很不方便,所以自己下载下来了所有的教程文档,并制作成了pdf,方便查看,同时也...
在linux开发大多时候要用到cmake,本人在学习cmake过程中参考的文档手册等
cmake中文使用文档,写的很好分享一下
CMake中文手册.pdf CMake中文手册.pdf CMake中文手册.pdf
一份“面向使用和实用”的cmake文档,也就是本教程《cmake实践》(Cmake Practice)
1,背景知识:cmake 是 kitware 公司以及一些开源开发者在开发几个工具套件(VTK)的过程中衍生品,最终形成体系,成为一个独立的开放源代码项目。项目
CMake 特点 1. 在每个源码目录下都有一个 CMakeLists.txt. 2. CMake 语句不区分大小写。一句一行,无行结束符号,注释用# 3. CMake 实际也是一种编程语言。CMake 根据 CMakeLists.txt 自动生成 Makefile. 4. CMake ...
本文是CMake官方文档CMake Tutorial (http://www.cmake.org/cmake/help/cmake_tutorial.html) 的翻译。通过一个样例工程从简单到复杂的完善过程,文档介绍了CMake主要模块(cmake, ctest, cpack)的功能和使用环境;...
CMake官方中文手册.pdf,对于学习CMake的用法很有帮助,跨平台让CMake成为了一个通用的版本
cmake CMake 是个跨平台的自动化建构系统,它用组态档控制建构过程(build process)的方式和 Unix 的 Make 相似,只是 CMake 的组态档取名为 CmakeLists.txt。Cmake 并不直接建构出最终的软件,而是产生标准的建构...
cmake 2.8.9 说明文档 (英文)
这个文档是开放的,开放的目的是为了让更多的人能够读到并且能够修改,任何人都 可以对它作出修改和补充,但是,为了大家都能够获得你关于 cmake 的经验和积累,如果 你现错误或者添加了新内容后,请务必 CC 给我一...
cmake的相关文档,保存一下,以备日后使用 GNU.Make.项目管理
cmake中文手册,从简单到复杂!
cmakelist.txt
CMAKE实践
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程)。他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的automake。只是 CMake 的组态档...
cmake详细文档,有简单例子,而且系统详细,很不错。