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.
 
 
 
 
 
 
Ken Martin f7ec3c2a76 compiler warning 23 years ago
..
CMakeLists.txt ENH: Adding installation of TRY_COMPILE tests. 23 years ago
CheckFunctionExists.c Add two commonly used modules. First one checks if the function exists, the second one checks the size of type 23 years ago
CheckFunctionExists.cmake Fix tests for new trycompile and tryrun 23 years ago
CheckIncludeFile.c.in Simplify checking for headers 23 years ago
CheckIncludeFile.cmake Fix tests for new trycompile and tryrun 23 years ago
CheckSizeOf.c Add two commonly used modules. First one checks if the function exists, the second one checks the size of type 23 years ago
CheckSizeOf.cmake Fix tests for new trycompile and tryrun 23 years ago
Dart.cmake Dart now has a configure option 23 years ago
Documentation.cmake Add module to find gnuplot 24 years ago
FindAVIFile.cmake Fixed mistake in comments 23 years ago
FindCABLE.cmake ENH: clean modules (doc, make stuff advanced, etc.) 23 years ago
FindCurses.cmake ENH: Added /lib to curses search path. 24 years ago
FindCygwin.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 24 years ago
FindDart.cmake ENH: look for Dart in c: 24 years ago
FindDoxygen.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 24 years ago
FindFLTK.cmake Hide lots of values in the advanced list 23 years ago
FindGCCXML.cmake ENH: Updated for version 0.2 of GCC-XML. 24 years ago
FindGLU.cmake Fixed mistake in comments 23 years ago
FindGLUT.cmake Hide lots of values in the advanced list 23 years ago
FindGTK.cmake GL should not be a completely necessary thing for finding GTK. This will find gtk and GL but also just GTK 23 years ago
FindGnuplot.cmake Add module to find gnuplot 24 years ago
FindHhc.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 24 years ago
FindITK.cmake *** empty log message *** 24 years ago
FindJNI.cmake ENH: Added /usr/local/lib/java search paths. 23 years ago
FindJPEG.cmake Fixed mistake in comments 23 years ago
FindJava.cmake Add module that finds java executables. This module should find java, javac, and jar. 23 years ago
FindMFC.cmake A simple FindMFC module for consistency 23 years ago
FindMPEG.cmake Add an MPEG finder in the new format - functionality copied from VXL. 23 years ago
FindMPI.cmake Add mpi search paths for Debian 24 years ago
FindOpenGL.cmake FIX: typo + bring back the OPENGL_gl_LIBRARY path that can be used to find GLU (was wiped out from FindGLU) 23 years ago
FindPNG.cmake I copied a bit too much VXL functionality here. Oops 23 years ago
FindPerl.cmake Added PERL_FOUND 23 years ago
FindPythonLibs.cmake Oops, forgot the library name 23 years ago
FindQt.cmake Make QT variables advanced 23 years ago
FindSelfPackers.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 24 years ago
FindTCL.cmake ENH: make stub stuff ADVANCED 23 years ago
FindTIFF.cmake Fixed mistake in comments 23 years ago
FindTclsh.cmake ENH: clean modules (doc, make stuff advanced, etc.) 23 years ago
FindUnixCommands.cmake Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED. 24 years ago
FindVTK.cmake More finds for VTK 24 years ago
FindWget.cmake Add helpful message for QT Windows users 23 years ago
FindWish.cmake Add better detection of wish 8.2 24 years ago
FindX11.cmake Hide lots of values in the advanced list 23 years ago
FindZLIB.cmake This file should not be empty 23 years ago
FindwxWindows.cmake Fix find wxWindows 23 years ago
LinkQT.cmake Define a single expected format for the values defined in every FindXXX.cmake file. 23 years ago
TestForANSIStreamHeaders.cmake slight change in signature for TryCompile 23 years ago
TestForANSIStreamHeaders.cxx new try compile module 23 years ago
readme.txt Add important missing word to documentation 23 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_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.