You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Brad King 9db4220671 BUG: Need to ignore source packaging of #*# files created by emacs during editing. 20 years ago
..
Platform ENH: add windows apps to mingw 20 years ago
AddFileDependencies.cmake BUG: don't include MacroLibrary.cmake, but add a cmake module which implements ADD_FILE_DEPENDENCIES() 20 years ago
CMake.cmake ENH: add documentation support for modules 20 years ago
CMakeAddNewLanguage.txt ENH: clean up EnableLanguage try to fix problem where try compile runs cmake 20 years ago
CMakeBackwardCompatibilityC.cmake ENH: add documentation support for modules 20 years ago
CMakeBackwardCompatibilityCXX.cmake ENH: add support for watcom wmake and wcl386 20 years ago
CMakeBorlandFindMake.cmake determine CMAKE_MAKE_PROGRAM in EnableLanguage 23 years ago
CMakeBuildSettings.cmake.in ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. 23 years ago
CMakeCCompiler.cmake.in ENH: fix more than one argument passed in to compilers via environment 20 years ago
CMakeCInformation.cmake ENH: Split CMAKE_STANDARD_LIBRARIES into per-language variables CMAKE_<lang>_STANDARD_LIBRARIES. This is needed to get programmable language support working with Visual Studio generators. It makes sense anyway. 20 years ago
CMakeCXXCompiler.cmake.in BUG: Need to duplicate some information from CMakeCCompiler to support C++-only projects. 20 years ago
CMakeCXXInformation.cmake ENH: Split CMAKE_STANDARD_LIBRARIES into per-language variables CMAKE_<lang>_STANDARD_LIBRARIES. This is needed to get programmable language support working with Visual Studio generators. It makes sense anyway. 20 years ago
CMakeCommonLanguageInclude.cmake ENH: add documentation support for modules 20 years ago
CMakeConfigurableFile.in ENH: Make modules use configure instead of file write 20 years ago
CMakeDetermineCCompiler.cmake ENH: better finding of mingw from msys, and delete CMakeFiles directory when cache is deleted 20 years ago
CMakeDetermineCXXCompiler.cmake ENH: add mingw test to cxx 20 years ago
CMakeDetermineFortranCompiler.cmake ENH: fix more than one argument passed in to compilers via environment 20 years ago
CMakeDetermineJavaCompiler.cmake ENH: fix more than one argument passed in to compilers via environment 20 years ago
CMakeDetermineRCCompiler.cmake ENH: fix more than one argument passed in to compilers via environment 20 years ago
CMakeDetermineSystem.cmake ENH: add documentation support for modules 20 years ago
CMakeExportBuildSettings.cmake ENH: some style fixes for the book 20 years ago
CMakeFindFrameworks.cmake ENH: add documentation support for modules 20 years ago
CMakeFindWMake.cmake ENH: add support for watcom wmake and wcl386 20 years ago
CMakeFindXCode.cmake ENH: add trycompile code for xcode 21 years ago
CMakeFortranCompiler.cmake.in ENH: make sure flags set in CC or CXX environment variables stay with the compiler 20 years ago
CMakeFortranInformation.cmake ENH: Split CMAKE_STANDARD_LIBRARIES into per-language variables CMAKE_<lang>_STANDARD_LIBRARIES. This is needed to get programmable language support working with Visual Studio generators. It makes sense anyway. 20 years ago
CMakeGenericSystem.cmake ENH: Added platform settings CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES to allow customized searching for libraries. 20 years ago
CMakeImportBuildSettings.cmake ENH: some style fixes for the book 20 years ago
CMakeJavaCompiler.cmake.in ENH: make sure flags set in CC or CXX environment variables stay with the compiler 20 years ago
CMakeJavaInformation.cmake ENH: fix java and add OBJECT_DIR support 20 years ago
CMakeLists.txt ENH: Installing readme.txt in Modules directory to be consistent with windows. 22 years ago
CMakeMSYSFindMake.cmake ENH: better algorithm for looking for make and gcc on msys and mingw 20 years ago
CMakeMinGWFindMake.cmake ENH: better algorithm for looking for make and gcc on msys and mingw 20 years ago
CMakeNMakeFindMake.cmake determine CMAKE_MAKE_PROGRAM in EnableLanguage 23 years ago
CMakePrintSystemInformation.cmake ENH: add documentation support for modules 20 years ago
CMakeRCCompiler.cmake.in ENH: make sure flags set in CC or CXX environment variables stay with the compiler 20 years ago
CMakeRCInformation.cmake ENH: fix spelling errors 20 years ago
CMakeSystem.cmake.in ENH: add CMAKE_SYSTEM_PROCESSOR 22 years ago
CMakeSystemSpecificInformation.cmake BUG: When copying the module variables from shared library variables use double quotes for the required definitions ...PREFIX and ...SUFFIX to make sure a value is set even if it is empty. 20 years ago
CMakeTestCCompiler.cmake ENH: put CmakeTmp into CMakeFiles 20 years ago
CMakeTestCXXCompiler.cmake ENH: put CmakeTmp into CMakeFiles 20 years ago
CMakeTestForFreeVC.cxx ENH better test for free VC tools 21 years ago
CMakeTestFortranCompiler.cmake ENH: put CmakeTmp into CMakeFiles 20 years ago
CMakeTestGNU.c BUG: fix problem where cmake thinks the intel compiler is gnu 22 years ago
CMakeTestJavaCompiler.cmake ENH: add documentation support for modules 20 years ago
CMakeTestNMakeCLVersion.c added test for whether pdbtype should be used for nmake 22 years ago
CMakeTestRCCompiler.cmake ENH: add documentation support for modules 20 years ago
CMakeUnixFindMake.cmake BUG: Removed stray debugging message. 23 years ago
CMakeVS6BackwardCompatibility.cmake ENH: add documentation support for modules 20 years ago
CMakeVS6FindMake.cmake ENH: add correct flags for msvc generators 20 years ago
CMakeVS7BackwardCompatibility.cmake ENH: add documentation support for modules 20 years ago
CMakeVS7FindMake.cmake ENH: add correct flags for msvc generators 20 years ago
CMakeVS8FindMake.cmake ENH: add correct flags for msvc generators 20 years ago
CMakeVS71FindMake.cmake ENH: add correct flags for msvc generators 20 years ago
CPack.Description.plist.in ENH: More CPack stuff and fix zlib compression 20 years ago
CPack.Info.plist.in ENH: Add verbose flag to package maker and add CFBundleIdentifier string 20 years ago
CPack.STGZ_Header.sh.in ENH: More cleanups and add stgz header script, so it does not have to be hard-coded. Also, the user can overwrite it 20 years ago
CPack.cmake BUG: Need to ignore source packaging of #*# files created by emacs during editing. 20 years ago
CTest.cmake ENH: add documentation support for modules 20 years ago
CTestTargets.cmake ENH: Initial import 20 years ago
CheckCSourceCompiles.cmake ENH: Cleanup bootstrap even more 20 years ago
CheckCXXSourceCompiles.cmake ENH: Cleanup bootstrap even more 20 years ago
CheckForPthreads.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 22 years ago
CheckFunctionExists.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 22 years ago
CheckFunctionExists.cmake ENH: Made Check* modules more consistent and well documented. Added CMAKE_REQUIRED_DEFINITIONS option. 20 years ago
CheckIncludeFile.c.in Simplify checking for headers 23 years ago
CheckIncludeFile.cmake ENH: Made Check* modules more consistent and well documented. Added CMAKE_REQUIRED_DEFINITIONS option. 20 years ago
CheckIncludeFile.cxx.in Complete rework of makefile generators expect trouble 23 years ago
CheckIncludeFileCXX.cmake ENH: Made Check* modules more consistent and well documented. Added CMAKE_REQUIRED_DEFINITIONS option. 20 years ago
CheckIncludeFiles.cmake BUG: Fix the module 20 years ago
CheckLibraryExists.cmake BUG: Fix CMAKE_REQUIRED_LIBRARIES stuff in this module 20 years ago
CheckLibraryExists.lists.in Initial attempt to check if library exists 23 years ago
CheckSizeOf.cmake ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency with the macro name that is defined by the module. 23 years ago
CheckSymbolExists.cmake ENH: Make modules use configure instead of file write 20 years ago
CheckTypeSize.c.in ENH: fix checktypesize 20 years ago
CheckTypeSize.cmake ENH: Added CMAKE_REQUIRED_DEFINITIONS and CMAKE_REQUIRED_INCLUDES to the interface. 20 years ago
CheckVariableExists.c BUG#502: Do not let optimizing compilers think the symbol exists. Require the symbol by making the return value depend on it to force linking. 22 years ago
CheckVariableExists.cmake ENH: Made Check* modules more consistent and well documented. Added CMAKE_REQUIRED_DEFINITIONS option. 20 years ago
Dart.cmake ENH: add documentation support for modules 20 years ago
DartConfiguration.tcl.in ENH: Reorganize and add subversion support 21 years ago
Documentation.cmake ENH: add documentation support for modules 20 years ago
DummyCXXFile.cxx add checks for ansi flags and not hard code them 23 years ago
FindAVIFile.cmake ENH: some style fixes for the book 20 years ago
FindCABLE.cmake ENH: some style fixes for the book 20 years ago
FindCurses.cmake ENH: add documentation support for modules 20 years ago
FindCygwin.cmake ENH: add documentation support for modules 20 years ago
FindDCMTK.cmake ENH: add documentation support for modules 20 years ago
FindDart.cmake ENH: use program files env for searching 20 years ago
FindDoxygen.cmake ENH: use program files env for searching 20 years ago
FindFLTK.cmake ENH: some style fixes for the book 20 years ago
FindGCCXML.cmake ENH: use program files env for searching 20 years ago
FindGLU.cmake ENH: add documentation support for modules 20 years ago
FindGLUT.cmake ENH: some style fixes for the book 20 years ago
FindGTK.cmake ENH: some style fixes for the book 20 years ago
FindGnuplot.cmake ENH: add documentation support for modules 20 years ago
FindHTMLHelp.cmake ENH: use program files env for searching 20 years ago
FindITK.cmake ENH: some style fixes for the book 20 years ago
FindImageMagick.cmake ENH: some style fixes for the book 20 years ago
FindJNI.cmake ENH: some style fixes for the book 20 years ago
FindJPEG.cmake ENH: Removing platform-specific name hacks now that FIND_LIBRARY handles it. 20 years ago
FindJava.cmake ENH: some style fixes for the book 20 years ago
FindKDE.cmake ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of 20 years ago
FindKDE3.cmake BUG: put the path to the kde3 lib dir in KDE3_LIB_DIR, not the complete 20 years ago
FindKDE4.cmake STYLE: better error message when KDE4 hasn't been found 20 years ago
FindLATEX.cmake ENH: some style fixes for the book 20 years ago
FindMFC.cmake ENH: cleanups 20 years ago
FindMPEG.cmake ENH: cleanups 20 years ago
FindMPEG2.cmake ENH: cleanups 20 years ago
FindMPI.cmake ENH: use program files env for searching 20 years ago
FindMatlab.cmake ENH: some style fixes for the book 20 years ago
FindMotif.cmake ENH: cleanups 20 years ago
FindOpenAL.cmake ENH: add documentation support for modules 20 years ago
FindOpenGL.cmake ENH: take advantage of new framework stuff 20 years ago
FindPHP4.cmake ENH: cleanups 20 years ago
FindPNG.cmake BUG: don't include MacroLibrary.cmake, but add a cmake module which implements ADD_FILE_DEPENDENCIES() 20 years ago
FindPerl.cmake ENH: cleanups 20 years ago
FindPerlLibs.cmake ENH: cleanups 20 years ago
FindPhysFS.cmake ENH: cleanups 20 years ago
FindPike.cmake ENH: cleanups 20 years ago
FindPythonInterp.cmake ENH: cleanups 20 years ago
FindPythonLibs.cmake ENH: Updated implementation to use new FIND_* command power. The correct library is now found on MinGW also. 20 years ago
FindQt.cmake ENH: change to fatal error 20 years ago
FindQt3.cmake ENH: try to fix non-clean dashboards 20 years ago
FindQt4.cmake BUG: Fix typo 20 years ago
FindRuby.cmake ENH: cleanups 20 years ago
FindSDL.cmake ENH: cleanups 20 years ago
FindSDL_image.cmake ENH: cleanups 20 years ago
FindSDL_mixer.cmake ENH: cleanups 20 years ago
FindSDL_net.cmake ENH: cleanups 20 years ago
FindSDL_sound.cmake ENH: put CmakeTmp into CMakeFiles 20 years ago
FindSDL_ttf.cmake ENH: cleanups 20 years ago
FindSWIG.cmake ENH: add documentation support for modules 20 years ago
FindSelfPackers.cmake ENH: add documentation support for modules 20 years ago
FindTCL.cmake ENH: fix a bug in the find path stuff so that it can find headers deep in frameworks 20 years ago
FindTIFF.cmake ENH: Removing platform-specific name hacks now that FIND_LIBRARY handles it. 20 years ago
FindTclsh.cmake ENH: cleanups 20 years ago
FindThreads.cmake ENH: cleanups 20 years ago
FindUnixCommands.cmake ENH: add documentation support for modules 20 years ago
FindVTK.cmake ENH: cleanups 20 years ago
FindWget.cmake ENH: cleanups 20 years ago
FindWish.cmake ENH: cleanups 20 years ago
FindX11.cmake ENH: fix find x11 on the mac 20 years ago
FindZLIB.cmake ENH: Removing platform-specific name hacks now that FIND_LIBRARY handles it. 20 years ago
FindwxWidgets.cmake ENH: Cleanup. Use relative path to modules 21 years ago
FindwxWindows.cmake ENH: contribution from Jan Woetzel 20 years ago
InstallRequiredSystemLibraries.cmake ENH: add correct flags for msvc generators 20 years ago
KDE3Macros.cmake BUG: don't include MacroLibrary.cmake, but add a cmake module which implements ADD_FILE_DEPENDENCIES() 20 years ago
MacOSXBundleInfo.plist.in ENH: Improve Mac OSX bundle support 22 years ago
NSIS.template.in ENH: Several changes to for NSIS 20 years ago
TestBigEndian.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 22 years ago
TestBigEndian.cmake ENH: add documentation support for modules 20 years ago
TestCXXAcceptsFlag.cmake ENH: add documentation support for modules 20 years ago
TestForANSIForScope.cmake ENH: add documentation support for modules 20 years ago
TestForANSIStreamHeaders.cmake ENH: cleanups 20 years ago
TestForANSIStreamHeaders.cxx new try compile module 23 years ago
TestForAnsiForScope.cxx ERR: Removed warning for unused variable. 23 years ago
TestForSSTREAM.cmake ENH: add support for watcom wmake and wcl386 20 years ago
TestForSSTREAM.cxx ENH: add support for watcom wmake and wcl386 20 years ago
TestForSTDNamespace.cmake ENH: cleanups 20 years ago
TestForSTDNamespace.cxx Complete rework of makefile generators expect trouble 23 years ago
UsePkgConfig.cmake BUG: change the formatting of the pkgconfig module documentation so that it 20 years ago
UseQt4.cmake ENH: add documentation support for modules 20 years ago
UseSWIG.cmake ENH: cleanups 20 years ago
UseVTK40.cmake ENH: add documentation support for modules 20 years ago
UseVTKBuildSettings40.cmake ENH: add documentation support for modules 20 years ago
UseVTKConfig40.cmake ENH: add documentation support for modules 20 years ago
Use_wxWindows.cmake ENH: cleanups 20 years ago
UsewxWidgets.cmake ENH: add documentation support for modules 20 years ago
VTKCompatibility.cmake ENH: add backwards compatibility fix for more aggressive find_path command 20 years ago
kde3init_dummy.cpp.in ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of 20 years ago
kde3uic.cmake ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of 20 years ago
readme.txt ENH: Added optional component list to the REQUIRED option of the FIND_PACKAGE command. This addresses bug#2771. 20 years ago

readme.txt

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_DIR Where to find xxx.h, etc. If for some reason, you really need two paths, then that shouldn't be a problem - however, consider if you really should have two different FindXXX.cmake files. (XXX_INCLUDE_PATH was considered bad because a path includes an actual filename.)
XXX_LIBRARIES The libraries to link against to use XXX. These should include full paths.
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_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 relevent 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.

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_DIR 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.

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 greate isn't it?
# VAR_REALLY_COOL - cool right?
#

To have a .cmake file in this directory NOT show up in the
modules documentation, you should start the file with a blank
line.

A FindXXX.cmake module will typically be loaded by the command

FIND_PACKAGE(XXX [QUIET] [REQUIRED [components...]])

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 and should never issue a FATAL_ERROR. 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. For each package-specific component, say
YYY, listed after the REQUIRED option a variable XXX_FIND_REQUIRED_YYY
to true. This can be used by the FindXXX.cmake module to determine
which sub-components of the package must 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.