CMake/Modules
Brad King 284071e3fa BUG: Don't use -nostdlib option to link shared libraries. Just use gcc -shared, even for C++ libraries. 2003-03-13 15:46:19 -05:00
..
Platform BUG: Don't use -nostdlib option to link shared libraries. Just use gcc -shared, even for C++ libraries. 2003-03-13 15:46:19 -05:00
CMakeBackwardCompatibilityC.cmake Fix FindX11 to match convention 2003-01-08 11:45:48 -05:00
CMakeBackwardCompatibilityCXX.cmake ENH: only force the use of ansi flags in backwards mode 2003-01-08 12:12:15 -05:00
CMakeBorlandFindMake.cmake determine CMAKE_MAKE_PROGRAM in EnableLanguage 2002-12-03 16:19:16 -05:00
CMakeBuildSettings.cmake.in ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. 2002-12-05 09:46:30 -05:00
CMakeCCompiler.cmake.in BUG: use CMAKE_COMPILER_IS_GNUCC not CMAKE_COMPILER_IS_GNUGCC 2002-11-20 15:23:14 -05:00
CMakeCXXCompiler.cmake.in clean up flags with _init flags 2002-11-11 12:31:46 -05:00
CMakeDefaultMakeRuleVariables.cmake ENH: Added <LINK_FLAGS> to link rules. 2002-12-31 13:08:44 -05:00
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 ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages 2002-12-17 14:54:25 -05:00
CMakeDetermineSystem.cmake ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages 2002-12-17 14:54:25 -05:00
CMakeExportBuildSettings.cmake ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. 2002-12-05 09:46:30 -05:00
CMakeImportBuildSettings.cmake ENH: Using only filename without path or extension for comparing build tools. 2002-12-09 14:33:48 -05:00
CMakeJavaCompiler.cmake.in If there is no java compiler report error on ADD_JAVA_LIBRARY 2002-12-26 19:59:21 -05:00
CMakeLists.txt add install stuff for platform directory 2002-11-11 11:43:23 -05:00
CMakeNMakeFindMake.cmake determine CMAKE_MAKE_PROGRAM in EnableLanguage 2002-12-03 16:19:16 -05:00
CMakePrintSystemInformation.cmake Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
CMakeSystem.cmake.in clean up flags with _init flags 2002-11-11 12:31:46 -05:00
CMakeSystemSpecificInformation.cmake move cmake install out of advanced 2003-02-04 15:37:47 -05:00
CMakeTestCCompiler.cmake ENH: only run test for working c and cxx compiler once 2003-01-22 12:29:37 -05:00
CMakeTestCXXCompiler.cmake ENH: only run test for working c and cxx compiler once 2003-01-22 12:29:37 -05:00
CMakeTestGNU.c ERR: Fixed syntax errors for picky preprocessors. 2002-12-12 10:25:43 -05:00
CMakeUnixFindMake.cmake BUG: Removed stray debugging message. 2002-12-04 16:59:05 -05:00
CMakeVS6BackwardCompatibility.cmake added big endian stuff 2003-01-09 08:50:00 -05:00
CMakeVS6FindMake.cmake BUG: look for msdev in the right place 2003-02-20 10:44:58 -05:00
CMakeVS7BackwardCompatibility.cmake added big endian stuff 2003-01-09 08:50:00 -05:00
CMakeVS7FindMake.cmake ENH: unify EnableLanguage across all generators 2002-12-05 13:44:11 -05:00
CheckFunctionExists.c Add two commonly used modules. First one checks if the function exists, the second one checks the size of type 2002-09-20 13:16:50 -04:00
CheckFunctionExists.cmake Fix problems with required flags 2003-01-03 20:03:35 -05:00
CheckIncludeFile.c.in Simplify checking for headers 2002-09-20 14:16:43 -04:00
CheckIncludeFile.cmake Add required flags 2003-01-03 19:23:19 -05:00
CheckIncludeFile.cxx.in Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
CheckIncludeFileCXX.cmake ENH: only force the use of ansi flags in backwards mode 2003-01-08 12:12:15 -05:00
CheckIncludeFiles.cmake This list can be really long. Only display the variable name 2003-01-21 14:01:41 -05:00
CheckLibraryExists.cmake Fix problems with required flags 2003-01-03 20:03:35 -05:00
CheckLibraryExists.lists.in Initial attempt to check if library exists 2002-09-24 16:36:56 -04:00
CheckSizeOf.cmake ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency with the macro name that is defined by the module. 2002-12-30 11:02:31 -05:00
CheckSymbolExists.cmake Fix update date and cleanup 2003-02-28 12:42:50 -05:00
CheckTypeSize.c ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency with the macro name that is defined by the module. 2002-12-30 11:02:31 -05:00
CheckTypeSize.cmake BUG: Should test HAVE_<VARIABLE> before repeating test, not just whether <VARIABLE> is set. 2003-03-06 10:32:43 -05:00
CheckVariableExists.c ENH: Added CHECK_VARIABLE_EXISTS macro. 2002-11-21 10:11:46 -05:00
CheckVariableExists.cmake Fix problems with required flags 2003-01-03 20:03:35 -05:00
Dart.cmake On borland and cygwin remove .EXE 2003-03-06 15:32:40 -05:00
Documentation.cmake ENH: it's time to create a real Microsoft HTML Help Workshop CMake module 2002-12-22 10:09:51 -05:00
DummyCXXFile.cxx add checks for ansi flags and not hard code them 2002-11-21 12:52:54 -05:00
FindAVIFile.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindCABLE.cmake BUG: Should not load CMAKE_INSTALL_PREFIX from the cache. 2002-10-11 10:14:19 -04:00
FindCurses.cmake ENH: Added /lib to curses search path. 2001-12-12 12:05:20 -05:00
FindCygwin.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 2001-12-04 10:55:17 -05:00
FindDart.cmake ENH: look for Dart in c: 2002-02-25 13:20:48 -05:00
FindDoxygen.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 2001-12-04 10:55:17 -05:00
FindFLTK.cmake BUG: Removed use of cmake 1.4 compatability variable. 2003-02-19 17:10:08 -05:00
FindGCCXML.cmake ENH: Updated for version 0.2 of GCC-XML. 2002-04-17 14:51:58 -04:00
FindGLU.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindGLUT.cmake ENH: Description of variables now specifies that the full path is required. 2002-12-03 13:44:50 -05:00
FindGTK.cmake GL should not be a completely necessary thing for finding GTK. This will find gtk and GL but also just GTK 2002-09-18 08:15:04 -04:00
FindGnuplot.cmake Add module to find gnuplot 2002-02-04 18:41:47 -05:00
FindHTMLHelp.cmake ENH: it's time to create a real Microsoft HTML Help Workshop CMake module 2002-12-22 10:09:51 -05:00
FindITK.cmake ENH: Enhanced FindITK supporting use of ITK from an install tree or a build tree. Only one cache entry is brought into user's project, called "ITK_DIR". This is the location of an ITKConfig.cmake file from which other settings are loaded. 2002-11-06 18:40:13 -05:00
FindImageMagick.cmake IMPORTANT FIX: be extra-careful here on WIN32, we do NOT want CMake to look in the system's PATH env var to search for ImageMagick's convert.exe, otherwise it is going to pick Microsoft Window's own convert.exe, which is used to convert FAT partitions to NTFS format ! Depending on the options passed to convert.exe, there is a good chance you would kiss your hard-disk good-bye. 2003-01-21 10:59:48 -05:00
FindJNI.cmake Ok, now it finds JNI on Mac OSX 10.2 2003-02-11 14:49:11 -05:00
FindJPEG.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindJava.cmake Clean find for Python, add find for python 2.2 on windows, cleanup java on windows and add java 1.4 support 2002-11-14 09:38:45 -05:00
FindLATEX.cmake Make things work on unix and add DVIPDF 2003-01-28 08:53:27 -05:00
FindMFC.cmake A simple FindMFC module for consistency 2002-09-03 12:29:03 -04:00
FindMPEG.cmake Add an MPEG finder in the new format - functionality copied from VXL. 2002-09-03 08:24:48 -04:00
FindMPEG2.cmake merge from branch 2003-01-22 14:49:45 -05:00
FindMPI.cmake Add mpi search paths for Debian 2002-04-18 15:58:11 -04:00
FindOpenGL.cmake ENH: add checking for NOTFOUND 2003-01-31 15:01:37 -05:00
FindPNG.cmake fixed typo 2003-01-13 09:24:37 -05:00
FindPerl.cmake FIX: the current version of Perl is 5.8 2003-01-23 10:36:35 -05:00
FindPythonLibs.cmake ENH: Find python framework on Mac OSX. 2003-01-03 17:36:34 -05:00
FindQt.cmake ENH: change FIND_FILE to FIND_PROGRAM 2003-01-28 15:44:45 -05:00
FindSDL.cmake merge from branch 2003-01-22 14:49:45 -05:00
FindSelfPackers.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 2001-12-04 10:55:17 -05:00
FindTCL.cmake ENH: Use the Mac -framework for Tk if it is available. 2002-12-20 09:43:28 -05:00
FindTIFF.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindTclsh.cmake look for cygtcl83 2003-01-15 11:59:50 -05:00
FindThreads.cmake BUG: fix for thread and cache override 2002-11-18 15:14:44 -05:00
FindUnixCommands.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 2001-12-04 10:55:17 -05:00
FindVTK.cmake ENH: Updated documentation. 2003-01-21 15:03:56 -05:00
FindWget.cmake Add helpful message for QT Windows users 2002-09-02 12:05:40 -04:00
FindWish.cmake Add better detection of wish 8.2 2002-05-14 08:42:35 -04:00
FindX11.cmake Attempt to fix build problem on some platforms 2003-01-29 09:06:46 -05:00
FindZLIB.cmake This file should not be empty 2002-09-02 16:24:25 -04:00
FindwxWindows.cmake Change priorities 2002-11-25 17:57:30 -05:00
TestBigEndian.c Add test for big endian 2002-10-01 15:56:18 -04:00
TestBigEndian.cmake ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages 2002-12-17 14:54:25 -05:00
TestCXXAcceptsFlag.cmake ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages 2002-12-17 14:54:25 -05:00
TestForANSIForScope.cmake remove commented code 2003-02-20 08:41:33 -05:00
TestForANSIStreamHeaders.cmake try to fix check for ansi stream 2002-11-21 14:45:21 -05:00
TestForANSIStreamHeaders.cxx new try compile module 2002-09-12 11:14:50 -04:00
TestForAnsiForScope.cxx Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
TestForSTDNamespace.cmake BUG: fix test not to run every time 2003-03-11 17:35:23 -05:00
TestForSTDNamespace.cxx Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
UseVTK40.cmake ENH: Added support for finding/using VTK 4.0 without using its UseVTK.cmake file that does a LOAD_CACHE. 2002-12-05 10:47:18 -05:00
UseVTKBuildSettings40.cmake ENH: Added support for finding/using VTK 4.0 without using its UseVTK.cmake file that does a LOAD_CACHE. 2002-12-05 10:47:18 -05:00
UseVTKConfig40.cmake BUG: Copying _LIB_DEPENDS variables requires double-quoted argument. 2003-02-07 16:29:13 -05:00
readme.txt Add important missing word to documentation 2002-09-06 11:00:51 -04:00

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.