Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
b7fa8201
Commit
b7fa8201
authored
Dec 14, 2005
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: add documentation support for modules
parent
805d365d
Changes
116
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
271 additions
and
299 deletions
+271
-299
Modules/CMake.cmake
Modules/CMake.cmake
+1
-0
Modules/CMakeBackwardCompatibilityC.cmake
Modules/CMakeBackwardCompatibilityC.cmake
+1
-0
Modules/CMakeBackwardCompatibilityCXX.cmake
Modules/CMakeBackwardCompatibilityCXX.cmake
+7
-1
Modules/CMakeCInformation.cmake
Modules/CMakeCInformation.cmake
+1
-0
Modules/CMakeCXXInformation.cmake
Modules/CMakeCXXInformation.cmake
+1
-0
Modules/CMakeCommonLanguageInclude.cmake
Modules/CMakeCommonLanguageInclude.cmake
+1
-0
Modules/CMakeDetermineCCompiler.cmake
Modules/CMakeDetermineCCompiler.cmake
+1
-0
Modules/CMakeDetermineCXXCompiler.cmake
Modules/CMakeDetermineCXXCompiler.cmake
+1
-0
Modules/CMakeDetermineFortranCompiler.cmake
Modules/CMakeDetermineFortranCompiler.cmake
+1
-0
Modules/CMakeDetermineJavaCompiler.cmake
Modules/CMakeDetermineJavaCompiler.cmake
+1
-0
Modules/CMakeDetermineRCCompiler.cmake
Modules/CMakeDetermineRCCompiler.cmake
+1
-0
Modules/CMakeDetermineSystem.cmake
Modules/CMakeDetermineSystem.cmake
+1
-0
Modules/CMakeExportBuildSettings.cmake
Modules/CMakeExportBuildSettings.cmake
+4
-3
Modules/CMakeFindFrameworks.cmake
Modules/CMakeFindFrameworks.cmake
+2
-0
Modules/CMakeFortranInformation.cmake
Modules/CMakeFortranInformation.cmake
+1
-0
Modules/CMakeImportBuildSettings.cmake
Modules/CMakeImportBuildSettings.cmake
+5
-3
Modules/CMakeJavaInformation.cmake
Modules/CMakeJavaInformation.cmake
+1
-0
Modules/CMakePrintSystemInformation.cmake
Modules/CMakePrintSystemInformation.cmake
+4
-3
Modules/CMakeRCInformation.cmake
Modules/CMakeRCInformation.cmake
+1
-0
Modules/CMakeSystemSpecificInformation.cmake
Modules/CMakeSystemSpecificInformation.cmake
+1
-0
Modules/CMakeTestCCompiler.cmake
Modules/CMakeTestCCompiler.cmake
+1
-0
Modules/CMakeTestCXXCompiler.cmake
Modules/CMakeTestCXXCompiler.cmake
+1
-0
Modules/CMakeTestFortranCompiler.cmake
Modules/CMakeTestFortranCompiler.cmake
+1
-0
Modules/CMakeTestJavaCompiler.cmake
Modules/CMakeTestJavaCompiler.cmake
+1
-0
Modules/CMakeTestRCCompiler.cmake
Modules/CMakeTestRCCompiler.cmake
+1
-0
Modules/CMakeVS6BackwardCompatibility.cmake
Modules/CMakeVS6BackwardCompatibility.cmake
+1
-0
Modules/CMakeVS7BackwardCompatibility.cmake
Modules/CMakeVS7BackwardCompatibility.cmake
+1
-0
Modules/CTest.cmake
Modules/CTest.cmake
+1
-2
Modules/CheckCSourceCompiles.cmake
Modules/CheckCSourceCompiles.cmake
+7
-9
Modules/CheckCXXSourceCompiles.cmake
Modules/CheckCXXSourceCompiles.cmake
+7
-9
Modules/CheckFunctionExists.cmake
Modules/CheckFunctionExists.cmake
+5
-7
Modules/CheckIncludeFile.cmake
Modules/CheckIncludeFile.cmake
+6
-7
Modules/CheckIncludeFileCXX.cmake
Modules/CheckIncludeFileCXX.cmake
+7
-9
Modules/CheckIncludeFiles.cmake
Modules/CheckIncludeFiles.cmake
+6
-6
Modules/CheckLibraryExists.cmake
Modules/CheckLibraryExists.cmake
+8
-9
Modules/CheckSymbolExists.cmake
Modules/CheckSymbolExists.cmake
+7
-8
Modules/CheckTypeSize.cmake
Modules/CheckTypeSize.cmake
+4
-5
Modules/CheckVariableExists.cmake
Modules/CheckVariableExists.cmake
+7
-9
Modules/Dart.cmake
Modules/Dart.cmake
+5
-5
Modules/Documentation.cmake
Modules/Documentation.cmake
+1
-2
Modules/FindAVIFile.cmake
Modules/FindAVIFile.cmake
+6
-8
Modules/FindCABLE.cmake
Modules/FindCABLE.cmake
+4
-7
Modules/FindCurses.cmake
Modules/FindCurses.cmake
+1
-2
Modules/FindCygwin.cmake
Modules/FindCygwin.cmake
+1
-2
Modules/FindDCMTK.cmake
Modules/FindDCMTK.cmake
+5
-6
Modules/FindDart.cmake
Modules/FindDart.cmake
+3
-3
Modules/FindDoxygen.cmake
Modules/FindDoxygen.cmake
+1
-4
Modules/FindFLTK.cmake
Modules/FindFLTK.cmake
+11
-14
Modules/FindGCCXML.cmake
Modules/FindGCCXML.cmake
+1
-1
Modules/FindGLU.cmake
Modules/FindGLU.cmake
+2
-1
Modules/FindGLUT.cmake
Modules/FindGLUT.cmake
+8
-11
Modules/FindGTK.cmake
Modules/FindGTK.cmake
+5
-8
Modules/FindGnuplot.cmake
Modules/FindGnuplot.cmake
+1
-2
Modules/FindHTMLHelp.cmake
Modules/FindHTMLHelp.cmake
+4
-5
Modules/FindITK.cmake
Modules/FindITK.cmake
+15
-17
Modules/FindImageMagick.cmake
Modules/FindImageMagick.cmake
+1
-1
Modules/FindJNI.cmake
Modules/FindJNI.cmake
+2
-2
Modules/FindJPEG.cmake
Modules/FindJPEG.cmake
+5
-7
Modules/FindJava.cmake
Modules/FindJava.cmake
+1
-1
Modules/FindKDE.cmake
Modules/FindKDE.cmake
+13
-16
Modules/FindLATEX.cmake
Modules/FindLATEX.cmake
+2
-2
Modules/FindMFC.cmake
Modules/FindMFC.cmake
+2
-3
Modules/FindMPEG.cmake
Modules/FindMPEG.cmake
+6
-9
Modules/FindMPEG2.cmake
Modules/FindMPEG2.cmake
+6
-9
Modules/FindMPI.cmake
Modules/FindMPI.cmake
+5
-7
Modules/FindMatlab.cmake
Modules/FindMatlab.cmake
+7
-9
Modules/FindMotif.cmake
Modules/FindMotif.cmake
+5
-6
Modules/FindOpenAL.cmake
Modules/FindOpenAL.cmake
+6
-7
Modules/FindOpenGL.cmake
Modules/FindOpenGL.cmake
+11
-12
Modules/FindPHP4.cmake
Modules/FindPHP4.cmake
+1
-1
Modules/FindPNG.cmake
Modules/FindPNG.cmake
+6
-10
Modules/FindPerl.cmake
Modules/FindPerl.cmake
+3
-3
Modules/FindPerlLibs.cmake
Modules/FindPerlLibs.cmake
+1
-1
Modules/FindPhysFS.cmake
Modules/FindPhysFS.cmake
+4
-4
Modules/FindPike.cmake
Modules/FindPike.cmake
+1
-1
No files found.
Modules/CMake.cmake
View file @
b7fa8201
# This file is used by cmake.cxx to compute the CMAKE_ROOT location.
# Do not remove this file from cvs without updating cmake.cxx to look
# for a different file.
Modules/CMakeBackwardCompatibilityC.cmake
View file @
b7fa8201
# Nothing here yet
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 7"
)
INCLUDE
(
CMakeVS7BackwardCompatibility
)
...
...
Modules/CMakeBackwardCompatibilityCXX.cmake
View file @
b7fa8201
#
# - define a bunch of backwards compatibility varibles
# CMAKE_ANSI_CXXFLAGS - flag for ansi c++
# CMAKE_HAS_ANSI_STRING_STREAM - has <strstream>
# INCLUDE(TestForANSIStreamHeaders)
# INCLUDE(CheckIncludeFileCXX)
# INCLUDE(TestForSTDNamespace)
# INCLUDE(TestForANSIForScope)
IF
(
NOT CMAKE_SKIP_COMPATIBILITY_TESTS
)
# check for some ANSI flags in the CXX compiler if it is not gnu
IF
(
NOT CMAKE_COMPILER_IS_GNUCXX
)
...
...
Modules/CMakeCInformation.cmake
View file @
b7fa8201
# This file sets the basic flags for the C language in CMake.
# It also loads the available platform file for the system-compiler
# if it exists.
...
...
Modules/CMakeCXXInformation.cmake
View file @
b7fa8201
# This file sets the basic flags for the C++ language in CMake.
# It also loads the available platform file for the system-compiler
# if it exists.
...
...
Modules/CMakeCommonLanguageInclude.cmake
View file @
b7fa8201
# this file has flags that are shared across languages and sets
# cache values that can be initialized in the platform-compiler.cmake file
# it may be included by more than one language.
...
...
Modules/CMakeDetermineCCompiler.cmake
View file @
b7fa8201
# determine the compiler to use for C programs
# NOTE, a generator may set CMAKE_C_COMPILER before
# loading this file to force a compiler.
...
...
Modules/CMakeDetermineCXXCompiler.cmake
View file @
b7fa8201
# determine the compiler to use for C++ programs
# NOTE, a generator may set CMAKE_CXX_COMPILER before
# loading this file to force a compiler.
...
...
Modules/CMakeDetermineFortranCompiler.cmake
View file @
b7fa8201
# determine the compiler to use for C programs
# NOTE, a generator may set CMAKE_C_COMPILER before
# loading this file to force a compiler.
...
...
Modules/CMakeDetermineJavaCompiler.cmake
View file @
b7fa8201
# determine the compiler to use for Java programs
# NOTE, a generator may set CMAKE_Java_COMPILER before
# loading this file to force a compiler.
...
...
Modules/CMakeDetermineRCCompiler.cmake
View file @
b7fa8201
# determine the compiler to use for C programs
# NOTE, a generator may set CMAKE_C_COMPILER before
# loading this file to force a compiler.
...
...
Modules/CMakeDetermineSystem.cmake
View file @
b7fa8201
# This module is used by the Makefile generator to determin the following variables:
# CMAKE_SYSTEM_NAME - on unix this is uname -s, for windows it is Windows
# CMAKE_SYSTEM_VERSION - on unix this is uname -r, for windows it is empty
...
...
Modules/CMakeExportBuildSettings.cmake
View file @
b7fa8201
# Macro to export the build settings for use by another project.
# Provide as an argument the file into which the settings are to be
# stored.
# - export build settings from a project.
# CMAKE_EXPORT_BUILD_SETTINGS(SETTINGS_FILE) - macro defined to export the build
# settings for use by another project.
# SETTINGS_FILE - the file into which the settings are to be stored.
MACRO
(
CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE
)
IF
(
${
SETTINGS_FILE
}
MATCHES
".+"
)
CONFIGURE_FILE
(
${
CMAKE_ROOT
}
/Modules/CMakeBuildSettings.cmake.in
...
...
Modules/CMakeFindFrameworks.cmake
View file @
b7fa8201
# - helper module to find OSX frameworks
IF
(
NOT CMAKE_FIND_FRAMEWORKS_INCLUDED
)
SET
(
CMAKE_FIND_FRAMEWORKS_INCLUDED 1
)
MACRO
(
CMAKE_FIND_FRAMEWORKS fwk
)
...
...
Modules/CMakeFortranInformation.cmake
View file @
b7fa8201
# This file sets the basic flags for the Fortran language in CMake.
# It also loads the available platform file for the system-compiler
# if it exists.
...
...
Modules/CMakeImportBuildSettings.cmake
View file @
b7fa8201
# Macro to import the build settings from another project. Provide as
# an argument the file created by the other project's
# CMAKE_EXPORT_BUILD_SETTINGS command.
# - import build settings from another project
# CMAKE_IMPORT_BUILD_SETTINGS(SETTINGS_FILE) - macro defined to import the
# build settings from another project.
# SETTINGS_FILE - a file created by the other project's call to the
# CMAKE_EXPORT_BUILD_SETTINGS macro, see CMakeExportBuildSettings.
MACRO
(
CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE
)
IF
(
${
SETTINGS_FILE
}
MATCHES
".+"
)
# Load the settings.
...
...
Modules/CMakeJavaInformation.cmake
View file @
b7fa8201
# this is a place holder if java needed flags for javac they would go here.
IF
(
NOT CMAKE_Java_CREATE_STATIC_LIBRARY
)
SET
(
CMAKE_Java_CREATE_STATIC_LIBRARY
...
...
Modules/CMakePrintSystemInformation.cmake
View file @
b7fa8201
# this file can be used for diagnostic purposes
# just include it in a project to see various internal cmake
# variables
# - print system information
# This file can be used for diagnostic purposes
# just include it in a project to see various internal CMake
# variables.
MESSAGE
(
"CMAKE_SYSTEM is
${
CMAKE_SYSTEM
}
${
CMAKE_SYSTEM_NAME
}
${
CMAKE_SYSTEM_VERSION
}
"
)
MESSAGE
(
"CMAKE_SYSTEM file is
${
CMAKE_SYSTEM_INFO_FILE
}
"
)
...
...
Modules/CMakeRCInformation.cmake
View file @
b7fa8201
# This file sets the basic flags for the Fortran language in CMake.
# It also loads the available platform file for the system-compiler
# if it exists.
...
...
Modules/CMakeSystemSpecificInformation.cmake
View file @
b7fa8201
# This file is included by cmGlobalGenerator::EnableLanguage.
# It is included after the compiler has been determined, so
# we know things like the compiler name and if the compiler is gnu.
...
...
Modules/CMakeTestCCompiler.cmake
View file @
b7fa8201
# This file is used by EnableLanguage in cmGlobalGenerator to
# determine that that selected C compiler can actually compile
# and link the most basic of programs. If not, a fatal error
...
...
Modules/CMakeTestCXXCompiler.cmake
View file @
b7fa8201
# This file is used by EnableLanguage in cmGlobalGenerator to
# determine that that selected C++ compiler can actually compile
# and link the most basic of programs. If not, a fatal error
...
...
Modules/CMakeTestFortranCompiler.cmake
View file @
b7fa8201
# This file is used by EnableLanguage in cmGlobalGenerator to
# determine that that selected Fortran compiler can actually compile
# and link the most basic of programs. If not, a fatal error
...
...
Modules/CMakeTestJavaCompiler.cmake
View file @
b7fa8201
# This file is used by EnableLanguage in cmGlobalGenerator to
# determine that that selected Fortran compiler can actually compile
# and link the most basic of programs. If not, a fatal error
...
...
Modules/CMakeTestRCCompiler.cmake
View file @
b7fa8201
# This file is used by EnableLanguage in cmGlobalGenerator to
# determine that that selected RC compiler can actually compile
# and link the most basic of programs. If not, a fatal error
...
...
Modules/CMakeVS6BackwardCompatibility.cmake
View file @
b7fa8201
# hard code these for fast backwards compatibility tests
SET
(
CMAKE_SIZEOF_INT 4 CACHE INTERNAL
"Size of int data type"
)
SET
(
CMAKE_SIZEOF_LONG 4 CACHE INTERNAL
"Size of long data type"
)
...
...
Modules/CMakeVS7BackwardCompatibility.cmake
View file @
b7fa8201
# hard code these for fast backwards compatibility tests
SET
(
CMAKE_SIZEOF_INT 4 CACHE INTERNAL
"Size of int data type"
)
SET
(
CMAKE_SIZEOF_LONG 4 CACHE INTERNAL
"Size of long data type"
)
...
...
Modules/CTest.cmake
View file @
b7fa8201
# CTest.cmake
#
# - setup CTest
# This file configures a project to use the CTest/Dart testing/dashboard process.
#
OPTION
(
BUILD_TESTING
"Build the testing tree."
ON
)
...
...
Modules/CheckCSourceCompiles.cmake
View file @
b7fa8201
#
# Check if the source code provided in the SOURCE argument compiles.
#
# CHECK_C_SOURCE_COMPILES - macro which checks if the source code compiles\
# SOURCE - source code to try to compile
# VARIABLE - variable to store size if the type exists.
#
# - Check if the source code provided in the SOURCE argument compiles.
# CHECK_C_SOURCE_COMPILES(SOURCE VAR)
# - macro which checks if the source code compiles
# SOURCE - source code to try to compile
# VAR - variable to store size if the type exists.
# Checks the following optional VARIABLES (not arguments)
# CMAKE_REQUIRED_LIBRARIES - Link to extra libraries
# CMAKE_REQUIRED_FLAGS - Extra flags to C compiler
#
CMAKE_REQUIRED_LIBRARIES - Link to extra libraries
#
CMAKE_REQUIRED_FLAGS - Extra flags to C compiler
#
MACRO
(
CHECK_C_SOURCE_COMPILES SOURCE VAR
)
...
...
Modules/CheckCXXSourceCompiles.cmake
View file @
b7fa8201
#
# Check if the source code provided in the SOURCE argument compiles.
#
# CHECK_CXX_SOURCE_COMPILES - macro which checks if the source code compiles\
# SOURCE - source code to try to compile
# VARIABLE - variable to store size if the type exists.
#
# - Check if the source code provided in the SOURCE argument compiles.
# CHECK_CXX_SOURCE_COMPILES(SOURCE VAR)
# - macro which checks if the source code compiles\
# SOURCE - source code to try to compile
# VAR - variable to store size if the type exists.
# Checks the following optional VARIABLES (not arguments)
# CMAKE_REQUIRED_LIBRARIES - Link to extra libraries
# CMAKE_REQUIRED_FLAGS - Extra flags to C compiler
#
CMAKE_REQUIRED_LIBRARIES - Link to extra libraries
#
CMAKE_REQUIRED_FLAGS - Extra flags to C compiler
#
MACRO
(
CHECK_CXX_SOURCE_COMPILES SOURCE VAR
)
...
...
Modules/CheckFunctionExists.cmake
View file @
b7fa8201
#
# Check if the function exists.
#
# CHECK_FUNCTION_EXISTS - macro which checks if the function exists
# FUNCTION - the name of the function
# VARIABLE - variable to store the result
#
# - Check if the function exists.
# CHECK_FUNCTION_EXISTS(FUNCTION VARIABLE)
# - macro which checks if the function exists
# FUNCTION - the name of the function
# VARIABLE - variable to store the result
# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
# compile of the program likewise if CMAKE_REQUIRED_LIBRARIES is set then
# those libraries will be linked against the test program
...
...
Modules/CheckIncludeFile.cmake
View file @
b7fa8201
#
# Check if the include file exists.
#
# CHECK_INCLUDE_FILE - macro which checks the include file exists.
# INCLUDE - name of include file
# VARIABLE - variable to return result
#
# - Check if the include file exists.
# CHECK_INCLUDE_FILE(INCLUDE VARIABLE)
# - macro which checks the include file exists.
# INCLUDE - name of include file
# VARIABLE - variable to return result
#
# an optional third argument is the CFlags to add to the compile line
# or you can use CMAKE_REQUIRED_FLAGS
#
...
...
Modules/CheckIncludeFileCXX.cmake
View file @
b7fa8201
#
# Check if the include file exists.
#
# CHECK_INCLUDE_FILE - macro which checks the include file exists.
# INCLUDE - name of include file
# VARIABLE - variable to return result
#
# an optional third argument is the CFlags to add to the compile line
# or you can use CMAKE_REQUIRED_FLAGS
# - Check if the include file exists.
# CHECK_INCLUDE_FILE_CXX(INCLUDE VARIABLE) - macro which checks the include file exists.
# INCLUDE - name of include file
# VARIABLE - variable to return result
#
# An optional third argument is the CFlags to add to the compile line
# or you can use CMAKE_REQUIRED_FLAGS.
#
MACRO
(
CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE
)
IF
(
"
${
VARIABLE
}
"
MATCHES
"^
${
VARIABLE
}
$"
)
...
...
Modules/CheckIncludeFiles.cmake
View file @
b7fa8201
# - Check if the files can be included
#
# Check if the files can be included
#
# CHECK_INCLUDE_FILES - macro which checks the include file exists.
# INCLUDE - list of files to include
# VARIABLE - variable to return result
#
# CHECK_INCLUDE_FILES(INCLUDE VARIABLE)
# - macro which checks the include file exists.
# INCLUDE - list of files to include
# VARIABLE - variable to return result
#
# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
# compile of the program
...
...
Modules/CheckLibraryExists.cmake
View file @
b7fa8201
#
# Check if the function exists.
#
# CHECK_LIBRARY_EXISTS - macro which checks if the function exists
# LIBRARY - the name of the library you are looking for
# FUNCTION - the name of the function
# LOCATION - location where the library should be found
# VARIABLE - variable to store the result
#
# - Check if the function exists.
# CHECK_LIBRARY_EXISTS (LIBRARY FUNCTION LOCATION VARIABLE)
# - macro which checks if the function exists
# LIBRARY - the name of the library you are looking for
# FUNCTION - the name of the function
# LOCATION - location where the library should be found
# VARIABLE - variable to store the result
#
# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
# compile of the program likewise if CMAKE_REQUIRED_LIBRARIES is set then
# those libraries will be linked against the test program
...
...
Modules/CheckSymbolExists.cmake
View file @
b7fa8201
#
# Check if the symbol exists in include files
#
# CHECK_SYMBOL_EXISTS - macro which checks the symbol exists in include files.
# SYMBOL - symbol
# FILES - include files to check
# VARIABLE - variable to return result
#
# - Check if the symbol exists in include files
# CHECK_SYMBOL_EXISTS(SYMBOL FILES VARIABLE)
# - macro which checks the symbol exists in include files.
# SYMBOL - symbol
# FILES - include files to check
# VARIABLE - variable to return result
#
# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
# compile of the program likewise if CMAKE_REQUIRED_LIBRARIES is set then
# those libraries will be linked against the test program
...
...
Modules/CheckTypeSize.cmake
View file @
b7fa8201
#
# - Check sizeof a type
# CHECK_TYPE_SIZE(TYPE VARIABLE)
# Check if the type exists and determine size of type. if the type
# exists, the size will be stored to the variable.
#
# CHECK_TYPE_SIZE - macro which checks the size of type
# VARIABLE - variable to store size if the type exists.
# HAVE_${VARIABLE} - does the variable exists or not
#
# VARIABLE - variable to store size if the type exists.
# HAVE_${VARIABLE} - does the variable exists or not
MACRO
(
CHECK_TYPE_SIZE TYPE VARIABLE
)
SET
(
CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1
)
...
...
Modules/CheckVariableExists.cmake
View file @
b7fa8201
#
# Check if the variable exists.
# # CHECK_VARIABLE_EXISTS - macro which checks if the variable exists
# VAR - the name of the variable
# VARIABLE - variable to store the result
#
# - Check if the variable exists.
# CHECK_VARIABLE_EXISTS(VAR VARIABLE)
# - macro which checks if the variable exists
# VAR - the name of the variable
# VARIABLE - variable to store the result
# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
# compile of the program likewise if CMAKE_REQUIRED_LIBRARIES is set then
# those libraries will be linked against the test program
#
# only for C variables
# those libraries will be linked against the test program.
# This macro is only for C variables.
#
MACRO
(
CHECK_VARIABLE_EXISTS VAR VARIABLE
)
IF
(
"
${
VARIABLE
}
"
MATCHES
"^
${
VARIABLE
}
$"
)
...
...
Modules/Dart.cmake
View file @
b7fa8201
# Dart.cmake
#
# - setup for using Dart.
# This file configures a project to use the Dart testing/dashboard process.
# It is broken into 3 sections.
#
# Section #1: Locate programs on the client and determine site and build name
# Section #2: Configure or copy Tcl scripts from the source tree to build tree
# Section #3: Custom targets for performing dashboard builds.
#
Section #1: Locate programs on the client and determine site and build name
#
Section #2: Configure or copy Tcl scripts from the source tree to build tree
#
Section #3: Custom targets for performing dashboard builds.
#
#
OPTION
(
BUILD_TESTING
"Build the testing tree."
ON
)
...
...
Modules/Documentation.cmake
View file @
b7fa8201
# DocumentationVTK.cmake
#
# - DocumentationVTK.cmake
# This file provides support for the VTK documentation framework.
# It relies on several tools (Doxygen, Perl, etc).
...
...
Modules/FindAVIFile.cmake
View file @
b7fa8201
# Locate AVIFILE library and include paths
# AVIFILE (http://avifile.sourceforge.net/ )is a set of library for i386 machines
# - Locate AVIFILE library and include paths
# AVIFILE (http://avifile.sourceforge.net/)is a set of library for i386 machines
# to use various AVI codecs. Support is limited beyond Linux. Windows
# provides native AVI support, and so doesn't need this library.
# This module defines
# AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.
# AVIFILE_LIBRARIES, the libraries to link against to use AVIFILE
# AVIFILE_DEFINITIONS, definitions to use when compiling code that uses AVIFILE.
# AVIFILE_FOUND, If false, don't try to use AVIFILE.
#
AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.
#
AVIFILE_LIBRARIES, the libraries to link against to use AVIFILE
#
AVIFILE_DEFINITIONS, definitions to use when compiling code that uses AVIFILE.
#
AVIFILE_FOUND, If false, don't try to use AVIFILE.
IF
(
UNIX
)
...
...
Modules/FindCABLE.cmake
View file @
b7fa8201
#
#
- Find CABLE
# This module finds if CABLE is installed and determines where the
# include files and libraries are. This code sets the following variables:
#
# CABLE = the full path to the cable executable
# CABLE_TCL_LIBRARY = the full path to the Tcl wrapper facility library
# CABLE_INCLUDE_DIR = the full path to the cable include directory
#
# To build Tcl wrappers, you should add shared library and link it to
# ${CABLE_TCL_LIBRARY}. You should also add ${CABLE_INCLUDE_DIR} as
# an include directory.
#
# To build Tcl wrappers, you should add shared library and link it to
# ${CABLE_TCL_LIBRARY}. You should also add ${CABLE_INCLUDE_DIR} as
# an include directory.
IF
(
NOT CABLE
)
FIND_PATH
(
CABLE_BUILD_DIR cableVersion.h
)
...
...
Modules/FindCurses.cmake
View file @
b7fa8201
#
# Find the curses include file and library
# - Find the curses include file and library
#
FIND_PATH
(
CURSES_INCLUDE_PATH
...
...
Modules/FindCygwin.cmake
View file @
b7fa8201
#
# this module looks for Cygwin
# - this module looks for Cygwin
#
IF
(
WIN32
)
...
...
Modules/FindDCMTK.cmake
View file @
b7fa8201
#
# try to find DCMTK libraries
# - find DCMTK libraries
#
# DCMTK_INCLUDE_DIR - Directories to include to use DCMTK
# DCMTK_LIBRARIES - Files to link against to use DCMTK
# DCMTK_FOUND - If false, don't try to use DCMTK
# DCMTK_DIR - (optional) Source directory for DCMTK
#
DCMTK_INCLUDE_DIR - Directories to include to use DCMTK
#
DCMTK_LIBRARIES - Files to link against to use DCMTK
#
DCMTK_FOUND - If false, don't try to use DCMTK
#
DCMTK_DIR - (optional) Source directory for DCMTK
#
# DCMTK_DIR can be used to make it simpler to find the various include
# directories and compiled libraries if you've just compiled it in the
...
...
Modules/FindDart.cmake
View file @
b7fa8201
#
#
t
his module looks for the dart testing software and sets DART_ROOT
# to point to where it found it
#
- Find DART
#
T
his module looks for the dart testing software and sets DART_ROOT
# to point to where it found it
.
#
FIND_PATH
(
DART_ROOT README.INSTALL
...
...
Modules/FindDoxygen.cmake
View file @
b7fa8201
#
# this module looks for Doxygen and the path to Graphiz's dot
#
# - this module looks for Doxygen and the path to Graphiz's dot
# With the OS X GUI version, it likes to be installed to /Applications and
# it contains the doxygen executable in the bundle. In the versions I've
# seen, it is located in Resources, but in general, more often binaries are
...
...
Modules/FindFLTK.cmake
View file @
b7fa8201
#
# Find the native FLTK includes and library
#
# - Find the native FLTK includes and library
# The following settings are defined
# FLTK_FLUID_EXECUTABLE, where to find the Fluid tool
# FLTK_WRAP_UI, This allows the FLTK_WRAP_UI command to work.
# FLTK_INCLUDE_DIR, where to find include files
# FLTK_LIBRARIES, list of fltk libraries
# FLTK_FOUND, Don't use FLTK if false.
# FLTK_FLUID_EXECUTABLE, where to find the Fluid tool
# FLTK_WRAP_UI, This allows the FLTK_WRAP_UI command to work.
# FLTK_INCLUDE_DIR, where to find include files
# FLTK_LIBRARIES, list of fltk libraries
# FLTK_FOUND, Don't use FLTK if false.
# The following settings should not be used in general.
# FLTK_BASE_LIBRARY = the full path to fltk.lib
# FLTK_GL_LIBRARY = the full path to fltk_gl.lib
# FLTK_FORMS_LIBRARY = the full path to fltk_forms.lib
# FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib
#
FLTK_BASE_LIBRARY = the full path to fltk.lib
#
FLTK_GL_LIBRARY = the full path to fltk_gl.lib
#
FLTK_FORMS_LIBRARY = the full path to fltk_forms.lib
#
FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib
# Platform dependent libraries required by FLTK
#
Platform dependent libraries required by FLTK
IF
(
WIN32
)
IF
(
NOT CYGWIN
)
IF
(
BORLAND
)
...
...
Modules/FindGCCXML.cmake
View file @
b7fa8201
# Find the GCC-XML front-end executable.
#
-
Find the GCC-XML front-end executable.
FIND_PROGRAM
(
GCCXML
NAMES gccxml
../GCC_XML/gccxml
...
...
Modules/FindGLU.cmake
View file @
b7fa8201
#
# Use of this file is deprecated, and is here for backwards compatibility with CMake 1.4
# GLU library is now found by FindOpenGL.cmake
#
...
...
Modules/FindGLUT.cmake
View file @
b7fa8201
#
# try to find glut library and include files
#
# GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
# GLUT_LIBRARIES, the libraries to link against to use GLUT.
# GLUT_FOUND, If false, do not try to use GLUT.
# also defined, but not for general use are
# GLUT_glut_LIBRARY = the full path to the glut library.
# GLUT_Xmu_LIBRARY = the full path to the Xmu library if available.
# GLUT_Xi_LIBRARY = the full path to the Xi Library if available.
# - try to find glut library and include files
# GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
# GLUT_LIBRARIES, the libraries to link against to use GLUT.
# GLUT_FOUND, If false, do not try to use GLUT.
# Also defined, but not for general use are:
# GLUT_glut_LIBRARY = the full path to the glut library.
# GLUT_Xmu_LIBRARY = the full path to the Xmu library.
# GLUT_Xi_LIBRARY = the full path to the Xi Library.
IF
(
WIN32
)
...
...
Modules/FindGTK.cmake
View file @
b7fa8201
#
# try to find GTK (and glib) and GTKGLArea
#
# GTK_INCLUDE_DIR - Directories to include to use GTK
# GTK_LIBRARIES - Files to link against to use GTK
# GTK_FOUND - If false, don't try to use GTK
# GTK_GL_FOUND - If false, don't try to use GTK's GL features
# - try to find GTK (and glib) and GTKGLArea
# GTK_INCLUDE_DIR - Directories to include to use GTK
# GTK_LIBRARIES - Files to link against to use GTK
# GTK_FOUND - If false, don't try to use GTK
# GTK_GL_FOUND - If false, don't try to use GTK's GL features
# don't even bother under WIN32
IF
(
UNIX
)
...
...
Modules/FindGnuplot.cmake
View file @
b7fa8201
#
# this module looks for gnuplot
# - this module looks for gnuplot
#
INCLUDE
(
FindCygwin
)
...
...
Modules/FindHTMLHelp.cmake
View file @
b7fa8201
#