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
没有合适的资源?快使用搜索试试~ 我知道了~
cmake-2.8.12.2
5星 · 超过95%的资源 需积分: 50 920 下载量 173 浏览量
2014-04-30
10:24:46
上传
评论 2
收藏 5.79MB GZ 举报
温馨提示
共2000个文件
cmake:1089个
txt:814个
h:657个
1 文件:cmake-2.8.12.2.tar.gz 2 常用:mysql-5.5 及以上版本源码编译安装时需要使用cmake进行编译
资源推荐
资源详情
资源评论
收起资源包目录
cmake-2.8.12.2 (2000个子文件)
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
cmListFileLexer.c 78KB
archive_write_set_format_xar.c 78KB
archive_read_support_format_lha.c 77KB
archive_read_support_format_tar.c 76KB
http.c 75KB
ProcessUNIX.c 75KB
archive_write_disk_windows.c 69KB
archive_read_disk_posix.c 69KB
deflate.c 63KB
multi.c 63KB
archive_read_disk_windows.c 62KB
archive_write_set_format_mtree.c 58KB
bzip2.c 57KB
ssluse.c 57KB
archive_write_set_format_pax.c 56KB
archive_write_set_format_7zip.c 55KB
archive_read_support_format_zip.c 50KB
formdata.c 49KB
inflate.c 48KB
cm_sha2.c 47KB
archive_match.c 46KB
bzlib.c 45KB
archive_read_support_format_mtree.c 45KB
archive_read.c 45KB
xmltok_impl.c 43KB
trees.c 43KB
archive_entry.c 42KB
xmltok.c 39KB
telnet.c 36KB
http_ntlm.c 33KB
xmlrole.c 33KB
archive_read_disk_entry_from_file.c 32KB
archive_acl.c 31KB
archive_read_support_format_cpio.c 31KB
archive_crypto.c 31KB
gzio.c 30KB
blocksort.c 30KB
mprintf.c 30KB
ssh.c 29KB
cookie.c 29KB
archive_ppmd7.c 28KB
archive_getdate.c 27KB
archive_write_set_format_zip.c 27KB
archive_read_support_filter_xz.c 26KB
connect.c 25KB
hostthre.c 24KB
easy.c 24KB
System.c 24KB
tftp.c 23KB
archive_write_set_format_gnutar.c 23KB
archive_windows.c 22KB
archive_write_set_format_ustar.c 22KB
archive_rb.c 21KB
compress.c 20KB
decompress.c 20KB
gtls.c 19KB
archive_write.c 19KB
archive_write_set_format_v7tar.c 19KB
ldap.c 18KB
strerror.c 18KB
archive_read_support_filter_uu.c 18KB
socks.c 18KB
sendf.c 18KB
archive_read_open_filename.c 17KB
hostip.c 17KB
archive_read_support_format_ar.c 17KB
archive_write_set_format_shar.c 17KB
MD5.c 17KB
sslgen.c 15KB
testProcess.c 15KB
bzip2recover.c 15KB
progress.c 14KB
archive_write_add_filter_xz.c 14KB
archive_write_set_format_cpio.c 14KB
cmcompress.c 14KB
http_digest.c 14KB
archive_write_set_format_ar.c 14KB
archive_write_add_filter_lzop.c 14KB
Terminal.c 14KB
archive_read_support_filter_program.c 14KB
archive_read_support_filter_lzop.c 13KB
inftrees.c 13KB
archive_write_set_format_cpio_newc.c 13KB
archive_read_support_filter_compress.c 13KB
crc32.c 13KB
archive_write_add_filter_compress.c 13KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
lingyu-youmo
- 粉丝: 0
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于pytorch+Unet进行MRI肝脏图像分割源码+数据集+模型.zip
- 在Android Studio中开发一个Android App项目步骤
- 基于yolov8实现进行物体跟踪源码.zip
- Java多线程学习Java多线程学习Java多线程学习Java多线程学习.txt
- 算法数据结构-动态规划算法(Dynamic Programming)超详细总结加应用案例讲解.txt
- 2024最强秋招八股文(精简、纯手打)2024最强秋招八股文(精简、纯手打).txt
- 基于tensorflow多特征融合的微表情识别python源码.zip
- 基于yolov8实现人脸检测的python源码+运行说明.zip
- Micron Memory DDR3 SDRAM 全系列AD集成库(原理图库+PCB封装库).IntLib
- 基于tensorflow多特征融合的微表情识别python源码+详细使用说明.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页