Merge branch 'AddCMAKE_CURRENT_LIST_DIR' into dev/strict-mode
Conflicts: Source/cmMakefile.cxx
This commit is contained in:
commit
c128abe383
|
@ -120,7 +120,7 @@ FUNCTION(ADD_FEATURE_INFO _name _enabled _desc)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
SET_PROPERTY(GLOBAL PROPERTY _CMAKE_${_name}_DESCRIPTION "${_desc}" )
|
SET_PROPERTY(GLOBAL PROPERTY _CMAKE_${_name}_DESCRIPTION "${_desc}" )
|
||||||
ENDFUNCTION(SET_FEATURE_INFO)
|
ENDFUNCTION(ADD_FEATURE_INFO)
|
||||||
|
|
||||||
|
|
||||||
FUNCTION(SET_FEATURE_INFO)
|
FUNCTION(SET_FEATURE_INFO)
|
||||||
|
@ -199,21 +199,25 @@ FUNCTION(FEATURE_SUMMARY)
|
||||||
OR "${_FS_WHAT}" STREQUAL "PACKAGES_FOUND"
|
OR "${_FS_WHAT}" STREQUAL "PACKAGES_FOUND"
|
||||||
OR "${_FS_WHAT}" STREQUAL "PACKAGES_NOT_FOUND")
|
OR "${_FS_WHAT}" STREQUAL "PACKAGES_NOT_FOUND")
|
||||||
_FS_GET_FEATURE_SUMMARY( ${_FS_WHAT} _featureSummary)
|
_FS_GET_FEATURE_SUMMARY( ${_FS_WHAT} _featureSummary)
|
||||||
|
SET(_fullText "${_FS_DESCRIPTION}${_featureSummary}\n")
|
||||||
ELSEIF("${_FS_WHAT}" STREQUAL "ALL")
|
ELSEIF("${_FS_WHAT}" STREQUAL "ALL")
|
||||||
_FS_GET_FEATURE_SUMMARY( PACKAGES_FOUND _tmp1)
|
_FS_GET_FEATURE_SUMMARY( PACKAGES_FOUND _tmp1)
|
||||||
_FS_GET_FEATURE_SUMMARY( PACKAGES_NOT_FOUND _tmp2)
|
_FS_GET_FEATURE_SUMMARY( PACKAGES_NOT_FOUND _tmp2)
|
||||||
SET(_featureSummary "${_tmp1}${_tmp2}")
|
SET(_featureSummary "${_tmp1}${_tmp2}")
|
||||||
|
IF(_FS_DESCRIPTION)
|
||||||
|
SET(_fullText "${_FS_DESCRIPTION}${_tmp1}${_tmp2}\n")
|
||||||
|
ELSE(_FS_DESCRIPTION)
|
||||||
|
SET(_fullText "-- Found the following packages:${_tmp1}\n-- Did not find the following packages:${_tmp2}\n")
|
||||||
|
ENDIF(_FS_DESCRIPTION)
|
||||||
ELSE()
|
ELSE()
|
||||||
MESSAGE(FATAL_ERROR "The WHAT argument of FEATURE_SUMMARY() is set to ${_FS_WHAT}, which is not a valid value.")
|
MESSAGE(FATAL_ERROR "The WHAT argument of FEATURE_SUMMARY() is set to ${_FS_WHAT}, which is not a valid value.")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(_fullText "${_FS_DESCRIPTION}${_featureSummary}\n")
|
|
||||||
|
|
||||||
IF(_FS_FILENAME)
|
IF(_FS_FILENAME)
|
||||||
IF(_FS_APPEND)
|
IF(_FS_APPEND)
|
||||||
FILE(WRITE "${_FS_FILENAME}" "${_fullText}")
|
|
||||||
ELSE(_FS_APPEND)
|
|
||||||
FILE(APPEND "${_FS_FILENAME}" "${_fullText}")
|
FILE(APPEND "${_FS_FILENAME}" "${_fullText}")
|
||||||
|
ELSE(_FS_APPEND)
|
||||||
|
FILE(WRITE "${_FS_FILENAME}" "${_fullText}")
|
||||||
ENDIF(_FS_APPEND)
|
ENDIF(_FS_APPEND)
|
||||||
|
|
||||||
ELSE(_FS_FILENAME)
|
ELSE(_FS_FILENAME)
|
||||||
|
|
|
@ -35,7 +35,7 @@ find_library(ALSA_LIBRARY NAMES asound
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set ALSA_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set ALSA_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA DEFAULT_MSG ALSA_LIBRARY ALSA_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA DEFAULT_MSG ALSA_LIBRARY ALSA_INCLUDE_DIR)
|
||||||
|
|
||||||
if(ALSA_FOUND)
|
if(ALSA_FOUND)
|
||||||
|
|
|
@ -26,7 +26,7 @@ FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)
|
MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)
|
||||||
|
|
|
@ -37,7 +37,7 @@ ENDIF (UNIX)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set AVIFILE_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set AVIFILE_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(AVIFile DEFAULT_MSG AVIFILE_INCLUDE_DIR AVIFILE_AVIPLAY_LIBRARY)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(AVIFile DEFAULT_MSG AVIFILE_INCLUDE_DIR AVIFILE_AVIPLAY_LIBRARY)
|
||||||
|
|
||||||
IF (AVIFILE_FOUND)
|
IF (AVIFILE_FOUND)
|
||||||
|
|
|
@ -151,7 +151,7 @@ IF(BISON_EXECUTABLE)
|
||||||
|
|
||||||
ENDIF(BISON_EXECUTABLE)
|
ENDIF(BISON_EXECUTABLE)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE
|
||||||
VERSION_VAR BISON_VERSION)
|
VERSION_VAR BISON_VERSION)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2 )
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set BZip2_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set BZip2_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2 DEFAULT_MSG BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2 DEFAULT_MSG BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
|
||||||
|
|
||||||
IF (BZIP2_FOUND)
|
IF (BZIP2_FOUND)
|
||||||
|
|
|
@ -69,7 +69,7 @@ _FIND_BULLET_LIBRARY(BULLET_SOFTBODY_LIBRARY_DEBUG BulletSoftBody_d)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set BULLET_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set BULLET_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Bullet DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Bullet DEFAULT_MSG
|
||||||
BULLET_DYNAMICS_LIBRARY BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY
|
BULLET_DYNAMICS_LIBRARY BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY
|
||||||
BULLET_SOFTBODY_LIBRARY BULLET_INCLUDE_DIR)
|
BULLET_SOFTBODY_LIBRARY BULLET_INCLUDE_DIR)
|
||||||
|
|
|
@ -682,7 +682,7 @@ set(CUDA_TOOLKIT_ROOT_DIR_INTERNAL "${CUDA_TOOLKIT_ROOT_DIR}" CACHE INTERNAL
|
||||||
set(CUDA_SDK_ROOT_DIR_INTERNAL "${CUDA_SDK_ROOT_DIR}" CACHE INTERNAL
|
set(CUDA_SDK_ROOT_DIR_INTERNAL "${CUDA_SDK_ROOT_DIR}" CACHE INTERNAL
|
||||||
"This is the value of the last time CUDA_SDK_ROOT_DIR was set successfully." FORCE)
|
"This is the value of the last time CUDA_SDK_ROOT_DIR was set successfully." FORCE)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(CUDA
|
find_package_handle_standard_args(CUDA
|
||||||
REQUIRED_VARS
|
REQUIRED_VARS
|
||||||
CUDA_TOOLKIT_ROOT_DIR
|
CUDA_TOOLKIT_ROOT_DIR
|
||||||
|
|
|
@ -34,7 +34,7 @@ MARK_AS_ADVANCED(CURL_LIBRARY)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(CURL_FOUND)
|
IF(CURL_FOUND)
|
||||||
|
|
|
@ -65,5 +65,5 @@ mark_as_advanced(CVS_EXECUTABLE)
|
||||||
# Handle the QUIETLY and REQUIRED arguments and set CVS_FOUND to TRUE if
|
# Handle the QUIETLY and REQUIRED arguments and set CVS_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(CVS DEFAULT_MSG CVS_EXECUTABLE)
|
find_package_handle_standard_args(CVS DEFAULT_MSG CVS_EXECUTABLE)
|
||||||
|
|
|
@ -76,7 +76,7 @@ ENDIF (WIN32)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set COIN3D_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set COIN3D_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Coin3D DEFAULT_MSG COIN3D_LIBRARIES COIN3D_INCLUDE_DIRS)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Coin3D DEFAULT_MSG COIN3D_LIBRARIES COIN3D_INCLUDE_DIRS)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(COIN3D_INCLUDE_DIRS COIN3D_LIBRARIES )
|
MARK_AS_ADVANCED(COIN3D_INCLUDE_DIRS COIN3D_LIBRARIES )
|
||||||
|
|
|
@ -155,7 +155,7 @@ SET(CURSES_INCLUDE_DIR ${CURSES_INCLUDE_PATH})
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set CURSES_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set CURSES_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG
|
||||||
CURSES_LIBRARY CURSES_INCLUDE_PATH)
|
CURSES_LIBRARY CURSES_INCLUDE_PATH)
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl
|
||||||
PATHS ${CXXTEST_INCLUDE_DIR})
|
PATHS ${CXXTEST_INCLUDE_DIR})
|
||||||
|
|
||||||
if(PYTHONINTERP_FOUND OR PERL_FOUND)
|
if(PYTHONINTERP_FOUND OR PERL_FOUND)
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
if(PYTHONINTERP_FOUND AND (CXXTEST_USE_PYTHON OR NOT PERL_FOUND))
|
if(PYTHONINTERP_FOUND AND (CXXTEST_USE_PYTHON OR NOT PERL_FOUND))
|
||||||
set(CXXTEST_TESTGEN_EXECUTABLE ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE})
|
set(CXXTEST_TESTGEN_EXECUTABLE ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE})
|
||||||
|
|
|
@ -132,7 +132,7 @@ if(DCMTK_ofstd_INCLUDE_DIR)
|
||||||
mark_as_advanced(DCMTK_dcmtk_INCLUDE_DIR)
|
mark_as_advanced(DCMTK_dcmtk_INCLUDE_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(DCMTK DEFAULT_MSG
|
find_package_handle_standard_args(DCMTK DEFAULT_MSG
|
||||||
DCMTK_config_INCLUDE_DIR
|
DCMTK_config_INCLUDE_DIR
|
||||||
DCMTK_ofstd_INCLUDE_DIR
|
DCMTK_ofstd_INCLUDE_DIR
|
||||||
|
|
|
@ -30,7 +30,7 @@ FIND_PATH(DART_ROOT README.INSTALL
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set DART_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set DART_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(DART_ROOT)
|
MARK_AS_ADVANCED(DART_ROOT)
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# TODO: Add version support.
|
# TODO: Add version support.
|
||||||
# Tested under Linux and Windows (MSVC)
|
# Tested under Linux and Windows (MSVC)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
FIND_PATH(IL_INCLUDE_DIR il.h
|
FIND_PATH(IL_INCLUDE_DIR il.h
|
||||||
PATH_SUFFIXES include IL
|
PATH_SUFFIXES include IL
|
||||||
|
|
|
@ -76,7 +76,7 @@ FIND_PROGRAM(DOXYGEN_EXECUTABLE
|
||||||
DOC "Doxygen documentation generation tool (http://www.doxygen.org)"
|
DOC "Doxygen documentation generation tool (http://www.doxygen.org)"
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Doxygen DEFAULT_MSG DOXYGEN_EXECUTABLE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Doxygen DEFAULT_MSG DOXYGEN_EXECUTABLE)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -26,7 +26,7 @@ FIND_LIBRARY(EXPAT_LIBRARY NAMES expat libexpat)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set EXPAT_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set EXPAT_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT DEFAULT_MSG EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT DEFAULT_MSG EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
|
||||||
|
|
||||||
# Copy the results to the output variables.
|
# Copy the results to the output variables.
|
||||||
|
|
|
@ -143,7 +143,7 @@ IF(FLEX_EXECUTABLE)
|
||||||
|
|
||||||
ENDIF(FLEX_EXECUTABLE)
|
ENDIF(FLEX_EXECUTABLE)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLEX REQUIRED_VARS FLEX_EXECUTABLE
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLEX REQUIRED_VARS FLEX_EXECUTABLE
|
||||||
VERSION_VAR FLEX_VERSION)
|
VERSION_VAR FLEX_VERSION)
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ ENDIF(NOT FLTK_DIR)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
LIST(APPEND FLTK_LIBRARIES ${FLTK_BASE_LIBRARY})
|
LIST(APPEND FLTK_LIBRARIES ${FLTK_BASE_LIBRARY})
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
IF(FLTK_SKIP_FLUID)
|
IF(FLTK_SKIP_FLUID)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR)
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
|
@ -88,7 +88,7 @@ SET(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Freetype DEFAULT_MSG FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Freetype DEFAULT_MSG FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ FIND_LIBRARY(GDAL_LIBRARY
|
||||||
/usr/freeware
|
/usr/freeware
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL DEFAULT_MSG GDAL_LIBRARY GDAL_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL DEFAULT_MSG GDAL_LIBRARY GDAL_INCLUDE_DIR)
|
||||||
|
|
||||||
set(GDAL_LIBRARIES ${GDAL_LIBRARY})
|
set(GDAL_LIBRARIES ${GDAL_LIBRARY})
|
||||||
|
|
|
@ -60,7 +60,7 @@ SET(GIF_LIBRARIES ${GIF_LIBRARY})
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set GIF_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set GIF_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GIF DEFAULT_MSG GIF_LIBRARY GIF_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GIF DEFAULT_MSG GIF_LIBRARY GIF_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARY)
|
MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARY)
|
||||||
|
|
|
@ -516,7 +516,7 @@ endif()
|
||||||
|
|
||||||
set(_GTK2_did_we_find_everything true) # This gets set to GTK2_FOUND
|
set(_GTK2_did_we_find_everything true) # This gets set to GTK2_FOUND
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
|
foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
|
||||||
string(TOUPPER ${_GTK2_component} _COMPONENT_UPPER)
|
string(TOUPPER ${_GTK2_component} _COMPONENT_UPPER)
|
||||||
|
|
|
@ -146,7 +146,7 @@ else()
|
||||||
_gtest_find_library(GTEST_MAIN_LIBRARY_DEBUG gtest_maind)
|
_gtest_find_library(GTEST_MAIN_LIBRARY_DEBUG gtest_maind)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GTest DEFAULT_MSG GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GTest DEFAULT_MSG GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
|
||||||
|
|
||||||
if(GTEST_FOUND)
|
if(GTEST_FOUND)
|
||||||
|
|
|
@ -42,5 +42,5 @@ mark_as_advanced(GIT_EXECUTABLE)
|
||||||
# Handle the QUIETLY and REQUIRED arguments and set GIT_FOUND to TRUE if
|
# Handle the QUIETLY and REQUIRED arguments and set GIT_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(Git DEFAULT_MSG GIT_EXECUTABLE)
|
find_package_handle_standard_args(Git DEFAULT_MSG GIT_EXECUTABLE)
|
||||||
|
|
|
@ -56,7 +56,7 @@ MARK_AS_ADVANCED(GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set GNUTLS_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set GNUTLS_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GnuTLS DEFAULT_MSG GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GnuTLS DEFAULT_MSG GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(GNUTLS_FOUND)
|
IF(GNUTLS_FOUND)
|
||||||
|
|
|
@ -34,7 +34,7 @@ SET(GNUPLOT ${GNUPLOT_EXECUTABLE})
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set GNUPLOT_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set GNUPLOT_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot DEFAULT_MSG GNUPLOT_EXECUTABLE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot DEFAULT_MSG GNUPLOT_EXECUTABLE)
|
||||||
|
|
||||||
MARK_AS_ADVANCED( GNUPLOT_EXECUTABLE )
|
MARK_AS_ADVANCED( GNUPLOT_EXECUTABLE )
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
|
# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
|
||||||
|
|
||||||
include(SelectLibraryConfigurations)
|
include(SelectLibraryConfigurations)
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
# List of the valid HDF5 components
|
# List of the valid HDF5 components
|
||||||
set( HDF5_VALID_COMPONENTS
|
set( HDF5_VALID_COMPONENTS
|
||||||
|
|
|
@ -36,7 +36,7 @@ ENDIF()
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)
|
MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)
|
||||||
|
|
|
@ -171,7 +171,7 @@ SET(ImageMagick_LIBRARIES ${ImageMagick_LIBRARIES})
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Standard Package Output
|
# Standard Package Output
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
|
||||||
ImageMagick DEFAULT_MSG ImageMagick_FOUND
|
ImageMagick DEFAULT_MSG ImageMagick_FOUND
|
||||||
)
|
)
|
||||||
|
|
|
@ -232,7 +232,7 @@ FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h
|
||||||
${JAVA_INCLUDE_PATH}
|
${JAVA_INCLUDE_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JNI DEFAULT_MSG JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JNI DEFAULT_MSG JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY
|
||||||
JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
|
JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ FIND_LIBRARY(JPEG_LIBRARY NAMES ${JPEG_NAMES} )
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JPEG DEFAULT_MSG JPEG_LIBRARY JPEG_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JPEG DEFAULT_MSG JPEG_LIBRARY JPEG_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(JPEG_FOUND)
|
IF(JPEG_FOUND)
|
||||||
|
|
|
@ -27,7 +27,7 @@ FIND_LIBRARY(JASPER_LIBRARY NAMES jasper libjasper)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set JASPER_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set JASPER_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Jasper DEFAULT_MSG JASPER_LIBRARY JASPER_INCLUDE_DIR JPEG_LIBRARIES)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Jasper DEFAULT_MSG JASPER_LIBRARY JASPER_INCLUDE_DIR JPEG_LIBRARIES)
|
||||||
|
|
||||||
IF (JASPER_FOUND)
|
IF (JASPER_FOUND)
|
||||||
|
|
|
@ -150,7 +150,7 @@ FIND_PROGRAM(Java_JAVAC_EXECUTABLE
|
||||||
PATHS ${_JAVA_PATHS}
|
PATHS ${_JAVA_PATHS}
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
if(Java_FIND_COMPONENTS)
|
if(Java_FIND_COMPONENTS)
|
||||||
foreach(component ${Java_FIND_COMPONENTS})
|
foreach(component ${Java_FIND_COMPONENTS})
|
||||||
# User just want to execute some Java byte-compiled
|
# User just want to execute some Java byte-compiled
|
||||||
|
|
|
@ -50,7 +50,7 @@ endif()
|
||||||
|
|
||||||
# Handle the QUIETLY and REQUIRED arguments and set LIBARCHIVE_FOUND
|
# Handle the QUIETLY and REQUIRED arguments and set LIBARCHIVE_FOUND
|
||||||
# to TRUE if all listed variables are TRUE.
|
# to TRUE if all listed variables are TRUE.
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(LibArchive DEFAULT_MSG
|
find_package_handle_standard_args(LibArchive DEFAULT_MSG
|
||||||
LibArchive_LIBRARY LibArchive_INCLUDE_DIR
|
LibArchive_LIBRARY LibArchive_INCLUDE_DIR
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,7 +46,7 @@ SET(XMLLINT_EXECUTABLE "${LIBXML2_XMLLINT_EXECUTABLE}")
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(LIBXML2_INCLUDE_DIR LIBXML2_LIBRARIES LIBXML2_XMLLINT_EXECUTABLE)
|
MARK_AS_ADVANCED(LIBXML2_INCLUDE_DIR LIBXML2_LIBRARIES LIBXML2_XMLLINT_EXECUTABLE)
|
||||||
|
|
|
@ -40,7 +40,7 @@ FIND_LIBRARY(LIBXSLT_LIBRARIES NAMES xslt libxslt
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXslt DEFAULT_MSG LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXslt DEFAULT_MSG LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES)
|
MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES)
|
||||||
|
|
|
@ -87,7 +87,7 @@ ELSE(${LUA_LIBRARY_lua} MATCHES "framework")
|
||||||
ENDIF(${LUA_LIBRARY_lua} MATCHES "framework")
|
ENDIF(${LUA_LIBRARY_lua} MATCHES "framework")
|
||||||
|
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua50 DEFAULT_MSG LUA_LIBRARIES LUA_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua50 DEFAULT_MSG LUA_LIBRARIES LUA_INCLUDE_DIR)
|
||||||
|
|
|
@ -66,7 +66,7 @@ IF(LUA_LIBRARY)
|
||||||
ENDIF(UNIX AND NOT APPLE)
|
ENDIF(UNIX AND NOT APPLE)
|
||||||
ENDIF(LUA_LIBRARY)
|
ENDIF(LUA_LIBRARY)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua51 DEFAULT_MSG LUA_LIBRARIES LUA_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua51 DEFAULT_MSG LUA_LIBRARIES LUA_INCLUDE_DIR)
|
||||||
|
|
|
@ -34,7 +34,7 @@ FIND_LIBRARY( MPEG_vo_LIBRARY vo
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY MPEG_vo_LIBRARY)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY MPEG_vo_LIBRARY)
|
||||||
|
|
||||||
IF(MPEG_FOUND)
|
IF(MPEG_FOUND)
|
||||||
|
|
|
@ -36,7 +36,7 @@ FIND_LIBRARY( MPEG2_vo_LIBRARY vo
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG2 DEFAULT_MSG MPEG2_mpeg2_LIBRARY MPEG2_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG2 DEFAULT_MSG MPEG2_mpeg2_LIBRARY MPEG2_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(MPEG2_FOUND)
|
IF(MPEG2_FOUND)
|
||||||
|
|
|
@ -345,7 +345,7 @@ else (MPI_INCLUDE_PATH AND MPI_LIBRARY)
|
||||||
set(MPI_FOUND FALSE)
|
set(MPI_FOUND FALSE)
|
||||||
endif (MPI_INCLUDE_PATH AND MPI_LIBRARY)
|
endif (MPI_INCLUDE_PATH AND MPI_LIBRARY)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
# handle the QUIETLY and REQUIRED arguments
|
# handle the QUIETLY and REQUIRED arguments
|
||||||
find_package_handle_standard_args(MPI DEFAULT_MSG MPI_LIBRARY MPI_INCLUDE_PATH)
|
find_package_handle_standard_args(MPI DEFAULT_MSG MPI_LIBRARY MPI_INCLUDE_PATH)
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ ENDIF(UNIX)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ FIND_LIBRARY(OPENAL_LIBRARY
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL DEFAULT_MSG OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL DEFAULT_MSG OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
|
MARK_AS_ADVANCED(OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
include(CheckCXXSourceCompiles)
|
include(CheckCXXSourceCompiles)
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
set(OpenMP_C_FLAG_CANDIDATES
|
set(OpenMP_C_FLAG_CANDIDATES
|
||||||
#Gnu
|
#Gnu
|
||||||
|
|
|
@ -113,7 +113,7 @@ ELSE(WIN32 AND NOT CYGWIN)
|
||||||
|
|
||||||
ENDIF(WIN32 AND NOT CYGWIN)
|
ENDIF(WIN32 AND NOT CYGWIN)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(OpenSSL DEFAULT_MSG
|
find_package_handle_standard_args(OpenSSL DEFAULT_MSG
|
||||||
OPENSSL_LIBRARIES
|
OPENSSL_LIBRARIES
|
||||||
OPENSSL_INCLUDE_DIR
|
OPENSSL_INCLUDE_DIR
|
||||||
|
|
|
@ -231,7 +231,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenSceneGraph DEFAULT_MSG OPENSCENEGRAPH_LIBRARIES OPENSCENEGRAPH_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenSceneGraph DEFAULT_MSG OPENSCENEGRAPH_LIBRARIES OPENSCENEGRAPH_INCLUDE_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,6 @@ else()
|
||||||
set(OPENTHREADS_LIBRARIES ${OPENTHREADS_LIBRARY})
|
set(OPENTHREADS_LIBRARIES ${OPENTHREADS_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenThreads DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenThreads DEFAULT_MSG
|
||||||
OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
|
OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
|
||||||
|
|
|
@ -81,5 +81,5 @@ IF(APPLE)
|
||||||
ENDFOREACH(symbol)
|
ENDFOREACH(symbol)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PHP4 DEFAULT_MSG PHP4_EXECUTABLE PHP4_INCLUDE_PATH)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PHP4 DEFAULT_MSG PHP4_EXECUTABLE PHP4_INCLUDE_PATH)
|
||||||
|
|
|
@ -55,7 +55,7 @@ endif(ZLIB_FOUND)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set PNG_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set PNG_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(PNG DEFAULT_MSG PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
|
find_package_handle_standard_args(PNG DEFAULT_MSG PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
|
||||||
|
|
||||||
mark_as_advanced(PNG_PNG_INCLUDE_DIR PNG_LIBRARY )
|
mark_as_advanced(PNG_PNG_INCLUDE_DIR PNG_LIBRARY )
|
||||||
|
|
|
@ -232,7 +232,7 @@ FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)
|
||||||
ENDIF (${_NAME}_FIND_VERSION)
|
ENDIF (${_NAME}_FIND_VERSION)
|
||||||
|
|
||||||
IF(VERSION_OK)
|
IF(VERSION_OK)
|
||||||
SET(DETAILS "${DETAILS}[v${VERSION}]")
|
SET(DETAILS "${DETAILS}[v${VERSION}(${${_NAME}_FIND_VERSION})]")
|
||||||
ELSE(VERSION_OK)
|
ELSE(VERSION_OK)
|
||||||
SET(${_NAME_UPPER}_FOUND FALSE)
|
SET(${_NAME_UPPER}_FOUND FALSE)
|
||||||
ENDIF(VERSION_OK)
|
ENDIF(VERSION_OK)
|
||||||
|
|
|
@ -44,7 +44,7 @@ SET(PERL ${PERL_EXECUTABLE})
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set PERL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set PERL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Perl DEFAULT_MSG PERL_EXECUTABLE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Perl DEFAULT_MSG PERL_EXECUTABLE)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(PERL_EXECUTABLE)
|
MARK_AS_ADVANCED(PERL_EXECUTABLE)
|
||||||
|
|
|
@ -230,7 +230,7 @@ endif (PERL_EXECUTABLE)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set PERLLIBS_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set PERLLIBS_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
find_package_handle_standard_args(PerlLibs REQUIRED_VARS PERL_LIBRARY PERL_INCLUDE_PATH
|
find_package_handle_standard_args(PerlLibs REQUIRED_VARS PERL_LIBRARY PERL_INCLUDE_PATH
|
||||||
VERSION_VAR PERL_VERSION)
|
VERSION_VAR PERL_VERSION)
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,6 @@ FIND_LIBRARY(PHYSFS_LIBRARY
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set PHYSFS_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set PHYSFS_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PhysFS DEFAULT_MSG PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PhysFS DEFAULT_MSG PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,6 @@ FIND_LIBRARY(PRODUCER_LIBRARY
|
||||||
/opt
|
/opt
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Producer DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Producer DEFAULT_MSG
|
||||||
PRODUCER_LIBRARY PRODUCER_INCLUDE_DIR)
|
PRODUCER_LIBRARY PRODUCER_INCLUDE_DIR)
|
||||||
|
|
|
@ -111,7 +111,7 @@ if(WIN32)
|
||||||
set(CMAKE_FIND_LIBRARY_PREFIXES "${PROTOBUF_ORIG_FIND_LIBRARY_PREFIXES}")
|
set(CMAKE_FIND_LIBRARY_PREFIXES "${PROTOBUF_ORIG_FIND_LIBRARY_PREFIXES}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PROTOBUF DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PROTOBUF DEFAULT_MSG
|
||||||
PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
|
PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ FIND_PROGRAM(PYTHON_EXECUTABLE
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set PYTHONINTERP_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set PYTHONINTERP_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp DEFAULT_MSG PYTHON_EXECUTABLE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp DEFAULT_MSG PYTHON_EXECUTABLE)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(PYTHON_EXECUTABLE)
|
MARK_AS_ADVANCED(PYTHON_EXECUTABLE)
|
||||||
|
|
|
@ -98,7 +98,7 @@ SET(PYTHON_LIBRARIES "${PYTHON_LIBRARY}")
|
||||||
SET(PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY}")
|
SET(PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY}")
|
||||||
|
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonLibs DEFAULT_MSG PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonLibs DEFAULT_MSG PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,6 +128,13 @@ FUNCTION(PYTHON_ADD_MODULE _NAME )
|
||||||
ADD_LIBRARY(${_NAME} ${PY_MODULE_TYPE} ${ARGN})
|
ADD_LIBRARY(${_NAME} ${PY_MODULE_TYPE} ${ARGN})
|
||||||
# TARGET_LINK_LIBRARIES(${_NAME} ${PYTHON_LIBRARIES})
|
# TARGET_LINK_LIBRARIES(${_NAME} ${PYTHON_LIBRARIES})
|
||||||
|
|
||||||
|
IF(PYTHON_MODULE_${_NAME}_BUILD_SHARED)
|
||||||
|
SET_TARGET_PROPERTIES(${_NAME} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}")
|
||||||
|
IF(WIN32 AND NOT CYGWIN)
|
||||||
|
SET_TARGET_PROPERTIES(${_NAME} PROPERTIES SUFFIX ".pyd")
|
||||||
|
ENDIF(WIN32 AND NOT CYGWIN)
|
||||||
|
ENDIF(PYTHON_MODULE_${_NAME}_BUILD_SHARED)
|
||||||
|
|
||||||
ENDIF(PYTHON_ENABLE_MODULE_${_NAME})
|
ENDIF(PYTHON_ENABLE_MODULE_${_NAME})
|
||||||
ENDFUNCTION(PYTHON_ADD_MODULE)
|
ENDFUNCTION(PYTHON_ADD_MODULE)
|
||||||
|
|
||||||
|
|
|
@ -602,10 +602,12 @@ IF (QT4_QMAKE_FOUND)
|
||||||
FIND_LIBRARY(QT_QTCORE_LIBRARY_RELEASE
|
FIND_LIBRARY(QT_QTCORE_LIBRARY_RELEASE
|
||||||
NAMES QtCore${QT_LIBINFIX} QtCore${QT_LIBINFIX}4
|
NAMES QtCore${QT_LIBINFIX} QtCore${QT_LIBINFIX}4
|
||||||
HINTS ${QT_LIBRARY_DIR_TMP}
|
HINTS ${QT_LIBRARY_DIR_TMP}
|
||||||
|
NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH
|
||||||
)
|
)
|
||||||
FIND_LIBRARY(QT_QTCORE_LIBRARY_DEBUG
|
FIND_LIBRARY(QT_QTCORE_LIBRARY_DEBUG
|
||||||
NAMES QtCore${QT_LIBINFIX}_debug QtCore${QT_LIBINFIX}d QtCore${QT_LIBINFIX}d4
|
NAMES QtCore${QT_LIBINFIX}_debug QtCore${QT_LIBINFIX}d QtCore${QT_LIBINFIX}d4
|
||||||
HINTS ${QT_LIBRARY_DIR_TMP}
|
HINTS ${QT_LIBRARY_DIR_TMP}
|
||||||
|
NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
# try dropping a hint if trying to use Visual Studio with Qt built by mingw
|
# try dropping a hint if trying to use Visual Studio with Qt built by mingw
|
||||||
|
@ -630,7 +632,7 @@ IF (QT4_QMAKE_FOUND)
|
||||||
SET(QT_QTCORE_FOUND 1)
|
SET(QT_QTCORE_FOUND 1)
|
||||||
ELSE()
|
ELSE()
|
||||||
MESSAGE("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as ${QT_LIBRARY_DIR_TMP}")
|
MESSAGE("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as ${QT_LIBRARY_DIR_TMP}")
|
||||||
MESSAGE("Warning: But QtCore couldn't be found. Qt must NOT be installed correctly.")
|
MESSAGE("Warning: But QtCore couldn't be found. Qt must NOT be installed correctly, or it wasn't found for cross compiling.")
|
||||||
IF(Qt4_FIND_REQUIRED)
|
IF(Qt4_FIND_REQUIRED)
|
||||||
MESSAGE( FATAL_ERROR "Could NOT find QtCore. Check ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log for more details.")
|
MESSAGE( FATAL_ERROR "Could NOT find QtCore. Check ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log for more details.")
|
||||||
ENDIF(Qt4_FIND_REQUIRED)
|
ENDIF(Qt4_FIND_REQUIRED)
|
||||||
|
|
|
@ -43,5 +43,5 @@ ENDIF(APPLE)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set QUICKTIME_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set QUICKTIME_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)
|
||||||
|
|
|
@ -95,7 +95,7 @@ ENDIF (RTI_INCLUDE_DIR)
|
||||||
# Set the modified system variables back to the original value.
|
# Set the modified system variables back to the original value.
|
||||||
SET(CMAKE_FIND_LIBRARY_PREFIXES "${RTI_OLD_FIND_LIBRARY_PREFIXES}")
|
SET(CMAKE_FIND_LIBRARY_PREFIXES "${RTI_OLD_FIND_LIBRARY_PREFIXES}")
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTI DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTI DEFAULT_MSG
|
||||||
RTI_LIBRARY RTI_INCLUDE_DIR)
|
RTI_LIBRARY RTI_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@ ENDIF(WIN32)
|
||||||
|
|
||||||
FIND_LIBRARY(RUBY_LIBRARY NAMES ${_RUBY_POSSIBLE_LIB_NAMES} HINTS ${RUBY_POSSIBLE_LIB_DIR} )
|
FIND_LIBRARY(RUBY_LIBRARY NAMES ${_RUBY_POSSIBLE_LIB_NAMES} HINTS ${RUBY_POSSIBLE_LIB_DIR} )
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
SET(_RUBY_REQUIRED_VARS RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
|
SET(_RUBY_REQUIRED_VARS RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
|
||||||
IF(_RUBY_VERSION_SHORT_NODOT GREATER 18)
|
IF(_RUBY_VERSION_SHORT_NODOT GREATER 18)
|
||||||
LIST(APPEND _RUBY_REQUIRED_VARS RUBY_CONFIG_INCLUDE_DIR)
|
LIST(APPEND _RUBY_REQUIRED_VARS RUBY_CONFIG_INCLUDE_DIR)
|
||||||
|
|
|
@ -62,6 +62,6 @@ IF(SWIG_EXECUTABLE)
|
||||||
ENDIF(SWIG_swiglib_result)
|
ENDIF(SWIG_swiglib_result)
|
||||||
ENDIF(SWIG_EXECUTABLE)
|
ENDIF(SWIG_EXECUTABLE)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SWIG REQUIRED_VARS SWIG_EXECUTABLE SWIG_DIR
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SWIG REQUIRED_VARS SWIG_EXECUTABLE SWIG_DIR
|
||||||
VERSION_VAR SWIG_VERSION )
|
VERSION_VAR SWIG_VERSION )
|
||||||
|
|
|
@ -115,7 +115,7 @@ IF(Subversion_SVN_EXECUTABLE)
|
||||||
|
|
||||||
ENDIF(Subversion_SVN_EXECUTABLE)
|
ENDIF(Subversion_SVN_EXECUTABLE)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Subversion REQUIRED_VARS Subversion_SVN_EXECUTABLE
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Subversion REQUIRED_VARS Subversion_SVN_EXECUTABLE
|
||||||
VERSION_VAR Subversion_VERSION_SVN )
|
VERSION_VAR Subversion_VERSION_SVN )
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ FIND_PATH(TK_INCLUDE_PATH
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set TCL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set TCL_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCL DEFAULT_MSG TCL_LIBRARY TCL_INCLUDE_PATH)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCL DEFAULT_MSG TCL_LIBRARY TCL_INCLUDE_PATH)
|
||||||
SET(TCLTK_FIND_REQUIRED ${TCL_FIND_REQUIRED})
|
SET(TCLTK_FIND_REQUIRED ${TCL_FIND_REQUIRED})
|
||||||
|
|
|
@ -27,7 +27,7 @@ FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(TIFF_FOUND)
|
IF(TIFF_FOUND)
|
||||||
|
|
|
@ -84,7 +84,7 @@ FIND_PROGRAM(TCL_TCLSH
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Tclsh DEFAULT_MSG TCL_TCLSH)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Tclsh DEFAULT_MSG TCL_TCLSH)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(TCL_TCLSH)
|
MARK_AS_ADVANCED(TCL_TCLSH)
|
||||||
|
|
|
@ -153,5 +153,5 @@ IF(CMAKE_USE_PTHREADS_INIT)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF(CMAKE_USE_PTHREADS_INIT)
|
ENDIF(CMAKE_USE_PTHREADS_INIT)
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Threads DEFAULT_MSG Threads_FOUND)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Threads DEFAULT_MSG Threads_FOUND)
|
||||||
|
|
|
@ -26,7 +26,7 @@ FIND_PROGRAM(WGET_EXECUTABLE
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
|
||||||
|
|
||||||
MARK_AS_ADVANCED( WGET_EXECUTABLE )
|
MARK_AS_ADVANCED( WGET_EXECUTABLE )
|
||||||
|
|
|
@ -66,7 +66,7 @@ ENDIF()
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB REQUIRED_VARS ZLIB_INCLUDE_DIR ZLIB_LIBRARY
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB REQUIRED_VARS ZLIB_INCLUDE_DIR ZLIB_LIBRARY
|
||||||
VERSION_VAR ZLIB_VERSION_STRING)
|
VERSION_VAR ZLIB_VERSION_STRING)
|
||||||
|
|
||||||
|
|
|
@ -50,5 +50,5 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSG osg/PositionAttitudeTransform)
|
OSG_FIND_PATH (OSG osg/PositionAttitudeTransform)
|
||||||
OSG_FIND_LIBRARY(OSG osg)
|
OSG_FIND_LIBRARY(OSG osg)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osg DEFAULT_MSG OSG_LIBRARY OSG_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osg DEFAULT_MSG OSG_LIBRARY OSG_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGANIMATION osgAnimation/Animation)
|
OSG_FIND_PATH (OSGANIMATION osgAnimation/Animation)
|
||||||
OSG_FIND_LIBRARY(OSGANIMATION osgAnimation)
|
OSG_FIND_LIBRARY(OSGANIMATION osgAnimation)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgAnimation DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgAnimation DEFAULT_MSG
|
||||||
OSGANIMATION_LIBRARY OSGANIMATION_INCLUDE_DIR)
|
OSGANIMATION_LIBRARY OSGANIMATION_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGDB osgDB/DatabasePager)
|
OSG_FIND_PATH (OSGDB osgDB/DatabasePager)
|
||||||
OSG_FIND_LIBRARY(OSGDB osgDB)
|
OSG_FIND_LIBRARY(OSGDB osgDB)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgDB DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgDB DEFAULT_MSG
|
||||||
OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
|
OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGFX osgFX/BumpMapping)
|
OSG_FIND_PATH (OSGFX osgFX/BumpMapping)
|
||||||
OSG_FIND_LIBRARY(OSGFX osgFX)
|
OSG_FIND_LIBRARY(OSGFX osgFX)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgFX DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgFX DEFAULT_MSG
|
||||||
OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
|
OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGGA osgGA/FlightManipulator)
|
OSG_FIND_PATH (OSGGA osgGA/FlightManipulator)
|
||||||
OSG_FIND_LIBRARY(OSGGA osgGA)
|
OSG_FIND_LIBRARY(OSGGA osgGA)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgGA DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgGA DEFAULT_MSG
|
||||||
OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
|
OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGINTROSPECTION osgIntrospection/Reflection)
|
OSG_FIND_PATH (OSGINTROSPECTION osgIntrospection/Reflection)
|
||||||
OSG_FIND_LIBRARY(OSGINTROSPECTION osgIntrospection)
|
OSG_FIND_LIBRARY(OSGINTROSPECTION osgIntrospection)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgIntrospection DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgIntrospection DEFAULT_MSG
|
||||||
OSGINTROSPECTION_LIBRARY OSGINTROSPECTION_INCLUDE_DIR)
|
OSGINTROSPECTION_LIBRARY OSGINTROSPECTION_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger)
|
OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger)
|
||||||
OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator)
|
OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgManipulator DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgManipulator DEFAULT_MSG
|
||||||
OSGMANIPULATOR_LIBRARY OSGMANIPULATOR_INCLUDE_DIR)
|
OSGMANIPULATOR_LIBRARY OSGMANIPULATOR_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGPARTICLE osgParticle/FireEffect)
|
OSG_FIND_PATH (OSGPARTICLE osgParticle/FireEffect)
|
||||||
OSG_FIND_LIBRARY(OSGPARTICLE osgParticle)
|
OSG_FIND_LIBRARY(OSGPARTICLE osgParticle)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgParticle DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgParticle DEFAULT_MSG
|
||||||
OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR)
|
OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGPRODUCER osgProducer/OsgSceneHandler)
|
OSG_FIND_PATH (OSGPRODUCER osgProducer/OsgSceneHandler)
|
||||||
OSG_FIND_LIBRARY(OSGPRODUCER osgProducer)
|
OSG_FIND_LIBRARY(OSGPRODUCER osgProducer)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgProducer DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgProducer DEFAULT_MSG
|
||||||
OSGPRODUCER_LIBRARY OSGPRODUCER_INCLUDE_DIR)
|
OSGPRODUCER_LIBRARY OSGPRODUCER_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGSHADOW osgShadow/ShadowTexture)
|
OSG_FIND_PATH (OSGSHADOW osgShadow/ShadowTexture)
|
||||||
OSG_FIND_LIBRARY(OSGSHADOW osgShadow)
|
OSG_FIND_LIBRARY(OSGSHADOW osgShadow)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgShadow DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgShadow DEFAULT_MSG
|
||||||
OSGSHADOW_LIBRARY OSGSHADOW_INCLUDE_DIR)
|
OSGSHADOW_LIBRARY OSGSHADOW_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGSIM osgSim/ImpostorSprite)
|
OSG_FIND_PATH (OSGSIM osgSim/ImpostorSprite)
|
||||||
OSG_FIND_LIBRARY(OSGSIM osgSim)
|
OSG_FIND_LIBRARY(OSGSIM osgSim)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgSim DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgSim DEFAULT_MSG
|
||||||
OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
|
OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGTERRAIN osgTerrain/Terrain)
|
OSG_FIND_PATH (OSGTERRAIN osgTerrain/Terrain)
|
||||||
OSG_FIND_LIBRARY(OSGTERRAIN osgTerrain)
|
OSG_FIND_LIBRARY(OSGTERRAIN osgTerrain)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgTerrain DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgTerrain DEFAULT_MSG
|
||||||
OSGTERRAIN_LIBRARY OSGTERRAIN_INCLUDE_DIR)
|
OSGTERRAIN_LIBRARY OSGTERRAIN_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGTEXT osgText/Text)
|
OSG_FIND_PATH (OSGTEXT osgText/Text)
|
||||||
OSG_FIND_LIBRARY(OSGTEXT osgText)
|
OSG_FIND_LIBRARY(OSGTEXT osgText)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgText DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgText DEFAULT_MSG
|
||||||
OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
|
OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGUTIL osgUtil/SceneView)
|
OSG_FIND_PATH (OSGUTIL osgUtil/SceneView)
|
||||||
OSG_FIND_LIBRARY(OSGUTIL osgUtil)
|
OSG_FIND_LIBRARY(OSGUTIL osgUtil)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgUtil DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgUtil DEFAULT_MSG
|
||||||
OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
|
OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGVIEWER osgViewer/Viewer)
|
OSG_FIND_PATH (OSGVIEWER osgViewer/Viewer)
|
||||||
OSG_FIND_LIBRARY(OSGVIEWER osgViewer)
|
OSG_FIND_LIBRARY(OSGVIEWER osgViewer)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgViewer DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgViewer DEFAULT_MSG
|
||||||
OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
|
OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGVOLUME osgVolume/Volume)
|
OSG_FIND_PATH (OSGVOLUME osgVolume/Volume)
|
||||||
OSG_FIND_LIBRARY(OSGVOLUME osgVolume)
|
OSG_FIND_LIBRARY(OSGVOLUME osgVolume)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgVolume DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgVolume DEFAULT_MSG
|
||||||
OSGVOLUME_LIBRARY OSGVOLUME_INCLUDE_DIR)
|
OSGVOLUME_LIBRARY OSGVOLUME_INCLUDE_DIR)
|
||||||
|
|
|
@ -46,6 +46,6 @@ include(Findosg_functions)
|
||||||
OSG_FIND_PATH (OSGWIDGET osgWidget/Widget)
|
OSG_FIND_PATH (OSGWIDGET osgWidget/Widget)
|
||||||
OSG_FIND_LIBRARY(OSGWIDGET osgWidget)
|
OSG_FIND_LIBRARY(OSGWIDGET osgWidget)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgWidget DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgWidget DEFAULT_MSG
|
||||||
OSGWIDGET_LIBRARY OSGWIDGET_INCLUDE_DIR)
|
OSGWIDGET_LIBRARY OSGWIDGET_INCLUDE_DIR)
|
||||||
|
|
|
@ -827,7 +827,7 @@ DBG_MSG("wxWidgets_USE_FILE : ${wxWidgets_USE_FILE}")
|
||||||
|
|
||||||
#=====================================================================
|
#=====================================================================
|
||||||
#=====================================================================
|
#=====================================================================
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(wxWidgets DEFAULT_MSG wxWidgets_FOUND)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(wxWidgets DEFAULT_MSG wxWidgets_FOUND)
|
||||||
# Maintain consistency with all other variables.
|
# Maintain consistency with all other variables.
|
||||||
SET(wxWidgets_FOUND ${WXWIDGETS_FOUND})
|
SET(wxWidgets_FOUND ${WXWIDGETS_FOUND})
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
|
|
||||||
void cmDocumentVariables::DefineVariables(cmake* cm)
|
void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
{
|
{
|
||||||
// Subsection: variables defined by cmake, that give
|
// Subsection: variables defined by cmake, that give
|
||||||
// information about the project, and cmake
|
// information about the project, and cmake
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
|
@ -18,21 +18,21 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"This is the full path to the CMake executable cmake which is "
|
"This is the full path to the CMake executable cmake which is "
|
||||||
"useful from custom commands that want to use the cmake -E "
|
"useful from custom commands that want to use the cmake -E "
|
||||||
"option for portable system commands. "
|
"option for portable system commands. "
|
||||||
"(e.g. /usr/local/bin/cmake", false,
|
"(e.g. /usr/local/bin/cmake", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_BINARY_DIR", cmProperty::VARIABLE,
|
("CMAKE_BINARY_DIR", cmProperty::VARIABLE,
|
||||||
"The path to the top level of the build tree.",
|
"The path to the top level of the build tree.",
|
||||||
"This is the full path to the top level of the current CMake "
|
"This is the full path to the top level of the current CMake "
|
||||||
"build tree. For an in-source build, this would be the same "
|
"build tree. For an in-source build, this would be the same "
|
||||||
"as CMAKE_SOURCE_DIR. ", false,
|
"as CMAKE_SOURCE_DIR. ", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_SOURCE_DIR", cmProperty::VARIABLE,
|
("CMAKE_SOURCE_DIR", cmProperty::VARIABLE,
|
||||||
"The path to the top level of the source tree.",
|
"The path to the top level of the source tree.",
|
||||||
"This is the full path to the top level of the current CMake "
|
"This is the full path to the top level of the current CMake "
|
||||||
"source tree. For an in-source build, this would be the same "
|
"source tree. For an in-source build, this would be the same "
|
||||||
"as CMAKE_BINARY_DIR. ", false,
|
"as CMAKE_BINARY_DIR. ", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CURRENT_BINARY_DIR", cmProperty::VARIABLE,
|
("CMAKE_CURRENT_BINARY_DIR", cmProperty::VARIABLE,
|
||||||
|
@ -42,13 +42,13 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"add_subdirectory will create a binary directory in the build "
|
"add_subdirectory will create a binary directory in the build "
|
||||||
"tree, and as it is being processed this variable will be set. "
|
"tree, and as it is being processed this variable will be set. "
|
||||||
"For in-source builds this is the current source directory "
|
"For in-source builds this is the current source directory "
|
||||||
"being processed.", false,
|
"being processed.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CURRENT_SOURCE_DIR", cmProperty::VARIABLE,
|
("CMAKE_CURRENT_SOURCE_DIR", cmProperty::VARIABLE,
|
||||||
"The path to the source directory currently being processed.",
|
"The path to the source directory currently being processed.",
|
||||||
"This the full path to the source directory that is currently "
|
"This the full path to the source directory that is currently "
|
||||||
"being processed by cmake. ", false,
|
"being processed by cmake. ", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
|
@ -74,8 +74,28 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
("CMAKE_CURRENT_LIST_LINE", cmProperty::VARIABLE,
|
("CMAKE_CURRENT_LIST_LINE", cmProperty::VARIABLE,
|
||||||
"The line number of the current file being processed.",
|
"The line number of the current file being processed.",
|
||||||
"This is the line number of the file currently being"
|
"This is the line number of the file currently being"
|
||||||
" processed by cmake.", false,
|
" processed by cmake.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
|
cm->DefineProperty
|
||||||
|
("CMAKE_CURRENT_LIST_DIR", cmProperty::VARIABLE,
|
||||||
|
"Full directory of the listfile currently being processed.",
|
||||||
|
"As CMake processes the listfiles in your project this "
|
||||||
|
"variable will always be set to the directory where the listfile which "
|
||||||
|
"is currently being processed (CMAKE_CURRENT_LIST_FILE) is located. "
|
||||||
|
"The value has dynamic scope. "
|
||||||
|
"When CMake starts processing commands in a source file "
|
||||||
|
"it sets this variable to the directory where this file is located. "
|
||||||
|
"When CMake finishes processing commands from the file it "
|
||||||
|
"restores the previous value. "
|
||||||
|
"Therefore the value of the variable inside a macro or "
|
||||||
|
"function is the directory of the file invoking the bottom-most entry on "
|
||||||
|
"the call stack, not the directory of the file containing the macro or "
|
||||||
|
"function definition."
|
||||||
|
"\n"
|
||||||
|
"See also CMAKE_CURRENT_LIST_FILE.",false,
|
||||||
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_BUILD_TOOL", cmProperty::VARIABLE,
|
("CMAKE_BUILD_TOOL", cmProperty::VARIABLE,
|
||||||
"Tool used for the actual build process.",
|
"Tool used for the actual build process.",
|
||||||
|
@ -87,7 +107,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"and for Visual Studio 7 it set to devenv. For "
|
"and for Visual Studio 7 it set to devenv. For "
|
||||||
"Nmake Makefiles the value is nmake. This can be "
|
"Nmake Makefiles the value is nmake. This can be "
|
||||||
"useful for adding special flags and commands based"
|
"useful for adding special flags and commands based"
|
||||||
" on the final build environment. ", false,
|
" on the final build environment. ", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CROSSCOMPILING", cmProperty::VARIABLE,
|
("CMAKE_CROSSCOMPILING", cmProperty::VARIABLE,
|
||||||
|
@ -101,7 +121,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"The directory with the CMakeCache.txt file.",
|
"The directory with the CMakeCache.txt file.",
|
||||||
"This is the full path to the directory that has the "
|
"This is the full path to the directory that has the "
|
||||||
"CMakeCache.txt file in it. This is the same as "
|
"CMakeCache.txt file in it. This is the same as "
|
||||||
"CMAKE_BINARY_DIR.", false,
|
"CMAKE_BINARY_DIR.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CACHE_MAJOR_VERSION", cmProperty::VARIABLE,
|
("CMAKE_CACHE_MAJOR_VERSION", cmProperty::VARIABLE,
|
||||||
|
@ -109,7 +129,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"This is stores the major version of CMake used to "
|
"This is stores the major version of CMake used to "
|
||||||
"write a CMake cache file. It is only different when "
|
"write a CMake cache file. It is only different when "
|
||||||
"a different version of CMake is run on a previously "
|
"a different version of CMake is run on a previously "
|
||||||
"created cache file.", false,
|
"created cache file.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CACHE_MINOR_VERSION", cmProperty::VARIABLE,
|
("CMAKE_CACHE_MINOR_VERSION", cmProperty::VARIABLE,
|
||||||
|
@ -117,18 +137,18 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"This is stores the minor version of CMake used to "
|
"This is stores the minor version of CMake used to "
|
||||||
"write a CMake cache file. It is only different when "
|
"write a CMake cache file. It is only different when "
|
||||||
"a different version of CMake is run on a previously "
|
"a different version of CMake is run on a previously "
|
||||||
"created cache file.", false,
|
"created cache file.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CACHE_PATCH_VERSION", cmProperty::VARIABLE,
|
("CMAKE_CACHE_PATCH_VERSION", cmProperty::VARIABLE,
|
||||||
"Patch version of CMake used to create the CMakeCache.txt file",
|
"Patch version of CMake used to create the CMakeCache.txt file",
|
||||||
"This is stores the patch version of CMake used to "
|
"This is stores the patch version of CMake used to "
|
||||||
"write a CMake cache file. It is only different when "
|
"write a CMake cache file. It is only different when "
|
||||||
"a different version of CMake is run on a previously "
|
"a different version of CMake is run on a previously "
|
||||||
"created cache file.", false,
|
"created cache file.", false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CFG_INTDIR", cmProperty::VARIABLE,
|
("CMAKE_CFG_INTDIR", cmProperty::VARIABLE,
|
||||||
"Build-time reference to per-configuration output subdirectory.",
|
"Build-time reference to per-configuration output subdirectory.",
|
||||||
|
@ -168,7 +188,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"is passed as the value of preprocessor symbol \"CMAKE_INTDIR\" to "
|
"is passed as the value of preprocessor symbol \"CMAKE_INTDIR\" to "
|
||||||
"the compilation of all source files.",false,
|
"the compilation of all source files.",false,
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_CTEST_COMMAND", cmProperty::VARIABLE,
|
("CMAKE_CTEST_COMMAND", cmProperty::VARIABLE,
|
||||||
"Full path to ctest command installed with cmake.",
|
"Full path to ctest command installed with cmake.",
|
||||||
|
@ -442,7 +462,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"Variables that Provide Information");
|
"Variables that Provide Information");
|
||||||
|
|
||||||
|
|
||||||
// Variables defined by cmake, that change the behavior
|
// Variables defined by cmake, that change the behavior
|
||||||
// of cmake
|
// of cmake
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_FIND_LIBRARY_PREFIXES", cmProperty::VARIABLE,
|
("CMAKE_FIND_LIBRARY_PREFIXES", cmProperty::VARIABLE,
|
||||||
|
@ -665,7 +685,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"to override any variables that need to be changed "
|
"to override any variables that need to be changed "
|
||||||
"for some special project. ",false,
|
"for some special project. ",false,
|
||||||
"Variables That Change Behavior");
|
"Variables That Change Behavior");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("BUILD_SHARED_LIBS", cmProperty::VARIABLE,
|
("BUILD_SHARED_LIBS", cmProperty::VARIABLE,
|
||||||
"Global flag to cause add_library to create shared libraries if on.",
|
"Global flag to cause add_library to create shared libraries if on.",
|
||||||
|
@ -676,14 +696,14 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"they want to build the project using shared or static "
|
"they want to build the project using shared or static "
|
||||||
"libraries.",false,
|
"libraries.",false,
|
||||||
"Variables That Change Behavior");
|
"Variables That Change Behavior");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_NOT_USING_CONFIG_FLAGS", cmProperty::VARIABLE,
|
("CMAKE_NOT_USING_CONFIG_FLAGS", cmProperty::VARIABLE,
|
||||||
"Skip _BUILD_TYPE flags if true.",
|
"Skip _BUILD_TYPE flags if true.",
|
||||||
"This is an internal flag used by the generators in "
|
"This is an internal flag used by the generators in "
|
||||||
"CMake to tell CMake to skip the _BUILD_TYPE flags.",false,
|
"CMake to tell CMake to skip the _BUILD_TYPE flags.",false,
|
||||||
"Variables That Change Behavior");
|
"Variables That Change Behavior");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_MFC_FLAG", cmProperty::VARIABLE,
|
("CMAKE_MFC_FLAG", cmProperty::VARIABLE,
|
||||||
"Tell cmake to use MFC for an executable or dll.",
|
"Tell cmake to use MFC for an executable or dll.",
|
||||||
|
@ -774,19 +794,19 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"True if running on Mac OSX.",
|
"True if running on Mac OSX.",
|
||||||
"Set to true on Mac OSX.",false,
|
"Set to true on Mac OSX.",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("BORLAND", cmProperty::VARIABLE,
|
("BORLAND", cmProperty::VARIABLE,
|
||||||
"True of the borland compiler is being used.",
|
"True of the borland compiler is being used.",
|
||||||
"This is set to true if the Borland compiler is being used.",false,
|
"This is set to true if the Borland compiler is being used.",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CYGWIN", cmProperty::VARIABLE,
|
("CYGWIN", cmProperty::VARIABLE,
|
||||||
"True for cygwin.",
|
"True for cygwin.",
|
||||||
"Set to true when using CYGWIN.",false,
|
"Set to true when using CYGWIN.",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("MSVC", cmProperty::VARIABLE,
|
("MSVC", cmProperty::VARIABLE,
|
||||||
"True when using Microsoft Visual C",
|
"True when using Microsoft Visual C",
|
||||||
|
@ -838,7 +858,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"Set to true when the target system is UNIX or UNIX like "
|
"Set to true when the target system is UNIX or UNIX like "
|
||||||
"(i.e. APPLE and CYGWIN).",false,
|
"(i.e. APPLE and CYGWIN).",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("WIN32", cmProperty::VARIABLE,
|
("WIN32", cmProperty::VARIABLE,
|
||||||
"True on windows systems, including win64.",
|
"True on windows systems, including win64.",
|
||||||
|
@ -865,7 +885,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"Set to true when the host system is UNIX or UNIX like "
|
"Set to true when the host system is UNIX or UNIX like "
|
||||||
"(i.e. APPLE and CYGWIN).",false,
|
"(i.e. APPLE and CYGWIN).",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_HOST_WIN32", cmProperty::VARIABLE,
|
("CMAKE_HOST_WIN32", cmProperty::VARIABLE,
|
||||||
"True on windows systems, including win64.",
|
"True on windows systems, including win64.",
|
||||||
|
@ -890,7 +910,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"The value must be an integer no less than 128.",false,
|
"The value must be an integer no less than 128.",false,
|
||||||
"Variables That Describe the System");
|
"Variables That Describe the System");
|
||||||
|
|
||||||
// Variables that affect the building of object files and
|
// Variables that affect the building of object files and
|
||||||
// targets.
|
// targets.
|
||||||
//
|
//
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
|
@ -1106,7 +1126,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"This is the command that will be used as the <LANG> compiler. "
|
"This is the command that will be used as the <LANG> compiler. "
|
||||||
"Once set, you can not change this variable.",false,
|
"Once set, you can not change this variable.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_COMPILER_ID", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_COMPILER_ID", cmProperty::VARIABLE,
|
||||||
"An internal variable subject to change.",
|
"An internal variable subject to change.",
|
||||||
|
@ -1150,54 +1170,54 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"If the selected <LANG> compiler is the GNU "
|
"If the selected <LANG> compiler is the GNU "
|
||||||
"compiler then this is TRUE, if not it is FALSE.",false,
|
"compiler then this is TRUE, if not it is FALSE.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_FLAGS_DEBUG", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_FLAGS_DEBUG", cmProperty::VARIABLE,
|
||||||
"Flags for Debug build type or configuration.",
|
"Flags for Debug build type or configuration.",
|
||||||
"<LANG> flags used when CMAKE_BUILD_TYPE is Debug.",false,
|
"<LANG> flags used when CMAKE_BUILD_TYPE is Debug.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_FLAGS_MINSIZEREL", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_FLAGS_MINSIZEREL", cmProperty::VARIABLE,
|
||||||
"Flags for MinSizeRel build type or configuration.",
|
"Flags for MinSizeRel build type or configuration.",
|
||||||
"<LANG> flags used when CMAKE_BUILD_TYPE is MinSizeRel."
|
"<LANG> flags used when CMAKE_BUILD_TYPE is MinSizeRel."
|
||||||
"Short for minimum size release.",false,
|
"Short for minimum size release.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_FLAGS_RELEASE", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_FLAGS_RELEASE", cmProperty::VARIABLE,
|
||||||
"Flags for Release build type or configuration.",
|
"Flags for Release build type or configuration.",
|
||||||
"<LANG> flags used when CMAKE_BUILD_TYPE is Release",false,
|
"<LANG> flags used when CMAKE_BUILD_TYPE is Release",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_FLAGS_RELWITHDEBINFO", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_FLAGS_RELWITHDEBINFO", cmProperty::VARIABLE,
|
||||||
"Flags for RelWithDebInfo type or configuration.",
|
"Flags for RelWithDebInfo type or configuration.",
|
||||||
"<LANG> flags used when CMAKE_BUILD_TYPE is RelWithDebInfo. "
|
"<LANG> flags used when CMAKE_BUILD_TYPE is RelWithDebInfo. "
|
||||||
"Short for Release With Debug Information.",false,
|
"Short for Release With Debug Information.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_COMPILE_OBJECT", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_COMPILE_OBJECT", cmProperty::VARIABLE,
|
||||||
"Rule variable to compile a single object file.",
|
"Rule variable to compile a single object file.",
|
||||||
"This is a rule variable that tells CMake how to "
|
"This is a rule variable that tells CMake how to "
|
||||||
"compile a single object file for for the language <LANG>.",false,
|
"compile a single object file for for the language <LANG>.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_CREATE_SHARED_LIBRARY", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_CREATE_SHARED_LIBRARY", cmProperty::VARIABLE,
|
||||||
"Rule variable to create a shared library.",
|
"Rule variable to create a shared library.",
|
||||||
"This is a rule variable that tells CMake how to "
|
"This is a rule variable that tells CMake how to "
|
||||||
"create a shared library for the language <LANG>.",false,
|
"create a shared library for the language <LANG>.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_CREATE_SHARED_MODULE", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_CREATE_SHARED_MODULE", cmProperty::VARIABLE,
|
||||||
"Rule variable to create a shared module.",
|
"Rule variable to create a shared module.",
|
||||||
"This is a rule variable that tells CMake how to "
|
"This is a rule variable that tells CMake how to "
|
||||||
"create a shared library for the language <LANG>.",false,
|
"create a shared library for the language <LANG>.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_CREATE_STATIC_LIBRARY", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_CREATE_STATIC_LIBRARY", cmProperty::VARIABLE,
|
||||||
"Rule variable to create a static library.",
|
"Rule variable to create a static library.",
|
||||||
|
@ -1289,20 +1309,20 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
"See also the CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES variable.",
|
"See also the CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES variable.",
|
||||||
false,
|
false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_LINK_EXECUTABLE ", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_LINK_EXECUTABLE ", cmProperty::VARIABLE,
|
||||||
"Rule variable to link and executable.",
|
"Rule variable to link and executable.",
|
||||||
"Rule variable to link and executable for the given language.",false,
|
"Rule variable to link and executable for the given language.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_OUTPUT_EXTENSION", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_OUTPUT_EXTENSION", cmProperty::VARIABLE,
|
||||||
"Extension for the output of a compile for a single file.",
|
"Extension for the output of a compile for a single file.",
|
||||||
"This is the extension for an object file for "
|
"This is the extension for an object file for "
|
||||||
"the given <LANG>. For example .obj for C on Windows.",false,
|
"the given <LANG>. For example .obj for C on Windows.",false,
|
||||||
"Variables for Languages");
|
"Variables for Languages");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS", cmProperty::VARIABLE,
|
("CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS", cmProperty::VARIABLE,
|
||||||
"Extensions of source files for the given language.",
|
"Extensions of source files for the given language.",
|
||||||
|
@ -1317,16 +1337,16 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
false,"Variables for Languages");
|
false,"Variables for Languages");
|
||||||
|
|
||||||
// variables that are used by cmake but not to be documented
|
// variables that are used by cmake but not to be documented
|
||||||
cm->DefineProperty("CMAKE_MATCH_0", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_0", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_1", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_1", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_2", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_2", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_3", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_3", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_4", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_4", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_5", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_5", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_6", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_6", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_7", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_7", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_8", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_8", cmProperty::VARIABLE,0,0);
|
||||||
cm->DefineProperty("CMAKE_MATCH_9", cmProperty::VARIABLE,0,0);
|
cm->DefineProperty("CMAKE_MATCH_9", cmProperty::VARIABLE,0,0);
|
||||||
|
|
||||||
cm->DefineProperty("CMAKE_<LANG>_COMPILER_ARG1",
|
cm->DefineProperty("CMAKE_<LANG>_COMPILER_ARG1",
|
||||||
cmProperty::VARIABLE,0,0);
|
cmProperty::VARIABLE,0,0);
|
||||||
|
|
|
@ -67,8 +67,11 @@ void cmInstallGenerator
|
||||||
for(std::vector<std::string>::const_iterator fi = files.begin();
|
for(std::vector<std::string>::const_iterator fi = files.begin();
|
||||||
fi != files.end(); ++fi)
|
fi != files.end(); ++fi)
|
||||||
{
|
{
|
||||||
if (fi!=files.begin()) os << ";";
|
if (fi!=files.begin())
|
||||||
os << dest << cmSystemTools::ConvertToOutputPath("/");
|
{
|
||||||
|
os << ";";
|
||||||
|
}
|
||||||
|
os << dest << "/";
|
||||||
if (rename && *rename)
|
if (rename && *rename)
|
||||||
{
|
{
|
||||||
os << rename;
|
os << rename;
|
||||||
|
|
|
@ -367,7 +367,7 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
|
||||||
// No error.
|
// No error.
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string name = lff.Name;
|
std::string name = lff.Name;
|
||||||
|
|
||||||
// Place this call on the call stack.
|
// Place this call on the call stack.
|
||||||
|
@ -391,7 +391,7 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
|
||||||
cmOStringStream msg;
|
cmOStringStream msg;
|
||||||
msg << lff.FilePath << "(" << lff.Line << "): ";
|
msg << lff.FilePath << "(" << lff.Line << "): ";
|
||||||
msg << lff.Name << "(";
|
msg << lff.Name << "(";
|
||||||
for(std::vector<cmListFileArgument>::const_iterator i =
|
for(std::vector<cmListFileArgument>::const_iterator i =
|
||||||
lff.Arguments.begin(); i != lff.Arguments.end(); ++i)
|
lff.Arguments.begin(); i != lff.Arguments.end(); ++i)
|
||||||
{
|
{
|
||||||
msg << i->Value;
|
msg << i->Value;
|
||||||
|
@ -626,6 +626,9 @@ bool cmMakefile::ReadListFile(const char* filename_in,
|
||||||
|
|
||||||
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", filenametoread);
|
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", filenametoread);
|
||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
||||||
|
this->AddDefinition("CMAKE_CURRENT_LIST_DIR",
|
||||||
|
cmSystemTools::GetFilenamePath(filenametoread).c_str());
|
||||||
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
||||||
|
|
||||||
// try to see if the list file is the top most
|
// try to see if the list file is the top most
|
||||||
// list file for a project, and if it is, then it
|
// list file for a project, and if it is, then it
|
||||||
|
@ -661,6 +664,9 @@ bool cmMakefile::ReadListFile(const char* filename_in,
|
||||||
this->MarkVariableAsUsed("CMAKE_PARENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_PARENT_LIST_FILE");
|
||||||
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", currentFile.c_str());
|
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", currentFile.c_str());
|
||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
||||||
|
this->AddDefinition("CMAKE_CURRENT_LIST_DIR",
|
||||||
|
cmSystemTools::GetFilenamePath(currentFile).c_str());
|
||||||
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// add this list file to the list of dependencies
|
// add this list file to the list of dependencies
|
||||||
|
@ -703,6 +709,9 @@ bool cmMakefile::ReadListFile(const char* filename_in,
|
||||||
this->MarkVariableAsUsed("CMAKE_PARENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_PARENT_LIST_FILE");
|
||||||
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", currentFile.c_str());
|
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", currentFile.c_str());
|
||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
||||||
|
this->AddDefinition("CMAKE_CURRENT_LIST_DIR",
|
||||||
|
cmSystemTools::GetFilenamePath(currentFile).c_str());
|
||||||
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
||||||
|
|
||||||
// pop the listfile off the stack
|
// pop the listfile off the stack
|
||||||
this->ListFileStack.pop_back();
|
this->ListFileStack.pop_back();
|
||||||
|
@ -1854,8 +1863,8 @@ void cmMakefile::AddLibrary(const char* lname, cmTarget::TargetType type,
|
||||||
bool excludeFromAll)
|
bool excludeFromAll)
|
||||||
{
|
{
|
||||||
// wrong type ? default to STATIC
|
// wrong type ? default to STATIC
|
||||||
if ( (type != cmTarget::STATIC_LIBRARY)
|
if ( (type != cmTarget::STATIC_LIBRARY)
|
||||||
&& (type != cmTarget::SHARED_LIBRARY)
|
&& (type != cmTarget::SHARED_LIBRARY)
|
||||||
&& (type != cmTarget::MODULE_LIBRARY))
|
&& (type != cmTarget::MODULE_LIBRARY))
|
||||||
{
|
{
|
||||||
type = cmTarget::STATIC_LIBRARY;
|
type = cmTarget::STATIC_LIBRARY;
|
||||||
|
@ -2441,14 +2450,14 @@ void cmMakefile::AddDefaultDefinitions()
|
||||||
{
|
{
|
||||||
/* Up to CMake 2.4 here only WIN32, UNIX and APPLE were set.
|
/* Up to CMake 2.4 here only WIN32, UNIX and APPLE were set.
|
||||||
With CMake must separate between target and host platform. In most cases
|
With CMake must separate between target and host platform. In most cases
|
||||||
the tests for WIN32, UNIX and APPLE will be for the target system, so an
|
the tests for WIN32, UNIX and APPLE will be for the target system, so an
|
||||||
additional set of variables for the host system is required ->
|
additional set of variables for the host system is required ->
|
||||||
CMAKE_HOST_WIN32, CMAKE_HOST_UNIX, CMAKE_HOST_APPLE.
|
CMAKE_HOST_WIN32, CMAKE_HOST_UNIX, CMAKE_HOST_APPLE.
|
||||||
WIN32, UNIX and APPLE are now set in the platform files in
|
WIN32, UNIX and APPLE are now set in the platform files in
|
||||||
Modules/Platforms/.
|
Modules/Platforms/.
|
||||||
To keep cmake scripts (-P) and custom language and compiler modules
|
To keep cmake scripts (-P) and custom language and compiler modules
|
||||||
working, these variables are still also set here in this place, but they
|
working, these variables are still also set here in this place, but they
|
||||||
will be reset in CMakeSystemSpecificInformation.cmake before the platform
|
will be reset in CMakeSystemSpecificInformation.cmake before the platform
|
||||||
files are executed. */
|
files are executed. */
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
this->AddDefinition("WIN32", "1");
|
this->AddDefinition("WIN32", "1");
|
||||||
|
@ -2759,13 +2768,13 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::EnableLanguage(std::vector<std::string> const & lang,
|
void cmMakefile::EnableLanguage(std::vector<std::string> const & lang,
|
||||||
bool optional)
|
bool optional)
|
||||||
{
|
{
|
||||||
this->AddDefinition("CMAKE_CFG_INTDIR",
|
this->AddDefinition("CMAKE_CFG_INTDIR",
|
||||||
this->LocalGenerator->GetGlobalGenerator()
|
this->LocalGenerator->GetGlobalGenerator()
|
||||||
->GetCMakeCFGInitDirectory());
|
->GetCMakeCFGInitDirectory());
|
||||||
this->LocalGenerator->GetGlobalGenerator()->EnableLanguage(lang, this,
|
this->LocalGenerator->GetGlobalGenerator()->EnableLanguage(lang, this,
|
||||||
optional);
|
optional);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2846,7 +2855,7 @@ int cmMakefile::TryCompile(const char *srcdir, const char *bindir,
|
||||||
{
|
{
|
||||||
cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
|
cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
|
||||||
"FALSE", "", cmCacheManager::INTERNAL);
|
"FALSE", "", cmCacheManager::INTERNAL);
|
||||||
}
|
}
|
||||||
if (cm.Configure() != 0)
|
if (cm.Configure() != 0)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(
|
cmSystemTools::Error(
|
||||||
|
@ -3134,7 +3143,7 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle special props
|
// handle special props
|
||||||
std::string propname = prop;
|
std::string propname = prop;
|
||||||
if ( propname == "INCLUDE_DIRECTORIES" )
|
if ( propname == "INCLUDE_DIRECTORIES" )
|
||||||
|
@ -3158,7 +3167,7 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
|
||||||
this->SetLinkDirectories(varArgsExpanded);
|
this->SetLinkDirectories(varArgsExpanded);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( propname == "INCLUDE_REGULAR_EXPRESSION" )
|
if ( propname == "INCLUDE_REGULAR_EXPRESSION" )
|
||||||
{
|
{
|
||||||
this->SetIncludeRegularExpression(value);
|
this->SetIncludeRegularExpression(value);
|
||||||
|
@ -3168,7 +3177,7 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
|
||||||
if ( propname == "ADDITIONAL_MAKE_CLEAN_FILES" )
|
if ( propname == "ADDITIONAL_MAKE_CLEAN_FILES" )
|
||||||
{
|
{
|
||||||
// This property is not inherrited
|
// This property is not inherrited
|
||||||
if ( strcmp(this->GetCurrentDirectory(),
|
if ( strcmp(this->GetCurrentDirectory(),
|
||||||
this->GetStartDirectory()) != 0 )
|
this->GetStartDirectory()) != 0 )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -3289,14 +3298,14 @@ const char *cmMakefile::GetProperty(const char* prop,
|
||||||
return output.c_str();
|
return output.c_str();
|
||||||
}
|
}
|
||||||
else if (!strcmp("DEFINITIONS",prop))
|
else if (!strcmp("DEFINITIONS",prop))
|
||||||
{
|
{
|
||||||
output += this->DefineFlagsOrig;
|
output += this->DefineFlagsOrig;
|
||||||
return output.c_str();
|
return output.c_str();
|
||||||
}
|
}
|
||||||
else if (!strcmp("INCLUDE_DIRECTORIES",prop) )
|
else if (!strcmp("INCLUDE_DIRECTORIES",prop) )
|
||||||
{
|
{
|
||||||
cmOStringStream str;
|
cmOStringStream str;
|
||||||
for (std::vector<std::string>::const_iterator
|
for (std::vector<std::string>::const_iterator
|
||||||
it = this->GetIncludeDirectories().begin();
|
it = this->GetIncludeDirectories().begin();
|
||||||
it != this->GetIncludeDirectories().end();
|
it != this->GetIncludeDirectories().end();
|
||||||
++ it )
|
++ it )
|
||||||
|
@ -3313,7 +3322,7 @@ const char *cmMakefile::GetProperty(const char* prop,
|
||||||
else if (!strcmp("LINK_DIRECTORIES",prop))
|
else if (!strcmp("LINK_DIRECTORIES",prop))
|
||||||
{
|
{
|
||||||
cmOStringStream str;
|
cmOStringStream str;
|
||||||
for (std::vector<std::string>::const_iterator
|
for (std::vector<std::string>::const_iterator
|
||||||
it = this->GetLinkDirectories().begin();
|
it = this->GetLinkDirectories().begin();
|
||||||
it != this->GetLinkDirectories().end();
|
it != this->GetLinkDirectories().end();
|
||||||
++ it )
|
++ it )
|
||||||
|
@ -3770,7 +3779,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
|
||||||
msg = e.str();
|
msg = e.str();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// target names must be globally unique
|
// target names must be globally unique
|
||||||
switch (this->GetPolicyStatus(cmPolicies::CMP0002))
|
switch (this->GetPolicyStatus(cmPolicies::CMP0002))
|
||||||
|
@ -3789,7 +3798,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
|
||||||
case cmPolicies::NEW:
|
case cmPolicies::NEW:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The conflict is with a non-imported target.
|
// The conflict is with a non-imported target.
|
||||||
// Allow this if the user has requested support.
|
// Allow this if the user has requested support.
|
||||||
cmake* cm =
|
cmake* cm =
|
||||||
|
@ -3938,7 +3947,7 @@ cmMakefile::GetPolicyStatusInternal(cmPolicies::PolicyID id)
|
||||||
return this->GetPolicies()->GetPolicyStatus(id);
|
return this->GetPolicies()->GetPolicyStatus(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmMakefile::SetPolicy(const char *id,
|
bool cmMakefile::SetPolicy(const char *id,
|
||||||
cmPolicies::PolicyStatus status)
|
cmPolicies::PolicyStatus status)
|
||||||
{
|
{
|
||||||
cmPolicies::PolicyID pid;
|
cmPolicies::PolicyID pid;
|
||||||
|
@ -4068,7 +4077,7 @@ bool cmMakefile::SetPolicyVersion(const char *version)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmPolicies *cmMakefile::GetPolicies()
|
cmPolicies *cmMakefile::GetPolicies()
|
||||||
{
|
{
|
||||||
if (!this->GetCMakeInstance())
|
if (!this->GetCMakeInstance())
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -767,7 +767,7 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
|
||||||
hasFlags = true;
|
hasFlags = true;
|
||||||
this->WriteString("<ObjectFileName>", 3);
|
this->WriteString("<ObjectFileName>", 3);
|
||||||
(*this->BuildFileStream )
|
(*this->BuildFileStream )
|
||||||
<< "$(Configuration)/" << objectName << "</ObjectFileName>\n";
|
<< "$(IntDir)/" << objectName << "</ObjectFileName>\n";
|
||||||
}
|
}
|
||||||
std::vector<std::string> *configs =
|
std::vector<std::string> *configs =
|
||||||
static_cast<cmGlobalVisualStudio7Generator *>
|
static_cast<cmGlobalVisualStudio7Generator *>
|
||||||
|
|
|
@ -18,4 +18,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2010)
|
||||||
SET(KWSYS_DATE_STAMP_MONTH 09)
|
SET(KWSYS_DATE_STAMP_MONTH 09)
|
||||||
|
|
||||||
# KWSys version date day component. Format is DD.
|
# KWSys version date day component. Format is DD.
|
||||||
SET(KWSYS_DATE_STAMP_DAY 23)
|
SET(KWSYS_DATE_STAMP_DAY 28)
|
||||||
|
|
|
@ -35,3 +35,7 @@ if(NOT "${fileOne}" STREQUAL "${fileTwo}")
|
||||||
message(FATAL_ERROR "Wrong CMake.cmake was included: \"${fileOne}\" expected \"${fileTwo}\"")
|
message(FATAL_ERROR "Wrong CMake.cmake was included: \"${fileOne}\" expected \"${fileTwo}\"")
|
||||||
endif(NOT "${fileOne}" STREQUAL "${fileTwo}")
|
endif(NOT "${fileOne}" STREQUAL "${fileTwo}")
|
||||||
|
|
||||||
|
# Check that CMAKE_CURRENT_LIST_DIR is working:
|
||||||
|
# Needs to be a file in the build tree, which is correct cmake script
|
||||||
|
# but doesn't do a lot, if possible only set() commands:
|
||||||
|
include(${CMAKE_CURRENT_LIST_DIR}/../../CTestCustom.cmake)
|
||||||
|
|
Loading…
Reference in New Issue