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.
Modestas Vainius 2f5181c101
Import cmake 2.6.3~rc11
16 years ago
..
Platform Import cmake 2.6.3~rc11 16 years ago
AddFileDependencies.cmake import cmake 2.6.0 16 years ago
BundleUtilities.cmake Import cmake 2.6.2 16 years ago
CMake.cmake import cmake 2.6.0 16 years ago
CMakeASM-ATTInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeASMCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeASMInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeASM_MASMInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeAddNewLanguage.txt import cmake 2.6.0 16 years ago
CMakeBackwardCompatibilityC.cmake import cmake 2.6.0 16 years ago
CMakeBackwardCompatibilityCXX.cmake import cmake 2.6.0 16 years ago
CMakeBorlandFindMake.cmake import cmake 2.6.0 16 years ago
CMakeBuildSettings.cmake.in import cmake 2.6.0 16 years ago
CMakeCCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeCCompilerABI.c Import cmake 2.6.2 16 years ago
CMakeCCompilerId.c.in Import cmake 2.6.2 16 years ago
CMakeCInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeCXXCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeCXXCompilerABI.cpp Import cmake 2.6.2 16 years ago
CMakeCXXCompilerId.cpp.in Import cmake 2.6.2 16 years ago
CMakeCXXInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeCommonLanguageInclude.cmake import cmake 2.6.0 16 years ago
CMakeCompilerABI.h import cmake 2.6.0 16 years ago
CMakeConfigurableFile.in import cmake 2.6.0 16 years ago
CMakeDependentOption.cmake import cmake 2.6.0 16 years ago
CMakeDetermineASM-ATTCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeDetermineASMCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeDetermineASM_MASMCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeDetermineCCompiler.cmake Import cmake 2.6.2 16 years ago
CMakeDetermineCXXCompiler.cmake Import cmake 2.6.2 16 years ago
CMakeDetermineCompilerABI.cmake import cmake 2.6.0 16 years ago
CMakeDetermineCompilerId.cmake import cmake 2.6.0 16 years ago
CMakeDetermineFortranCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeDetermineJavaCompiler.cmake import cmake 2.6.0 16 years ago
CMakeDetermineRCCompiler.cmake import cmake 2.6.0 16 years ago
CMakeDetermineSystem.cmake import cmake 2.6.0 16 years ago
CMakeExportBuildSettings.cmake import cmake 2.6.0 16 years ago
CMakeFindBinUtils.cmake Import cmake 2.6.2 16 years ago
CMakeFindFrameworks.cmake import cmake 2.6.0 16 years ago
CMakeFindWMake.cmake import cmake 2.6.0 16 years ago
CMakeFindXCode.cmake import cmake 2.6.0 16 years ago
CMakeForceCompiler.cmake import cmake 2.6.0 16 years ago
CMakeFortranCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeFortranCompilerId.F90.in Import cmake 2.6.3~rc11 16 years ago
CMakeFortranInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeGenericSystem.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeImportBuildSettings.cmake Import cmake 2.6.2 16 years ago
CMakeJavaCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeJavaInformation.cmake import cmake 2.6.0 16 years ago
CMakeLists.txt import cmake 2.6.0 16 years ago
CMakeMSYSFindMake.cmake import cmake 2.6.0 16 years ago
CMakeMinGWFindMake.cmake import cmake 2.6.0 16 years ago
CMakeNMakeFindMake.cmake import cmake 2.6.0 16 years ago
CMakePlatformId.h.in Import cmake 2.6.3~rc11 16 years ago
CMakePrintSystemInformation.cmake import cmake 2.6.0 16 years ago
CMakeRCCompiler.cmake.in import cmake 2.6.0 16 years ago
CMakeRCInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeSystem.cmake.in import cmake 2.6.0 16 years ago
CMakeSystemSpecificInformation.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeTestASM-ATTCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeTestASMCompiler.cmake import cmake 2.6.0 16 years ago
CMakeTestASM_MASMCompiler.cmake Import cmake 2.6.3~rc11 16 years ago
CMakeTestCCompiler.cmake import cmake 2.6.0 16 years ago
CMakeTestCXXCompiler.cmake import cmake 2.6.0 16 years ago
CMakeTestForFreeVC.cxx import cmake 2.6.0 16 years ago
CMakeTestFortranCompiler.cmake Import cmake 2.6.2 16 years ago
CMakeTestGNU.c import cmake 2.6.0 16 years ago
CMakeTestJavaCompiler.cmake import cmake 2.6.0 16 years ago
CMakeTestNMakeCLVersion.c import cmake 2.6.0 16 years ago
CMakeTestRCCompiler.cmake import cmake 2.6.0 16 years ago
CMakeUnixFindMake.cmake import cmake 2.6.0 16 years ago
CMakeVS6BackwardCompatibility.cmake import cmake 2.6.0 16 years ago
CMakeVS6FindMake.cmake import cmake 2.6.0 16 years ago
CMakeVS7BackwardCompatibility.cmake import cmake 2.6.0 16 years ago
CMakeVS7FindMake.cmake import cmake 2.6.0 16 years ago
CMakeVS8FindMake.cmake import cmake 2.6.0 16 years ago
CMakeVS9FindMake.cmake import cmake 2.6.0 16 years ago
CMakeVS71FindMake.cmake import cmake 2.6.0 16 years ago
COPYING-CMAKE-SCRIPTS import cmake 2.6.0 16 years ago
CPack.DS_Store.in import cmake 2.6.0 16 years ago
CPack.Description.plist.in import cmake 2.6.0 16 years ago
CPack.Info.plist.in Import cmake 2.6.2 16 years ago
CPack.OSXScriptLauncher.in import cmake 2.6.0 16 years ago
CPack.OSXX11.Info.plist.in Import cmake 2.6.3~rc11 16 years ago
CPack.RuntimeScript.in Import cmake 2.6.3~rc11 16 years ago
CPack.STGZ_Header.sh.in import cmake 2.6.0 16 years ago
CPack.VolumeIcon.icns.in import cmake 2.6.0 16 years ago
CPack.background.png.in import cmake 2.6.0 16 years ago
CPack.cmake Import cmake 2.6.3~rc11 16 years ago
CPack.distribution.dist.in Import cmake 2.6.2 16 years ago
CPackDeb.cmake import cmake 2.6.0 16 years ago
CPackRPM.cmake Import cmake 2.6.3~rc11 16 years ago
CPackZIP.cmake import cmake 2.6.0 16 years ago
CTest.cmake Import cmake 2.6.3~rc11 16 years ago
CTestTargets.cmake import cmake 2.6.0 16 years ago
CheckCCompilerFlag.cmake Import cmake 2.6.2 16 years ago
CheckCSourceCompiles.cmake import cmake 2.6.0 16 years ago
CheckCSourceRuns.cmake import cmake 2.6.0 16 years ago
CheckCXXCompilerFlag.cmake import cmake 2.6.0 16 years ago
CheckCXXSourceCompiles.cmake import cmake 2.6.0 16 years ago
CheckCXXSourceRuns.cmake import cmake 2.6.0 16 years ago
CheckForPthreads.c Import cmake 2.6.3~rc11 16 years ago
CheckFortranFunctionExists.cmake Import cmake 2.6.2 16 years ago
CheckFunctionExists.c import cmake 2.6.0 16 years ago
CheckFunctionExists.cmake import cmake 2.6.0 16 years ago
CheckIncludeFile.c.in import cmake 2.6.0 16 years ago
CheckIncludeFile.cmake import cmake 2.6.0 16 years ago
CheckIncludeFile.cxx.in import cmake 2.6.0 16 years ago
CheckIncludeFileCXX.cmake import cmake 2.6.0 16 years ago
CheckIncludeFiles.cmake import cmake 2.6.0 16 years ago
CheckLibraryExists.cmake import cmake 2.6.0 16 years ago
CheckLibraryExists.lists.in import cmake 2.6.0 16 years ago
CheckSizeOf.cmake import cmake 2.6.0 16 years ago
CheckStructHasMember.cmake import cmake 2.6.0 16 years ago
CheckSymbolExists.cmake import cmake 2.6.0 16 years ago
CheckTypeSize.cmake import cmake 2.6.0 16 years ago
CheckTypeSizeC.c.in Import cmake 2.6.2 16 years ago
CheckVariableExists.c import cmake 2.6.0 16 years ago
CheckVariableExists.cmake import cmake 2.6.0 16 years ago
Dart.cmake import cmake 2.6.0 16 years ago
DartConfiguration.tcl.in import cmake 2.6.0 16 years ago
Documentation.cmake import cmake 2.6.0 16 years ago
DummyCXXFile.cxx import cmake 2.6.0 16 years ago
FLTKCompatibility.cmake import cmake 2.6.0 16 years ago
FeatureSummary.cmake import cmake 2.6.0 16 years ago
FindASPELL.cmake import cmake 2.6.0 16 years ago
FindAVIFile.cmake import cmake 2.6.0 16 years ago
FindBLAS.cmake Import cmake 2.6.2 16 years ago
FindBZip2.cmake import cmake 2.6.0 16 years ago
FindBoost.cmake Import cmake 2.6.3~rc11 16 years ago
FindCABLE.cmake import cmake 2.6.0 16 years ago
FindCURL.cmake import cmake 2.6.0 16 years ago
FindCVS.cmake import cmake 2.6.0 16 years ago
FindCoin3D.cmake Import cmake 2.6.3~rc11 16 years ago
FindCups.cmake import cmake 2.6.0 16 years ago
FindCurses.cmake Import cmake 2.6.3~rc11 16 years ago
FindCxxTest.cmake Import cmake 2.6.3~rc11 16 years ago
FindCygwin.cmake import cmake 2.6.0 16 years ago
FindDCMTK.cmake import cmake 2.6.0 16 years ago
FindDart.cmake import cmake 2.6.0 16 years ago
FindDevIL.cmake Import cmake 2.6.3~rc11 16 years ago
FindDoxygen.cmake Import cmake 2.6.3~rc11 16 years ago
FindEXPAT.cmake Import cmake 2.6.3~rc11 16 years ago
FindFLTK.cmake Import cmake 2.6.3~rc11 16 years ago
FindFLTK2.cmake import cmake 2.6.0 16 years ago
FindFreetype.cmake Import cmake 2.6.2 16 years ago
FindGCCXML.cmake import cmake 2.6.0 16 years ago
FindGDAL.cmake Import cmake 2.6.3~rc11 16 years ago
FindGIF.cmake Import cmake 2.6.2 16 years ago
FindGLU.cmake import cmake 2.6.0 16 years ago
FindGLUT.cmake Import cmake 2.6.3~rc11 16 years ago
FindGTK.cmake import cmake 2.6.0 16 years ago
FindGettext.cmake Import cmake 2.6.3~rc11 16 years ago
FindGnuplot.cmake import cmake 2.6.0 16 years ago
FindHSPELL.cmake import cmake 2.6.0 16 years ago
FindHTMLHelp.cmake import cmake 2.6.0 16 years ago
FindITK.cmake import cmake 2.6.0 16 years ago
FindImageMagick.cmake Import cmake 2.6.2 16 years ago
FindJNI.cmake Import cmake 2.6.2 16 years ago
FindJPEG.cmake Import cmake 2.6.2 16 years ago
FindJasper.cmake import cmake 2.6.0 16 years ago
FindJava.cmake import cmake 2.6.0 16 years ago
FindKDE3.cmake Import cmake 2.6.3~rc11 16 years ago
FindKDE4.cmake Import cmake 2.6.3~rc11 16 years ago
FindLAPACK.cmake Import cmake 2.6.2 16 years ago
FindLATEX.cmake import cmake 2.6.0 16 years ago
FindLibXml2.cmake Import cmake 2.6.3~rc11 16 years ago
FindLibXslt.cmake import cmake 2.6.0 16 years ago
FindLua50.cmake Import cmake 2.6.3~rc11 16 years ago
FindLua51.cmake Import cmake 2.6.3~rc11 16 years ago
FindMFC.cmake Import cmake 2.6.3~rc11 16 years ago
FindMPEG.cmake import cmake 2.6.0 16 years ago
FindMPEG2.cmake Import cmake 2.6.3~rc11 16 years ago
FindMPI.cmake Import cmake 2.6.2 16 years ago
FindMatlab.cmake Import cmake 2.6.2 16 years ago
FindMotif.cmake import cmake 2.6.0 16 years ago
FindOpenAL.cmake Import cmake 2.6.2 16 years ago
FindOpenGL.cmake Import cmake 2.6.2 16 years ago
FindOpenMP.cmake Import cmake 2.6.3~rc11 16 years ago
FindOpenSSL.cmake Import cmake 2.6.2 16 years ago
FindOpenSceneGraph.cmake Import cmake 2.6.3~rc11 16 years ago
FindOpenThreads.cmake Import cmake 2.6.3~rc11 16 years ago
FindPHP4.cmake Import cmake 2.6.2 16 years ago
FindPNG.cmake Import cmake 2.6.2 16 years ago
FindPackageHandleStandardArgs.cmake Import cmake 2.6.2 16 years ago
FindPackageMessage.cmake import cmake 2.6.0 16 years ago
FindPerl.cmake import cmake 2.6.0 16 years ago
FindPerlLibs.cmake Import cmake 2.6.3~rc11 16 years ago
FindPhysFS.cmake Import cmake 2.6.2 16 years ago
FindPike.cmake import cmake 2.6.0 16 years ago
FindPkgConfig.cmake import cmake 2.6.0 16 years ago
FindProducer.cmake Import cmake 2.6.3~rc11 16 years ago
FindPythonInterp.cmake Import cmake 2.6.3~rc11 16 years ago
FindPythonLibs.cmake import cmake 2.6.0 16 years ago
FindQt.cmake import cmake 2.6.0 16 years ago
FindQt3.cmake Import cmake 2.6.2 16 years ago
FindQt4.cmake Import cmake 2.6.3~rc11 16 years ago
FindQuickTime.cmake Import cmake 2.6.2 16 years ago
FindRTI.cmake Import cmake 2.6.3~rc11 16 years ago
FindRuby.cmake import cmake 2.6.0 16 years ago
FindSDL.cmake Import cmake 2.6.2 16 years ago
FindSDL_image.cmake Import cmake 2.6.2 16 years ago
FindSDL_mixer.cmake Import cmake 2.6.2 16 years ago
FindSDL_net.cmake Import cmake 2.6.2 16 years ago
FindSDL_sound.cmake Import cmake 2.6.2 16 years ago
FindSDL_ttf.cmake Import cmake 2.6.2 16 years ago
FindSWIG.cmake Import cmake 2.6.2 16 years ago
FindSelfPackers.cmake import cmake 2.6.0 16 years ago
FindSquish.cmake Import cmake 2.6.3~rc11 16 years ago
FindSubversion.cmake Import cmake 2.6.2 16 years ago
FindTCL.cmake Import cmake 2.6.2 16 years ago
FindTIFF.cmake Import cmake 2.6.2 16 years ago
FindTclStub.cmake Import cmake 2.6.3~rc11 16 years ago
FindTclsh.cmake Import cmake 2.6.2 16 years ago
FindThreads.cmake Import cmake 2.6.2 16 years ago
FindUnixCommands.cmake import cmake 2.6.0 16 years ago
FindVTK.cmake import cmake 2.6.0 16 years ago
FindWget.cmake import cmake 2.6.0 16 years ago
FindWish.cmake Import cmake 2.6.2 16 years ago
FindX11.cmake Import cmake 2.6.2 16 years ago
FindXMLRPC.cmake Import cmake 2.6.2 16 years ago
FindZLIB.cmake import cmake 2.6.0 16 years ago
Findosg.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgAnimation.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgDB.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgFX.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgGA.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgIntrospection.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgManipulator.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgParticle.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgProducer.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgShadow.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgSim.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgTerrain.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgText.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgUtil.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgViewer.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgVolume.cmake Import cmake 2.6.3~rc11 16 years ago
FindosgWidget.cmake Import cmake 2.6.3~rc11 16 years ago
Findosg_functions.cmake Import cmake 2.6.3~rc11 16 years ago
FindwxWidgets.cmake Import cmake 2.6.3~rc11 16 years ago
FindwxWindows.cmake import cmake 2.6.0 16 years ago
FortranCInterface.cmake Import cmake 2.6.3~rc11 16 years ago
FortranCInterface.h.in Import cmake 2.6.3~rc11 16 years ago
GetPrerequisites.cmake Import cmake 2.6.3~rc11 16 years ago
ITKCompatibility.cmake import cmake 2.6.0 16 years ago
InstallRequiredSystemLibraries.cmake Import cmake 2.6.3~rc11 16 years ago
KDE3Macros.cmake import cmake 2.6.0 16 years ago
MacOSXBundleInfo.plist.in Import cmake 2.6.2 16 years ago
MacOSXFrameworkInfo.plist.in Import cmake 2.6.2 16 years ago
MacroAddFileDependencies.cmake import cmake 2.6.0 16 years ago
NSIS.InstallOptions.ini.in import cmake 2.6.0 16 years ago
NSIS.template.in Import cmake 2.6.2 16 years ago
SquishRunTestCase.bat Import cmake 2.6.3~rc11 16 years ago
SquishRunTestCase.sh Import cmake 2.6.3~rc11 16 years ago
SquishTestScript.cmake Import cmake 2.6.3~rc11 16 years ago
SystemInformation.cmake import cmake 2.6.0 16 years ago
SystemInformation.in import cmake 2.6.0 16 years ago
TestBigEndian.cmake import cmake 2.6.0 16 years ago
TestCXXAcceptsFlag.cmake import cmake 2.6.0 16 years ago
TestEndianess.c.in Import cmake 2.6.2 16 years ago
TestForANSIForScope.cmake import cmake 2.6.0 16 years ago
TestForANSIStreamHeaders.cmake import cmake 2.6.0 16 years ago
TestForANSIStreamHeaders.cxx import cmake 2.6.0 16 years ago
TestForAnsiForScope.cxx import cmake 2.6.0 16 years ago
TestForSSTREAM.cmake import cmake 2.6.0 16 years ago
TestForSSTREAM.cxx import cmake 2.6.0 16 years ago
TestForSTDNamespace.cmake import cmake 2.6.0 16 years ago
TestForSTDNamespace.cxx import cmake 2.6.0 16 years ago
UseEcos.cmake import cmake 2.6.0 16 years ago
UsePkgConfig.cmake Import cmake 2.6.2 16 years ago
UseQt4.cmake Import cmake 2.6.3~rc11 16 years ago
UseSWIG.cmake import cmake 2.6.0 16 years ago
UseVTK40.cmake import cmake 2.6.0 16 years ago
UseVTKBuildSettings40.cmake import cmake 2.6.0 16 years ago
UseVTKConfig40.cmake import cmake 2.6.0 16 years ago
Use_wxWindows.cmake import cmake 2.6.0 16 years ago
UsewxWidgets.cmake import cmake 2.6.0 16 years ago
VTKCompatibility.cmake import cmake 2.6.0 16 years ago
ecos_clean.cmake import cmake 2.6.0 16 years ago
kde3init_dummy.cpp.in import cmake 2.6.0 16 years ago
kde3uic.cmake import cmake 2.6.0 16 years ago
readme.txt Import cmake 2.6.2 16 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_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.
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?
#

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 [major[.minor[.patch[.tweak]]]] [EXACT]
[QUIET] [REQUIRED [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 docmented 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. 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.

To get this behaviour you can use the FIND_PACKAGE_HANDLE_STANDARD_ARGS()
macro, as an example see FindJPEG.cmake.