CMake/Modules
Sebastien Barre 6037cc8b3b a) new version of tools like Doxygen and Graphviz now set install path info in win32 registery. use it.
b) remove DOT_PATH, it was polluting the cache (can be computed from DOT, update CMakeLists.txt accordingly if DOT_PATH is not defined)
2004-06-08 17:26:48 -04:00
..
Platform BUG#895: Adding -DNDEBUG to C and C++ flags for release builds. 2004-06-01 14:08:04 -04: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 ENH: reduce the number of times gnu is tested for 2003-12-12 09:12:49 -05:00
CMakeCXXCompiler.cmake.in ENH: reduce the number of times gnu is tested for 2003-12-12 09:12:49 -05:00
CMakeDefaultMakeRuleVariables.cmake ENH: This will probably break some obscure version of gcc, but until then, everybody doing profiling will be happy 2004-01-21 18:39:54 -05:00
CMakeDetermineCCompiler.cmake ENH: use CFLAGS for testing for gnu 2004-01-23 12:40:03 -05:00
CMakeDetermineCXXCompiler.cmake ENH: reduce the number of times gnu is tested for 2003-12-12 09:12:49 -05:00
CMakeDetermineJavaCompiler.cmake FIX: for Windows users, it seems logical to favor native win32 installation before Cygwin ones. Otherwise you can end up with bad mixes (part of the java tools were picked from the SDK, part from Cygwin) 2003-10-16 11:05:04 -04:00
CMakeDetermineSystem.cmake ERR: On systems where uname does not support -p, try -m. Fixes Bug #426 - CMAKE_SYSTEM_PROCESSOR unknown and inconsistent 2003-12-29 14:26:46 -05:00
CMakeExportBuildSettings.cmake ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. 2002-12-05 09:46:30 -05:00
CMakeFindFrameworks.cmake BUG#423: Fixed search for frameworks on OSX. 2003-12-29 16:18:18 -05:00
CMakeImportBuildSettings.cmake better error message 2004-05-25 11:20:38 -04: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 ENH: Installing readme.txt in Modules directory to be consistent with windows. 2003-08-11 17:34:12 -04: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 ENH: add CMAKE_SYSTEM_PROCESSOR 2003-06-11 10:07:57 -04:00
CMakeSystemSpecificInformation.cmake ENH: add verbose make abilility to visual studio 7 2004-04-23 13:12:33 -04:00
CMakeTestCCompiler.cmake BUG#530: Using #error to report a nice error message if the C compiler is set to a C++ compiler. 2004-01-21 15:11:48 -05:00
CMakeTestCXXCompiler.cmake BUG#411: Re-ordering statements so errors show up in CMakeError.log. 2003-12-01 13:06:35 -05:00
CMakeTestGNU.c BUG: fix problem where cmake thinks the intel compiler is gnu 2004-05-18 14:33:12 -04:00
CMakeTestNMakeCLVersion.c added test for whether pdbtype should be used for nmake 2003-08-05 09:55:20 -04: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 ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
CMakeVS7BackwardCompatibility.cmake added big endian stuff 2003-01-09 08:50:00 -05:00
CMakeVS7FindMake.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
CMakeVS71FindMake.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
CheckForPthreads.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 2004-04-15 08:22:19 -04:00
CheckFunctionExists.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 2004-04-15 08:22:19 -04:00
CheckFunctionExists.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
CheckIncludeFile.c.in Simplify checking for headers 2002-09-20 14:16:43 -04:00
CheckIncludeFile.cmake ENH: fixes for optional flag arguments to check include macros 2004-04-28 10:00:11 -04:00
CheckIncludeFile.cxx.in Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
CheckIncludeFileCXX.cmake ENH: fixes for optional flag arguments to check include macros 2004-04-28 10:00:11 -04:00
CheckIncludeFiles.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
CheckLibraryExists.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04: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 ENH: Extra new line after output 2003-07-17 14:55:45 -04:00
CheckTypeSize.c ENH: support STDDEF and cleanup 2004-05-03 16:35:37 -04:00
CheckTypeSize.cmake ENH: support STDDEF and cleanup 2004-05-03 16:35:37 -04:00
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. 2004-04-26 10:19:44 -04:00
CheckVariableExists.cmake BUG: Message describing variable was using result variable. 2003-10-11 08:12:21 -04:00
Dart.cmake fix for multiple nexted projects 2004-01-02 10:23:20 -05:00
DartConfiguration.tcl.in ENH: Add suppression file 2003-12-16 16:19:32 -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 ENH: Updated search paths to newest values from Cable. 2003-04-22 16:10:18 -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
FindDCMTK.cmake ENH: contribution from Ian Scott, thanks. 2004-04-22 16:16:15 -04:00
FindDart.cmake ENH: look for Dart in c: 2002-02-25 13:20:48 -05:00
FindDoxygen.cmake a) new version of tools like Doxygen and Graphviz now set install path info in win32 registery. use it. 2004-06-08 17:26:48 -04:00
FindFLTK.cmake Fix for bug 903 change order of fltk libraries 2004-06-03 14:54:48 -04: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 BUG: fix for bug 743 2004-04-22 17:20:41 -04:00
FindGTK.cmake Add a missing dollar sign 2004-05-07 10:16:53 -04:00
FindGnuplot.cmake Add module to find gnuplot 2002-02-04 18:41:47 -05:00
FindHTMLHelp.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
FindITK.cmake BUG#682: Adding environment variable check to FIND_PACKAGE command. 2004-04-26 11:00:41 -04: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 ENH: Better finding of JNI 2004-02-06 10:49:46 -05:00
FindJPEG.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindJava.cmake FIX: for Windows users, it seems logical to favor native win32 installation before Cygwin ones. Otherwise you can end up with bad mixes (part of the java tools were picked from the SDK, part from Cygwin) 2003-10-16 11:05:04 -04:00
FindLATEX.cmake BUG#262: Marking DVIPDF_CONVERTER as advanced. 2003-10-30 13:33:51 -05:00
FindMFC.cmake BUG: fix for bug 506 2004-04-15 11:55:29 -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 BUG: fix for bugs 125 - 128, and a fix for the bug introduced by the bug fix for but 92. & was being replaced with &amp, but after double quote was replaced with &quot causing it to be &quot. Also add more search paths for mpi 2003-08-07 09:19:39 -04:00
FindOpenGL.cmake fix to find opengl on some osf systems 2004-05-01 10:07:41 -04:00
FindPHP4.cmake ENH: Initial import of swig. Start working towards Bug #749 - Add swig support module to cmake 2004-04-30 12:11:02 -04: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
FindPerlLibs.cmake ENH: Initial import of swig. Start working towards Bug #749 - Add swig support module to cmake 2004-04-30 12:11:02 -04:00
FindPike.cmake ENH: Initial import of swig. Start working towards Bug #749 - Add swig support module to cmake 2004-04-30 12:11:02 -04:00
FindPythonLibs.cmake BUG#423: Fixed search for frameworks on OSX. 2003-12-29 16:18:18 -05:00
FindQt.cmake ENH: look for qtmoc in some other places 2004-05-20 16:26:54 -04:00
FindRuby.cmake ENH: Initial import of swig. Start working towards Bug #749 - Add swig support module to cmake 2004-04-30 12:11:02 -04:00
FindSDL.cmake merge from branch 2003-01-22 14:49:45 -05:00
FindSWIG.cmake ENH: More paths 2004-04-30 13:41:06 -04: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: Add TCL_FOUND 2004-04-26 13:42:55 -04:00
FindTIFF.cmake Fixed mistake in comments 2002-09-03 06:10:06 -04:00
FindTclsh.cmake ENH: Added registry check for ActiveState Tcl 8.4.6. 2004-03-31 16:44:43 -05:00
FindThreads.cmake ERR: Reorganize to try to fix the -pthread problem on some systems 2003-08-22 09:52:05 -04: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 BUG#682: Adding environment variable check to FIND_PACKAGE command. 2004-04-26 11:00:41 -04:00
FindWget.cmake Add helpful message for QT Windows users 2002-09-02 12:05:40 -04:00
FindWish.cmake ENH: Adding registry entries to search path. 2003-11-04 09:36:33 -05: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
FindwxWidgets.cmake BUG: fix for bug 618 2004-04-22 17:23:48 -04:00
FindwxWindows.cmake BUG: fix bad if statements 2004-04-22 11:12:04 -04:00
MacOSXBundleInfo.plist.in ENH: Improve Mac OSX bundle support 2004-04-08 17:13:42 -04:00
TestBigEndian.c ENH: fix tests for non-ansi c on hp and remove warnings for ansi c 2004-04-15 08:22:19 -04:00
TestBigEndian.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
TestCXXAcceptsFlag.cmake ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log 2003-08-08 11:59:07 -04:00
TestForANSIForScope.cmake BUG#374: Adding OUTPUT_VARIABLE OUTPUT to TRY_COMPILE commands. 2003-11-12 16:51:09 -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 ERR: Removed warning for unused variable. 2003-05-16 16:33:11 -04:00
TestForSTDNamespace.cmake BUG#374: Adding OUTPUT_VARIABLE OUTPUT to TRY_COMPILE commands. 2003-11-12 16:51:09 -05:00
TestForSTDNamespace.cxx Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
UseSWIG.cmake ENH: Implement additional make clean files as a directory property instead of cmake variable 2004-05-20 16:56:34 -04: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
Use_wxWindows.cmake ENH: Add Use file for wxWindows. Thanks Jan Woetzel 2003-07-29 13:36:50 -04:00
UsewxWidgets.cmake BUG: fix for bug 618 2004-04-22 17:23:48 -04: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.