Bill Hoffman 98a5bbd3aa ENH: fix depend bug in qt пре 19 година
..
Platform a47820ca86 ENH: add beos file пре 19 година
AddFileDependencies.cmake a980fdc96a BUG: don't include MacroLibrary.cmake, but add a cmake module which implements ADD_FILE_DEPENDENCIES() пре 20 година
CMake.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeAddNewLanguage.txt 8be3e4eeca ENH: clean up EnableLanguage try to fix problem where try compile runs cmake пре 20 година
CMakeBackwardCompatibilityC.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeBackwardCompatibilityCXX.cmake 9891260a6d ENH: add support for watcom wmake and wcl386 пре 20 година
CMakeBorlandFindMake.cmake e2d1104881 determine CMAKE_MAKE_PROGRAM in EnableLanguage пре 23 година
CMakeBuildSettings.cmake.in ee72d5740b ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. пре 23 година
CMakeCCompiler.cmake.in aa98e3647d ENH: fix more than one argument passed in to compilers via environment пре 20 година
CMakeCInformation.cmake 08289893b8 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 година
CMakeCXXCompiler.cmake.in b78d936ecf BUG: Need to duplicate some information from CMakeCCompiler to support C++-only projects. пре 20 година
CMakeCXXInformation.cmake 1d0502927c ENH: Adding support to link specifically to an archive or a shared library based on the file name specified. This fixes the problem of having -lfoo linking to libfoo.so even when it came from libfoo.a being specified. пре 19 година
CMakeCommonLanguageInclude.cmake 45d85c2e34 BUG: fix for 3550 again пре 19 година
CMakeConfigurableFile.in 01a55559dd ENH: Make modules use configure instead of file write пре 20 година
CMakeDependentOption.cmake de007ef199 ENH: Adding CMAKE_DEPENDENT_OPTION macro. пре 19 година
CMakeDetermineCCompiler.cmake 7001a88a74 BUG: Search for the compiler only once and store a full path to it in the cache. This avoids problems with the case of locations in the PATH variable on Windows that change the compiler name when CMake is re-run. CMakeFiles/CMake*Compiler.cmake files should hold the full path to the compiler always. пре 19 година
CMakeDetermineCXXCompiler.cmake 3a32cec969 ENH: merge in changes for beos support пре 19 година
CMakeDetermineFortranCompiler.cmake 7001a88a74 BUG: Search for the compiler only once and store a full path to it in the cache. This avoids problems with the case of locations in the PATH variable on Windows that change the compiler name when CMake is re-run. CMakeFiles/CMake*Compiler.cmake files should hold the full path to the compiler always. пре 19 година
CMakeDetermineJavaCompiler.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CMakeDetermineRCCompiler.cmake 8ffb32369f BUG: Need to search for rc by default, not c++ compilers. пре 19 година
CMakeDetermineSystem.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CMakeExportBuildSettings.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
CMakeFindFrameworks.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeFindWMake.cmake 9891260a6d ENH: add support for watcom wmake and wcl386 пре 20 година
CMakeFindXCode.cmake 8960a220a9 ENH: add trycompile code for xcode пре 21 година
CMakeFortranCompiler.cmake.in 1cf4d146fc ENH: Merge debian changes. Support more fortran extensions пре 19 година
CMakeFortranInformation.cmake 429571bd1f STYLE: Removing unused platform variable CMAKE_SHARED_MODULE_LINK_Fortran_FLAGS. It does not make sense because nothing links to shared modules. пре 19 година
CMakeGenericSystem.cmake e55ff93748 ENH: Allow user project code to distinguish between an install prefix set on the command line and one set by CMake as a default. This is useful for changing the default prefix while still allowing the user to override it. пре 19 година
CMakeImportBuildSettings.cmake 2523629f4b ENH: fix for case difference with nmake пре 19 година
CMakeJavaCompiler.cmake.in b8b298104b ENH: make sure flags set in CC or CXX environment variables stay with the compiler пре 20 година
CMakeJavaInformation.cmake 5ecfd3d4d3 ENH: fix java and add OBJECT_DIR support пре 20 година
CMakeLists.txt a6bd324605 ENH: Installing readme.txt in Modules directory to be consistent with windows. пре 22 година
CMakeMSYSFindMake.cmake 5042581f43 ENH: better algorithm for looking for make and gcc on msys and mingw пре 20 година
CMakeMinGWFindMake.cmake 5042581f43 ENH: better algorithm for looking for make and gcc on msys and mingw пре 20 година
CMakeNMakeFindMake.cmake e2d1104881 determine CMAKE_MAKE_PROGRAM in EnableLanguage пре 23 година
CMakePrintSystemInformation.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeRCCompiler.cmake.in b8b298104b ENH: make sure flags set in CC or CXX environment variables stay with the compiler пре 20 година
CMakeRCInformation.cmake 718de4cea5 ENH: fix spelling errors пре 20 година
CMakeSystem.cmake.in 3021918293 ENH: add CMAKE_SYSTEM_PROCESSOR пре 22 година
CMakeSystemSpecificInformation.cmake 1d0502927c ENH: Adding support to link specifically to an archive or a shared library based on the file name specified. This fixes the problem of having -lfoo linking to libfoo.so even when it came from libfoo.a being specified. пре 19 година
CMakeTestCCompiler.cmake e49b93989d COMP: More warnings and hp issues пре 19 година
CMakeTestCXXCompiler.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CMakeTestForFreeVC.cxx 0d4cd0436b ENH better test for free VC tools пре 21 година
CMakeTestFortranCompiler.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CMakeTestGNU.c 6b31e5c851 BUG: fix problem where cmake thinks the intel compiler is gnu пре 21 година
CMakeTestJavaCompiler.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeTestNMakeCLVersion.c dfcd4f2154 added test for whether pdbtype should be used for nmake пре 22 година
CMakeTestRCCompiler.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeUnixFindMake.cmake 9992fe5103 BUG: Removed stray debugging message. пре 23 година
CMakeVCManifest.cmake 276e7e21a3 ENH: Adding flags to force generation of manifest files when building with VC 8. пре 19 година
CMakeVCManifestExe.cmake 5ac4801a04 BUG: use different commands for shared libraries and exe for manifest stuff fix for bug#4039 пре 19 година
CMakeVS6BackwardCompatibility.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeVS6FindMake.cmake 51f91db648 ENH: add correct flags for msvc generators пре 20 година
CMakeVS71FindMake.cmake 51f91db648 ENH: add correct flags for msvc generators пре 20 година
CMakeVS7BackwardCompatibility.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
CMakeVS7FindMake.cmake 51f91db648 ENH: add correct flags for msvc generators пре 20 година
CMakeVS8FindMake.cmake 51f91db648 ENH: add correct flags for msvc generators пре 20 година
COPYING-CMAKE-SCRIPTS 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
CPack.Description.plist.in 5358809a5c ENH: More CPack stuff and fix zlib compression пре 20 година
CPack.Info.plist.in a460c60843 ENH: Add verbose flag to package maker and add CFBundleIdentifier string пре 20 година
CPack.OSXScriptLauncher.in de5540f7e5 ENH: First pass at CPack generator for OSX X11 applications. This are applications that require X11 to work. This is not really installed but a bundle packager пре 19 година
CPack.OSXX11.Info.plist.in de5540f7e5 ENH: First pass at CPack generator for OSX X11 applications. This are applications that require X11 to work. This is not really installed but a bundle packager пре 19 година
CPack.RuntimeScript.in f015e1ff03 ENH: Change permission for getdisplay.sh to make the runtimescript work пре 19 година
CPack.STGZ_Header.sh.in d6422d3ad6 BUG: Fixes for dash пре 19 година
CPack.cmake 4925e64b97 ENH: add support for cygwin source and binary packaging пре 19 година
CTest.cmake e026f620f8 BUG: fix typo пре 19 година
CTestTargets.cmake f9dc5b5553 ENH: On Visual Studio and Xcode handle config type пре 19 година
CheckCCompilerFlag.cmake 86c63dca11 ENH: two macros to check whether the C/CXX compiler supports a given flag: пре 19 година
CheckCSourceCompiles.cmake d454231a0a STYLE: fix #3519 (incorrect comment) пре 19 година
CheckCSourceRuns.cmake 8b9d44d512 ENH: fixs for check compile stuff from Oswald B. пре 19 година
CheckCXXCompilerFlag.cmake 86c63dca11 ENH: two macros to check whether the C/CXX compiler supports a given flag: пре 19 година
CheckCXXSourceCompiles.cmake d454231a0a STYLE: fix #3519 (incorrect comment) пре 19 година
CheckCXXSourceRuns.cmake 8b9d44d512 ENH: fixs for check compile stuff from Oswald B. пре 19 година
CheckForPthreads.c 3a32cec969 ENH: merge in changes for beos support пре 19 година
CheckFunctionExists.c fad91fb770 ENH: fix tests for non-ansi c on hp and remove warnings for ansi c пре 22 година
CheckFunctionExists.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckIncludeFile.c.in 095e975c81 BUG: Fix signature of main to work on both strict ANSI and non-ANSI C compilers. пре 19 година
CheckIncludeFile.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckIncludeFile.cxx.in f5d95fb078 Complete rework of makefile generators expect trouble пре 23 година
CheckIncludeFileCXX.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckIncludeFiles.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckLibraryExists.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckLibraryExists.lists.in 3697ad6dc7 Initial attempt to check if library exists пре 23 година
CheckSizeOf.cmake ea1467d056 ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency with the macro name that is defined by the module. пре 23 година
CheckSymbolExists.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckTypeSize.c.in 96f948adf5 ENH: fix checktypesize пре 20 година
CheckTypeSize.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
CheckVariableExists.c a8b2400f7b 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 година
CheckVariableExists.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
Dart.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
DartConfiguration.tcl.in 1ca05e219a ENH: Reorganize and add subversion support пре 21 година
Documentation.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
DummyCXXFile.cxx 9a6c95fcea add checks for ansi flags and not hard code them пре 23 година
FindASPELL.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindAVIFile.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindBZip2.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindBoost.cmake ef6cf109ed ENH: Adding FindBoost.cmake module from Andrew Maclean. This addresses bug#3447. пре 19 година
FindCABLE.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindCURL.cmake d25595a83c ENH: Find module for CURL library. пре 19 година
FindCups.cmake 464e3c137e ENH: add a module to find Cups (#3081), taken from KDE svn пре 19 година
FindCurses.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindCygwin.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindDCMTK.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindDart.cmake 7603244509 ENH: use program files env for searching пре 20 година
FindDoxygen.cmake 3b1c74d34a ENH: fix for backwards compatibility пре 19 година
FindEXPAT.cmake d913a7b1e7 ENH: Find module for EXPAT library. пре 19 година
FindFLTK.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindGCCXML.cmake 7603244509 ENH: use program files env for searching пре 20 година
FindGLU.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindGLUT.cmake 2826dc4003 BUG: fix for bug#3646 GLUT not Glut for framework name пре 19 година
FindGTK.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindGettext.cmake 2d4bc73d39 BUG: add gettext module for working with GNU gettext (#4081) пре 19 година
FindGnuplot.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindHSPELL.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindHTMLHelp.cmake 7603244509 ENH: use program files env for searching пре 20 година
FindITK.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindImageMagick.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindJNI.cmake c074927b41 ENH: Support JVM on Mac пре 19 година
FindJPEG.cmake 60988dd8a2 ENH: honor REQUIRED flag пре 19 година
FindJasper.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindJava.cmake e607d5f7df ENH: More locations for Java пре 19 година
FindKDE.cmake d253baab99 ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of пре 20 година
FindKDE3.cmake 0945aecc94 BUG: fix #3955: add -O2 by default but only if no special buildtype is set пре 19 година
FindKDE4.cmake bb7304706d STYLE: KDEDIR is deprecated and not used, so also document that KDEDIRS is пре 19 година
FindLATEX.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindLibXml2.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindLibXslt.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindMFC.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindMPEG.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindMPEG2.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindMPI.cmake cf8625cf52 ENH: add support for finding mpich2 on windows пре 19 година
FindMatlab.cmake d2689c95a1 ENH: some style fixes for the book пре 20 година
FindMotif.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindOpenAL.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindOpenGL.cmake cf80510ac5 ENH: On apple do not look for X11 пре 19 година
FindOpenSSL.cmake 8b46841b6d ENH: add cmake modules for some common libraries: aspell, hspell, bzip2, пре 19 година
FindPHP4.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindPNG.cmake 07558db6a2 ENH: also look in /usr/local/include/libpng (OpenBSD) пре 19 година
FindPerl.cmake 5a2b41350b BUG: honor the REQUIRED flag for Perl, please backport to 2.4 branch so that пре 19 година
FindPerlLibs.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindPhysFS.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindPike.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindPkgConfig.cmake ff6146334c ENH: better backwards compatibility, and deprecate PKGCONFIG пре 19 година
FindPythonInterp.cmake 5d22d36c5d пре 19 година
FindPythonLibs.cmake 5d22d36c5d пре 19 година
FindQt.cmake b442e86492 ENH: change to fatal error пре 20 година
FindQt3.cmake 651fecee5b ENH: make sure findqt3 finds qt3 and not qt4 пре 19 година
FindQt4.cmake 98a5bbd3aa ENH: fix depend bug in qt пре 19 година
FindRuby.cmake 179aad32f3 BUG: fix 4164, also search for libruby1.8.so, I guess it should be synced пре 19 година
FindSDL.cmake d760e378df BUG: fix for 3765 пре 19 година
FindSDL_image.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindSDL_mixer.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindSDL_net.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindSDL_sound.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
FindSDL_ttf.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindSWIG.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindSelfPackers.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindSubversion.cmake b2240ef6af ENH: Adding FindSubversion module from Tristan Carel. This addresses bug#3987. пре 19 година
FindTCL.cmake 9d5dc7b396 BUG: fix for bug# 3313 same advanced for tcl win and unix пре 19 година
FindTIFF.cmake 64cb554397 ENH: Removing platform-specific name hacks now that FIND_LIBRARY handles it. пре 20 година
FindTclsh.cmake d460481da3 BUG: fix for bug #3846 more advanced stuff пре 19 година
FindThreads.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
FindUnixCommands.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
FindVTK.cmake 859db10e2a ENH: Add ability to find VTK 5 without user help. пре 19 година
FindWget.cmake 74eaecfc3e ENH: cleanups пре 20 година
FindWish.cmake d460481da3 BUG: fix for bug #3846 more advanced stuff пре 19 година
FindX11.cmake d71f723b11 ENH: fix find x11 on the mac пре 20 година
FindXMLRPC.cmake 3fb55bff36 BUG: fix for bug 4123, find xmlrpc in standard locations пре 19 година
FindZLIB.cmake 97c5324534 BUG: don't append to ZLIB_NAMES пре 19 година
FindwxWidgets.cmake 2fd1b374c1 ENH: Patch from Jan for bug#3453. Cleans up find script and enables -isystem feature for use script. пре 19 година
FindwxWindows.cmake 3c9744f406 ENH: Applying patch from bug#3443 to implement FindwxWidgets.cmake properly. It also updates the UseWX test and WXDialog sources to use the new find script. пре 19 година
ITKCompatibility.cmake 540d16384b ENH: added to handle case in ITK 2.8 and earlier пре 19 година
InstallRequiredSystemLibraries.cmake a40a17dcdd ENH: Implemented support for installing VC8 runtime libraries. пре 19 година
KDE3Macros.cmake 5f01d47d7d BUG: fix #3827, the name of the var is _tmp_FILE instead of tmp_FILE, so the пре 19 година
MacOSXBundleInfo.plist.in 1dbcfd2a98 ENH: Improve Mac OSX bundle support пре 22 година
MacroAddFileDependencies.cmake 63c241ea1e ENH: Updates from KDE пре 19 година
NSIS.InstallOptions.ini.in 5b3a2c84fc ENH: use radio buttons to choose PATH options пре 19 година
NSIS.template.in bf74cd9d83 BUG: Compression must be set before any output is created. пре 19 година
TestBigEndian.c fad91fb770 ENH: fix tests for non-ansi c on hp and remove warnings for ansi c пре 22 година
TestBigEndian.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
TestCXXAcceptsFlag.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
TestForANSIForScope.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
TestForANSIStreamHeaders.cmake 74eaecfc3e ENH: cleanups пре 20 година
TestForANSIStreamHeaders.cxx 32b398e55b new try compile module пре 23 година
TestForAnsiForScope.cxx a696dbc815 ERR: Removed warning for unused variable. пре 23 година
TestForSSTREAM.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
TestForSSTREAM.cxx 9891260a6d ENH: add support for watcom wmake and wcl386 пре 20 година
TestForSTDNamespace.cmake 8e9a6beccc ENH: centralized locaiton of CMakeFiles setting пре 19 година
TestForSTDNamespace.cxx f5d95fb078 Complete rework of makefile generators expect trouble пре 23 година
UseEcos.cmake 863f2b76cb BUG: reent.c wasn't intended to be committed, too special пре 19 година
UsePkgConfig.cmake ff6146334c ENH: better backwards compatibility, and deprecate PKGCONFIG пре 19 година
UseQt4.cmake 4167622667 ENH: add QT_USE_QTDBUS as it exists for all other modules too пре 19 година
UseSWIG.cmake 24cdf8aa6c ENH: Added interface to add extra dependencies. пре 19 година
UseVTK40.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
UseVTKBuildSettings40.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
UseVTKConfig40.cmake b7fa820118 ENH: add documentation support for modules пре 20 година
Use_wxWindows.cmake 3c9744f406 ENH: Applying patch from bug#3443 to implement FindwxWidgets.cmake properly. It also updates the UseWX test and WXDialog sources to use the new find script. пре 19 година
UsewxWidgets.cmake 2fd1b374c1 ENH: Patch from Jan for bug#3453. Cleans up find script and enables -isystem feature for use script. пре 19 година
VTKCompatibility.cmake e1a142f033 ENH: fix for back VTK error message пре 19 година
kde3init_dummy.cpp.in d253baab99 ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of пре 20 година
kde3uic.cmake 0afe72e908 BUG: fix #3324: KDE3Macros.cmake didn't find Qt designer plugins when пре 19 година
readme.txt cc7bfeb6e4 ENH: Added XXX_RUNTIME_LIBRARY_DIRS as a suggested variable. пре 19 година

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

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 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. The set of components listed will also be specified in a
XXX_FIND_COMPONENTS variable. 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.