For more information about how to contribute modules to CMake, see this page:
http://www.itk.org/Wiki/CMake:Module_Maintainers
Note to authors of FindXxx.cmake files
We would like all FindXxx.cmake files to produce consistent variable names.
Please use the following consistent variable names for general use.
Xxx_INCLUDE_DIRS The final set of include directories listed in one variable for use by client code.
This should not be a cache entry.
Xxx_LIBRARIES The libraries to link against to use Xxx. These should include full paths.
This should not be a cache entry.
Xxx_DEFINITIONS Definitions to use when compiling code that uses Xxx. This really shouldn't include options such
as (-DHAS_JPEG)that a client source-code file uses to decide whether to #include <jpeg.h>
Xxx_EXECUTABLE Where to find the Xxx tool.
Xxx_Yyy_EXECUTABLE Where to find the Yyy tool that comes with Xxx.
Xxx_LIBRARY_DIRS Optionally, the final set of library directories listed in one variable for use by client code.
This should not be a cache entry.
Xxx_ROOT_DIR Where to find the base directory of Xxx.
Xxx_VERSION_Yy Expect Version Yy if true. Make sure at most one of these is ever true.
Xxx_WRAP_Yy If False, do not try to use the relevant CMake wrapping command.
Xxx_Yy_FOUND If False, optional Yy part of Xxx sytem is not available.
Xxx_FOUND Set to false, or undefined, if we haven't found, or don't want to use Xxx.
Xxx_NOT_FOUND_MESSAGE Should be set by config-files in the case that it has set Xxx_FOUND to FALSE.
The contained message will be printed by the find_package() command and by
find_package_handle_standard_args() to inform the user about the problem.
Xxx_RUNTIME_LIBRARY_DIRS Optionally, the runtime library search path for use when running an executable linked to
shared libraries.
The list should be used by user code to create the PATH on windows or LD_LIBRARY_PATH on unix.
This should not be a cache entry.
Xxx_VERSION_STRING A human-readable string containing the version of the package found, if any.
Xxx_VERSION_MAJOR The major version of the package found, if any.
Xxx_VERSION_MINOR The minor version of the package found, if any.
Xxx_VERSION_PATCH The patch version of the package found, if any.
You do not have to provide all of the above variables. You should provide Xxx_FOUND under most circumstances.
If Xxx is a library, then Xxx_LIBRARIES, should also be defined, and Xxx_INCLUDE_DIRS should usually be
defined (I guess libm.a might be an exception)
The following names should not usually be used in CMakeLists.txt files, but they may be usefully modified in
users' CMake Caches to control stuff.
Xxx_LIBRARY Name of Xxx Library. A User may set this and Xxx_INCLUDE_DIR to ignore to force non-use of Xxx.
Xxx_Yy_LIBRARY Name of Yy library that is part of the Xxx system. It may or may not be required to use Xxx.
Xxx_INCLUDE_DIR Where to find xxx.h, etc. (Xxx_INCLUDE_PATH was considered bad because a path includes an
actual filename.)
Xxx_Yy_INCLUDE_DIR Where to find xxx_yy.h, etc.
For tidiness's sake, try to keep as many options as possible out of the cache, leaving at least one option which can be
used to disable use of the module, or locate a not-found library (e.g. Xxx_ROOT_DIR).
For the same reason, mark most cache options as advanced.
If you need other commands to do special things then it should still begin with Xxx_. This gives a sort of namespace
effect and keeps things tidy for the user. You should put comments describing all the exported settings, plus
descriptions of any the users can use to control stuff.
You really should also provide backwards compatibility any old settings that were actually in use.
Make sure you comment them as deprecated, so that no-one starts using them.
To correctly document a module, create a comment block at the top with # comments.
There are three types of comments that can be in the block:
1. The brief description of the module, this is done by:
# - a small description
2. A paragraph of text. This is done with all text that has a single
space between the # and the text. To create a new paragraph, just
put a # with no text on the line.
3. A verbatim line. This is done with two spaces between the # and the text.
For example:
# - This is a cool module
# This module does really cool stuff.
# It can do even more than you think.
#
# It even needs to paragraphs to tell you about it.
# And it defines the following variables:
# VAR_COOL - this is great isn't it?
# VAR_REALLY_COOL - cool right?
#
Test the documentation formatting by running "cmake --help-module FindXxx".
Edit the comments until the output of this command looks satisfactory.
To have a .cmake file in this directory NOT show up in the
modules documentation, you should start the file with a blank
line.
After the documentation, leave a *BLANK* line, and then add a
copyright and licence notice block like this one:
#=============================================================================
# Copyright 2009-2011 Your Name
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
The layout of the notice block is strictly enforced by the ModuleNotices test.
Only the year range and name may be changed freely.
A FindXxx.cmake module will typically be loaded by the command
FIND_PACKAGE(Xxx [major[.minor[.patch[.tweak]]]] [EXACT]
[QUIET] [[REQUIRED|COMPONENTS] [components...]])
If any version numbers are given to the command it will set the
following variables before loading the module:
Xxx_FIND_VERSION = full requested version string
Xxx_FIND_VERSION_MAJOR = major version if requested, else 0
Xxx_FIND_VERSION_MINOR = minor version if requested, else 0
Xxx_FIND_VERSION_PATCH = patch version if requested, else 0
Xxx_FIND_VERSION_TWEAK = tweak version if requested, else 0
Xxx_FIND_VERSION_COUNT = number of version components, 0 to 4
Xxx_FIND_VERSION_EXACT = true if EXACT option was given
If the find module supports versioning it should locate a version of
the package that is compatible with the version requested. If a
compatible version of the package cannot be found the module should
not report success. The version of the package found should be stored
in "Xxx_VERSION..." version variables documented by the module.
If the QUIET option is given to the command it will set the variable
Xxx_FIND_QUIETLY to true before loading the FindXxx.cmake module. If
this variable is set the module should not complain about not being
able to find the package. If the
REQUIRED option is given to the command it will set the variable
Xxx_FIND_REQUIRED to true before loading the FindXxx.cmake module. If
this variable is set the module should issue a FATAL_ERROR if the
package cannot be found.
If neither the QUIET nor REQUIRED options are given then the
FindXxx.cmake module should look for the package and complain without
error if the module is not found.
FIND_PACKAGE() will set the variable CMAKE_FIND_PACKAGE_NAME to
contain the actual name of the package.
A package can provide sub-components.
Those components can be listed after the COMPONENTS (or REQUIRED)
or OPTIONAL_COMPONENTS keywords. The set of all listed compon
没有合适的资源?快使用搜索试试~ 我知道了~
linux系统cmake安装工具(cmake-2.8.12.2)
5星 · 超过95%的资源 需积分: 50 128 下载量 132 浏览量
2014-03-27
16:52:32
上传
评论
收藏 5.79MB GZ 举报
温馨提示
共4568个文件
cmake:1089个
txt:814个
h:657个
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程)。他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的automake。只是 CMake 的组态档取名为 CmakeLists.txt。Cmake 并不直接建构出最终的软件,而是产生标准的建构档(如 Unix 的 Makefile 或 Windows Visual C++ 的 projects/workspaces),然后再依一般的建构方式使用。这使得熟悉某个集成开发环境(IDE)的开发者可以用标准的方式建构他的软件,这种可以使用各平台的原生建构系统的能力是 CMake 和 SCons 等其他类似系统的区别之处。 CMake 可以编译源代码、制作程式库、产生适配器(wrapper)、还可以用任意的顺序建构执行档。CMake 支持 in-place 建构(二进档和源代码在同一个目录树中)和 out-of-place 建构(二进档在别的目录里),因此可以很容易从同一个源代码目录树中建构出多个二进档。CMake 也支持静态与动态程式库的建构。 “CMake”这个名字是“cross platform make”的缩写。虽然名字中含有“make”,但是CMake和Unix上常见的“make”系统是分开的,而且更为高阶。
资源推荐
资源详情
资源评论
收起资源包目录
linux系统cmake安装工具(cmake-2.8.12.2) (4568个子文件)
08cfcf221f76ace7b906b312284e73d7 8B
bzip2.1 16KB
bzmore.1 4KB
bzgrep.1 1KB
bzdiff.1 897B
2af59a7022024974f3b8521b7ed8137c996a79f1 14B
archive_write_set_options.3 15KB
libarchive_internals.3 13KB
archive_write_disk.3 13KB
libarchive_changes.3 10KB
archive_read_disk.3 9KB
archive_entry_stat.3 8KB
libarchive.3 8KB
archive_entry_perms.3 8KB
archive_entry_acl.3 7KB
archive_read.3 7KB
archive_write.3 7KB
archive_util.3 7KB
archive_write_open.3 7KB
archive_read_open.3 7KB
archive_read_format.3 6KB
archive_entry_linkify.3 6KB
archive_entry_paths.3 6KB
archive_read_set_options.3 5KB
archive_entry.3 5KB
archive_entry_time.3 5KB
archive_read_extract.3 4KB
archive_read_filter.3 4KB
archive_read_data.3 4KB
archive_write_blocksize.3 4KB
archive_write_filter.3 3KB
archive_write_format.3 3KB
archive_read_free.3 3KB
archive_write_free.3 3KB
archive_read_header.3 3KB
archive_write_finish_entry.3 3KB
archive_write_header.3 2KB
archive_write_data.3 2KB
archive_read_new.3 2KB
archive_write_new.3 2KB
30ba0acdee9096b3b9fc6c69362c6b42 9B
31eff09e84fca01415f8cd9d82ec432b 9B
3b679da7908562fe1cc28db47ffb89bae025f4551dceb343a5869174 14B
401767f22a456b3522953722090a2c36 8B
tar.5 31KB
libarchive-formats.5 17KB
cpio.5 10KB
mtree.5 7KB
8c018830e3efa5caf3c7415028335a57 32B
8f4add4581551facf27237e6577fd662 6B
969171a0dd70d49ce096bd3e8178c7e26c711c9b20dbcaa3853d869d3871f133 14B
9d980b06c2f0fec3d4872d68175b9822 6B
libtestB.a 0B
libtest1.a 0B
libtest2.a 0B
libtest1.a 0B
libtest1.a 0B
libtestA.a 0B
libtest3.a 0B
libtest2.a 0B
libtest3.a 0B
libtest1.a 0B
libtest1.a 0B
libtest1.a 0B
libtest2.a 0B
aaad162b85f60d1eb57ca71a23e8efd7 40B
.hooks-config.bash 866B
CMakeVersion.bash 362B
Squish4RunTestCase.bat 629B
SquishRunTestCase.bat 219B
sample_script.bat 28B
sample_script.bat 28B
elf64msb.bin 18KB
elf32msb.bin 18KB
elf64lsb.bin 4KB
elf32lsb.bin 3KB
testSystemTools.bin 766B
test.bin 5B
CMakeInstall.bmp 25KB
Toolbar.bmp 1KB
bootstrap 53KB
Step1.tar.bz2 904B
Step1NoDir.tar.bz2 852B
bzdiff 2KB
bzgrep 2KB
bzmore 1KB
archive_write_set_format_iso9660.c 206KB
frm_driver.c 138KB
xmlparse.c 136KB
url.c 128KB
ftp.c 112KB
archive_write_disk_posix.c 105KB
archive_string.c 103KB
archive_read_support_format_7zip.c 93KB
archive_read_support_format_iso9660.c 91KB
archive_read_support_format_cab.c 86KB
transfer.c 86KB
ProcessWin32.c 81KB
archive_read_support_format_xar.c 80KB
archive_read_support_format_rar.c 80KB
共 4568 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46
资源评论
- zxd9714300542017-01-11东西不错,安装过程很顺利!!!
- a5295713052017-12-08谢谢,可以安装
suhaibolove
- 粉丝: 6
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 转载使用许可协议范本(互联网行业)模版.doc
- 软件产业运行情况调研问卷模版.doc
- 软件产品发布管理流程.doc
- 软件仿真多机串行通信.doc
- Python大作业:音乐播放软件(爬虫+可视化+数据分析+数据库)
- 课程设计-python爬虫-爬取日报,爬取日报文章后存储到本地,附带源代码+课程设计报告
- 软件和信息技术服务行业投资与前景预测.pptx
- 课程设计-基于SpringBoot + Mybatis+python爬虫NBA球员数据爬取可视化+源代码+文档+sql+效果图
- 软件品质管理系列二项目策划规范.doc
- 基于TensorFlow+PyQt+GUI的酒店评论情感分析,支持分析本地数据文件和网络爬取数据分析+源代码+文档说明+安装教程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功