CMake/Modules
2003-08-05 09:55:20 -04:00
..
Platform added test for whether pdbtype should be used for nmake 2003-08-05 09:55:20 -04:00
CheckForPthreads.c ENH: Do better test for pthreads 2003-08-01 16:48:41 -04:00
CheckFunctionExists.c
CheckFunctionExists.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckIncludeFile.c.in
CheckIncludeFile.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckIncludeFile.cxx.in
CheckIncludeFileCXX.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckIncludeFiles.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckLibraryExists.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckLibraryExists.lists.in
CheckSizeOf.cmake
CheckSymbolExists.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckTypeSize.c
CheckTypeSize.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckVariableExists.c
CheckVariableExists.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CMakeBackwardCompatibilityC.cmake
CMakeBackwardCompatibilityCXX.cmake
CMakeBorlandFindMake.cmake
CMakeBuildSettings.cmake.in
CMakeCCompiler.cmake.in
CMakeCXXCompiler.cmake.in
CMakeDefaultMakeRuleVariables.cmake
CMakeDetermineCCompiler.cmake ENH: move full path compiler to internal and not just advanced 2003-02-14 10:40:00 -05:00
CMakeDetermineCXXCompiler.cmake ENH: move full path compiler to internal and not just advanced 2003-02-14 10:40:00 -05:00
CMakeDetermineJavaCompiler.cmake
CMakeDetermineSystem.cmake ENH: set CMAKE_SYSTEM_VERSION for windows 2003-07-16 15:38:31 -04:00
CMakeExportBuildSettings.cmake
CMakeImportBuildSettings.cmake
CMakeJavaCompiler.cmake.in
CMakeLists.txt ENH: Added optional configuration of data/doc/man dirs. This will be useful for package maintainers. 2003-07-21 16:38:53 -04:00
CMakeNMakeFindMake.cmake
CMakePrintSystemInformation.cmake
CMakeSystem.cmake.in ENH: add CMAKE_SYSTEM_PROCESSOR 2003-06-11 10:07:57 -04:00
CMakeSystemSpecificInformation.cmake ENH: add LDFLAGS as an initial value for all linker flags, good for -64 2003-05-23 09:35:04 -04:00
CMakeTestCCompiler.cmake ERR: Fixed typeo tests->test. 2003-08-04 17:08:41 -04:00
CMakeTestCXXCompiler.cmake ERR: Fixed typeo tests->test. 2003-08-04 17:08:41 -04:00
CMakeTestGNU.c
CMakeTestNMakeCLVersion.c added test for whether pdbtype should be used for nmake 2003-08-05 09:55:20 -04:00
CMakeUnixFindMake.cmake
CMakeVS6BackwardCompatibility.cmake
CMakeVS6FindMake.cmake BUG: look for msdev in the right place 2003-02-20 10:44:58 -05:00
CMakeVS7BackwardCompatibility.cmake
CMakeVS7FindMake.cmake
CMakeVS71FindMake.cmake add find make program for 71 2003-05-09 15:47:21 -04:00
Dart.cmake ENH: Replace WRITE_FILE with FILE(WRITE and FILE(APPEND. Replace MAKE_DIRECTORY with FILE(MAKE_DIRECTORY, replace STRING(ASCII things 2003-07-11 14:14:03 -04:00
DartConfiguration.tcl.in ENH: Fix some dart issues. Now it works fine without dart. 2003-05-02 13:57:25 -04:00
Documentation.cmake
DummyCXXFile.cxx
FindAVIFile.cmake
FindCABLE.cmake ENH: Updated search paths to newest values from Cable. 2003-04-22 16:10:18 -04:00
FindCurses.cmake
FindCygwin.cmake
FindDart.cmake
FindDoxygen.cmake
FindFLTK.cmake ENH: Added /usr/local/lib/fltk 2003-04-04 10:05:20 -05:00
FindGCCXML.cmake
FindGLU.cmake
FindGLUT.cmake
FindGnuplot.cmake
FindGTK.cmake More variables advanced 2003-03-16 20:25:14 -05:00
FindHTMLHelp.cmake
FindImageMagick.cmake
FindITK.cmake
FindJava.cmake
FindJNI.cmake Ok, now it finds JNI on Mac OSX 10.2 2003-02-11 14:49:11 -05:00
FindJPEG.cmake
FindLATEX.cmake Make things work on unix and add DVIPDF 2003-01-28 08:53:27 -05:00
FindMFC.cmake
FindMPEG2.cmake
FindMPEG.cmake
FindMPI.cmake
FindOpenGL.cmake ENH: add checking for NOTFOUND 2003-01-31 15:01:37 -05:00
FindPerl.cmake FIX: the current version of Perl is 5.8 2003-01-23 10:36:35 -05:00
FindPNG.cmake
FindPythonLibs.cmake
FindQt.cmake ENH: Make it work for QT 2.3 non commercial on windows 2003-08-01 19:13:38 -04:00
FindSDL.cmake
FindSelfPackers.cmake
FindTCL.cmake
FindTclsh.cmake
FindThreads.cmake ENH: MAke it work on FreeBSD 2003-08-01 17:11:46 -04:00
FindTIFF.cmake
FindUnixCommands.cmake
FindVTK.cmake ENH: Improved error message for VTK_DIR not found to refer to it as a cache entry. Some users thought this was supposed to be an environment variable. 2003-07-24 11:06:18 -04:00
FindWget.cmake
FindWish.cmake
FindwxWindows.cmake made a minor bugfix on my FindwxWindows.cmake. 2003-07-31 13:15:42 -04:00
FindX11.cmake Attempt to fix build problem on some platforms 2003-01-29 09:06:46 -05:00
FindZLIB.cmake
readme.txt
TestBigEndian.c
TestBigEndian.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
TestCXXAcceptsFlag.cmake ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
TestForANSIForScope.cmake remove commented code 2003-02-20 08:41:33 -05:00
TestForAnsiForScope.cxx ERR: Removed warning for unused variable. 2003-05-16 16:33:11 -04:00
TestForANSIStreamHeaders.cmake
TestForANSIStreamHeaders.cxx
TestForSTDNamespace.cmake BUG: fix test not to run every time 2003-03-11 17:35:23 -05:00
TestForSTDNamespace.cxx
Use_wxWindows.cmake ENH: Add Use file for wxWindows. Thanks Jan Woetzel 2003-07-29 13:36:50 -04:00
UseVTK40.cmake
UseVTKBuildSettings40.cmake
UseVTKConfig40.cmake BUG: Copying _LIB_DEPENDS variables requires double-quoted argument. 2003-02-07 16:29:13 -05:00

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.