Remove trailing whitespace from most CMake and C/C++ code
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
This commit is contained in:
parent
be9db98946
commit
7bbaa4283d
|
@ -70,12 +70,12 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
|
|
||||||
IF(NOT DEFINED CPACK_PACKAGE_FILE_NAME)
|
IF(NOT DEFINED CPACK_PACKAGE_FILE_NAME)
|
||||||
# if the CPACK_PACKAGE_FILE_NAME is not defined by the cache
|
# if the CPACK_PACKAGE_FILE_NAME is not defined by the cache
|
||||||
# default to source package - system, on cygwin system is not
|
# default to source package - system, on cygwin system is not
|
||||||
# needed
|
# needed
|
||||||
IF(CYGWIN)
|
IF(CYGWIN)
|
||||||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}")
|
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}")
|
||||||
ELSE(CYGWIN)
|
ELSE(CYGWIN)
|
||||||
SET(CPACK_PACKAGE_FILE_NAME
|
SET(CPACK_PACKAGE_FILE_NAME
|
||||||
"${CPACK_SOURCE_PACKAGE_FILE_NAME}-${CPACK_SYSTEM_NAME}")
|
"${CPACK_SOURCE_PACKAGE_FILE_NAME}-${CPACK_SYSTEM_NAME}")
|
||||||
ENDIF(CYGWIN)
|
ENDIF(CYGWIN)
|
||||||
ENDIF(NOT DEFINED CPACK_PACKAGE_FILE_NAME)
|
ENDIF(NOT DEFINED CPACK_PACKAGE_FILE_NAME)
|
||||||
|
@ -102,9 +102,9 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
SET(CPACK_CYGWIN_PATCH_NUMBER 1)
|
SET(CPACK_CYGWIN_PATCH_NUMBER 1)
|
||||||
# These files are required by the cmCPackCygwinSourceGenerator and the files
|
# These files are required by the cmCPackCygwinSourceGenerator and the files
|
||||||
# put into the release tar files.
|
# put into the release tar files.
|
||||||
SET(CPACK_CYGWIN_BUILD_SCRIPT
|
SET(CPACK_CYGWIN_BUILD_SCRIPT
|
||||||
"${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.sh")
|
"${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.sh")
|
||||||
SET(CPACK_CYGWIN_PATCH_FILE
|
SET(CPACK_CYGWIN_PATCH_FILE
|
||||||
"${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.patch")
|
"${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.patch")
|
||||||
# include the sub directory cmake file for cygwin that
|
# include the sub directory cmake file for cygwin that
|
||||||
# configures some files and adds some install targets
|
# configures some files and adds some install targets
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is configured at cmake time, and loaded at cpack time.
|
# This file is configured at cmake time, and loaded at cpack time.
|
||||||
# To pass variables to cpack from cmake, they must be configured
|
# To pass variables to cpack from cmake, they must be configured
|
||||||
# in this file.
|
# in this file.
|
||||||
|
|
||||||
if(CPACK_GENERATOR MATCHES "NSIS")
|
if(CPACK_GENERATOR MATCHES "NSIS")
|
||||||
SET(CPACK_NSIS_INSTALL_ROOT "@CPACK_NSIS_INSTALL_ROOT@")
|
SET(CPACK_NSIS_INSTALL_ROOT "@CPACK_NSIS_INSTALL_ROOT@")
|
||||||
|
@ -45,9 +45,9 @@ if(CPACK_GENERATOR MATCHES "CygwinSource")
|
||||||
endif(CPACK_GENERATOR MATCHES "CygwinSource")
|
endif(CPACK_GENERATOR MATCHES "CygwinSource")
|
||||||
|
|
||||||
if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
||||||
if(CMAKE_PACKAGE_QTGUI)
|
if(CMAKE_PACKAGE_QTGUI)
|
||||||
set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
|
set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
|
||||||
else(CMAKE_PACKAGE_QTGUI)
|
else(CMAKE_PACKAGE_QTGUI)
|
||||||
set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr")
|
set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr")
|
||||||
endif(CMAKE_PACKAGE_QTGUI)
|
endif(CMAKE_PACKAGE_QTGUI)
|
||||||
endif("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
endif("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
||||||
|
|
|
@ -114,11 +114,11 @@ MACRO(CMAKE_SETUP_TESTING)
|
||||||
IF (NOT DART_ROOT)
|
IF (NOT DART_ROOT)
|
||||||
SET(MAKEPROGRAM ${CMAKE_MAKE_PROGRAM})
|
SET(MAKEPROGRAM ${CMAKE_MAKE_PROGRAM})
|
||||||
ENDIF (NOT DART_ROOT)
|
ENDIF (NOT DART_ROOT)
|
||||||
|
|
||||||
IF(BUILD_TESTING)
|
IF(BUILD_TESTING)
|
||||||
SET(CMAKE_TEST_GENERATOR "" CACHE STRING
|
SET(CMAKE_TEST_GENERATOR "" CACHE STRING
|
||||||
"Generator used when running tests")
|
"Generator used when running tests")
|
||||||
SET(CMAKE_TEST_MAKEPROGRAM "" CACHE FILEPATH
|
SET(CMAKE_TEST_MAKEPROGRAM "" CACHE FILEPATH
|
||||||
"Generator used when running tests")
|
"Generator used when running tests")
|
||||||
IF(NOT CMAKE_TEST_GENERATOR)
|
IF(NOT CMAKE_TEST_GENERATOR)
|
||||||
SET(CMAKE_TEST_GENERATOR "${CMAKE_GENERATOR}")
|
SET(CMAKE_TEST_GENERATOR "${CMAKE_GENERATOR}")
|
||||||
|
@ -126,7 +126,7 @@ MACRO(CMAKE_SETUP_TESTING)
|
||||||
ELSE(NOT CMAKE_TEST_GENERATOR)
|
ELSE(NOT CMAKE_TEST_GENERATOR)
|
||||||
SET(CMAKE_TEST_DIFFERENT_GENERATOR TRUE)
|
SET(CMAKE_TEST_DIFFERENT_GENERATOR TRUE)
|
||||||
ENDIF(NOT CMAKE_TEST_GENERATOR)
|
ENDIF(NOT CMAKE_TEST_GENERATOR)
|
||||||
|
|
||||||
# Are we testing with the MSVC compiler?
|
# Are we testing with the MSVC compiler?
|
||||||
SET(CMAKE_TEST_MSVC 0)
|
SET(CMAKE_TEST_MSVC 0)
|
||||||
IF(MSVC AND NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
IF(MSVC AND NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||||
|
@ -138,14 +138,14 @@ MACRO(CMAKE_SETUP_TESTING)
|
||||||
ENDIF("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
ENDIF("${CMAKE_TEST_GENERATOR}" MATCHES "NMake" OR
|
||||||
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio")
|
||||||
ENDIF(MSVC AND NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
ENDIF(MSVC AND NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||||
|
|
||||||
SET(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
SET(CMAKE_TEST_SYSTEM_LIBRARIES 0)
|
||||||
FOREACH(util CURL EXPAT XMLRPC ZLIB)
|
FOREACH(util CURL EXPAT XMLRPC ZLIB)
|
||||||
IF(CMAKE_USE_SYSTEM_${util})
|
IF(CMAKE_USE_SYSTEM_${util})
|
||||||
SET(CMAKE_TEST_SYSTEM_LIBRARIES 1)
|
SET(CMAKE_TEST_SYSTEM_LIBRARIES 1)
|
||||||
ENDIF(CMAKE_USE_SYSTEM_${util})
|
ENDIF(CMAKE_USE_SYSTEM_${util})
|
||||||
ENDFOREACH(util)
|
ENDFOREACH(util)
|
||||||
|
|
||||||
# This variable is set by cmake, however to
|
# This variable is set by cmake, however to
|
||||||
# test cmake we want to make sure that
|
# test cmake we want to make sure that
|
||||||
# the ctest from this cmake is used for testing
|
# the ctest from this cmake is used for testing
|
||||||
|
@ -169,7 +169,7 @@ MACRO(CMAKE_SETUP_TESTING)
|
||||||
CONFIGURE_FILE(${CMake_SOURCE_DIR}/CTestCustom.ctest.in
|
CONFIGURE_FILE(${CMake_SOURCE_DIR}/CTestCustom.ctest.in
|
||||||
${CMake_BINARY_DIR}/CTestCustom.ctest @ONLY)
|
${CMake_BINARY_DIR}/CTestCustom.ctest @ONLY)
|
||||||
IF(BUILD_TESTING AND DART_ROOT)
|
IF(BUILD_TESTING AND DART_ROOT)
|
||||||
CONFIGURE_FILE(${CMake_SOURCE_DIR}/CMakeLogo.gif
|
CONFIGURE_FILE(${CMake_SOURCE_DIR}/CMakeLogo.gif
|
||||||
${CMake_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
|
${CMake_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
|
||||||
ENDIF(BUILD_TESTING AND DART_ROOT)
|
ENDIF(BUILD_TESTING AND DART_ROOT)
|
||||||
MARK_AS_ADVANCED(DART_ROOT)
|
MARK_AS_ADVANCED(DART_ROOT)
|
||||||
|
@ -253,18 +253,18 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
${CMake_BINARY_DIR}/Utilities
|
${CMake_BINARY_DIR}/Utilities
|
||||||
${CMake_SOURCE_DIR}/Utilities
|
${CMake_SOURCE_DIR}/Utilities
|
||||||
)
|
)
|
||||||
|
|
||||||
# check for the use of system libraries versus builtin ones
|
# check for the use of system libraries versus builtin ones
|
||||||
# (a macro defined in this file)
|
# (a macro defined in this file)
|
||||||
CMAKE_HANDLE_SYSTEM_LIBRARIES()
|
CMAKE_HANDLE_SYSTEM_LIBRARIES()
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Build zlib library for Curl, CMake, and CTest.
|
# Build zlib library for Curl, CMake, and CTest.
|
||||||
SET(CMAKE_ZLIB_HEADER "cm_zlib.h")
|
SET(CMAKE_ZLIB_HEADER "cm_zlib.h")
|
||||||
IF(CMAKE_USE_SYSTEM_ZLIB)
|
IF(CMAKE_USE_SYSTEM_ZLIB)
|
||||||
FIND_PACKAGE(ZLIB)
|
FIND_PACKAGE(ZLIB)
|
||||||
IF(NOT ZLIB_FOUND)
|
IF(NOT ZLIB_FOUND)
|
||||||
MESSAGE(FATAL_ERROR
|
MESSAGE(FATAL_ERROR
|
||||||
"CMAKE_USE_SYSTEM_ZLIB is ON but a zlib is not found!")
|
"CMAKE_USE_SYSTEM_ZLIB is ON but a zlib is not found!")
|
||||||
ENDIF(NOT ZLIB_FOUND)
|
ENDIF(NOT ZLIB_FOUND)
|
||||||
SET(CMAKE_ZLIB_INCLUDES ${ZLIB_INCLUDE_DIR})
|
SET(CMAKE_ZLIB_INCLUDES ${ZLIB_INCLUDE_DIR})
|
||||||
|
@ -275,13 +275,13 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
ADD_SUBDIRECTORY(Utilities/cmzlib)
|
ADD_SUBDIRECTORY(Utilities/cmzlib)
|
||||||
CMAKE_SET_TARGET_FOLDER(cmzlib "Utilities/3rdParty")
|
CMAKE_SET_TARGET_FOLDER(cmzlib "Utilities/3rdParty")
|
||||||
ENDIF(CMAKE_USE_SYSTEM_ZLIB)
|
ENDIF(CMAKE_USE_SYSTEM_ZLIB)
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Build Curl library for CTest.
|
# Build Curl library for CTest.
|
||||||
IF(CMAKE_USE_SYSTEM_CURL)
|
IF(CMAKE_USE_SYSTEM_CURL)
|
||||||
FIND_PACKAGE(CURL)
|
FIND_PACKAGE(CURL)
|
||||||
IF(NOT CURL_FOUND)
|
IF(NOT CURL_FOUND)
|
||||||
MESSAGE(FATAL_ERROR
|
MESSAGE(FATAL_ERROR
|
||||||
"CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!")
|
"CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!")
|
||||||
ENDIF(NOT CURL_FOUND)
|
ENDIF(NOT CURL_FOUND)
|
||||||
SET(CMAKE_CURL_INCLUDES ${CURL_INCLUDE_DIRS})
|
SET(CMAKE_CURL_INCLUDES ${CURL_INCLUDE_DIRS})
|
||||||
|
@ -306,7 +306,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Build Compress library for CTest.
|
# Build Compress library for CTest.
|
||||||
SET(CMAKE_COMPRESS_INCLUDES
|
SET(CMAKE_COMPRESS_INCLUDES
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/Utilities/cmcompress")
|
"${CMAKE_CURRENT_BINARY_DIR}/Utilities/cmcompress")
|
||||||
SET(CMAKE_COMPRESS_LIBRARIES "cmcompress")
|
SET(CMAKE_COMPRESS_LIBRARIES "cmcompress")
|
||||||
ADD_SUBDIRECTORY(Utilities/cmcompress)
|
ADD_SUBDIRECTORY(Utilities/cmcompress)
|
||||||
|
@ -314,7 +314,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
IF(CMAKE_USE_SYSTEM_BZIP2)
|
IF(CMAKE_USE_SYSTEM_BZIP2)
|
||||||
FIND_PACKAGE(BZip2)
|
FIND_PACKAGE(BZip2)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(BZIP2_INCLUDE_DIR
|
SET(BZIP2_INCLUDE_DIR
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/Utilities/cmbzip2")
|
"${CMAKE_CURRENT_SOURCE_DIR}/Utilities/cmbzip2")
|
||||||
SET(BZIP2_LIBRARIES cmbzip2)
|
SET(BZIP2_LIBRARIES cmbzip2)
|
||||||
ADD_SUBDIRECTORY(Utilities/cmbzip2)
|
ADD_SUBDIRECTORY(Utilities/cmbzip2)
|
||||||
|
@ -364,7 +364,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
ADD_SUBDIRECTORY(Utilities/cmexpat)
|
ADD_SUBDIRECTORY(Utilities/cmexpat)
|
||||||
CMAKE_SET_TARGET_FOLDER(cmexpat "Utilities/3rdParty")
|
CMAKE_SET_TARGET_FOLDER(cmexpat "Utilities/3rdParty")
|
||||||
ENDIF(CMAKE_USE_SYSTEM_EXPAT)
|
ENDIF(CMAKE_USE_SYSTEM_EXPAT)
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Build XMLRPC library for CMake and CTest.
|
# Build XMLRPC library for CMake and CTest.
|
||||||
IF(CTEST_USE_XMLRPC)
|
IF(CTEST_USE_XMLRPC)
|
||||||
|
@ -376,7 +376,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
SET(CMAKE_XMLRPC_INCLUDES ${XMLRPC_INCLUDE_DIRS})
|
SET(CMAKE_XMLRPC_INCLUDES ${XMLRPC_INCLUDE_DIRS})
|
||||||
SET(CMAKE_XMLRPC_LIBRARIES ${XMLRPC_LIBRARIES})
|
SET(CMAKE_XMLRPC_LIBRARIES ${XMLRPC_LIBRARIES})
|
||||||
ENDIF(CTEST_USE_XMLRPC)
|
ENDIF(CTEST_USE_XMLRPC)
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Use curses?
|
# Use curses?
|
||||||
IF (UNIX)
|
IF (UNIX)
|
||||||
|
@ -454,7 +454,7 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES
|
||||||
# where to write the resulting executables and libraries
|
# where to write the resulting executables and libraries
|
||||||
SET(BUILD_SHARED_LIBS OFF)
|
SET(BUILD_SHARED_LIBS OFF)
|
||||||
SET(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL "No configurable exe dir.")
|
SET(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL "No configurable exe dir.")
|
||||||
SET(LIBRARY_OUTPUT_PATH "" CACHE INTERNAL
|
SET(LIBRARY_OUTPUT_PATH "" CACHE INTERNAL
|
||||||
"Where to put the libraries for CMake")
|
"Where to put the libraries for CMake")
|
||||||
|
|
||||||
# The CMake executables usually do not need any rpath to run in the build or
|
# The CMake executables usually do not need any rpath to run in the build or
|
||||||
|
@ -511,12 +511,12 @@ IF("x${CMAKE_TESTS_CDASH_SERVER}" STREQUAL "x")
|
||||||
SET(CMAKE_TESTS_CDASH_SERVER "http://www.cdash.org/CDash")
|
SET(CMAKE_TESTS_CDASH_SERVER "http://www.cdash.org/CDash")
|
||||||
ENDIF("x${CMAKE_TESTS_CDASH_SERVER}" STREQUAL "x")
|
ENDIF("x${CMAKE_TESTS_CDASH_SERVER}" STREQUAL "x")
|
||||||
|
|
||||||
# build the utilities (a macro defined in this file)
|
# build the utilities (a macro defined in this file)
|
||||||
CMAKE_BUILD_UTILITIES()
|
CMAKE_BUILD_UTILITIES()
|
||||||
|
|
||||||
# On NetBSD ncurses is required, since curses doesn't have the wsyncup()
|
# On NetBSD ncurses is required, since curses doesn't have the wsyncup()
|
||||||
# function. ncurses is installed via pkgsrc, so the library is in /usr/pkg/lib,
|
# function. ncurses is installed via pkgsrc, so the library is in /usr/pkg/lib,
|
||||||
# which isn't in the default linker search path. So without RPATH ccmake
|
# which isn't in the default linker search path. So without RPATH ccmake
|
||||||
# doesn't run and the build doesn't succeed since ccmake is executed for
|
# doesn't run and the build doesn't succeed since ccmake is executed for
|
||||||
# generating the documentation.
|
# generating the documentation.
|
||||||
IF(BUILD_CursesDialog)
|
IF(BUILD_CursesDialog)
|
||||||
|
@ -539,10 +539,10 @@ IF(BUILD_QtDialog)
|
||||||
IF(NOT "${ENDCH}" STREQUAL "/")
|
IF(NOT "${ENDCH}" STREQUAL "/")
|
||||||
SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
|
SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
|
||||||
ENDIF(NOT "${ENDCH}" STREQUAL "/")
|
ENDIF(NOT "${ENDCH}" STREQUAL "/")
|
||||||
SET(CMAKE_INSTALL_PREFIX
|
SET(CMAKE_INSTALL_PREFIX
|
||||||
"${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents")
|
"${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents")
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
SET(QT_NEED_RPATH FALSE)
|
SET(QT_NEED_RPATH FALSE)
|
||||||
IF(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64")
|
IF(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64")
|
||||||
SET(QT_NEED_RPATH TRUE)
|
SET(QT_NEED_RPATH TRUE)
|
||||||
|
@ -551,7 +551,7 @@ ENDIF(BUILD_QtDialog)
|
||||||
|
|
||||||
|
|
||||||
# The same might be true on other systems for other libraries.
|
# The same might be true on other systems for other libraries.
|
||||||
# Then only enable RPATH if we have are building at least with cmake 2.4,
|
# Then only enable RPATH if we have are building at least with cmake 2.4,
|
||||||
# since this one has much better RPATH features than cmake 2.2.
|
# since this one has much better RPATH features than cmake 2.2.
|
||||||
# The executables are then built with the RPATH for the libraries outside
|
# The executables are then built with the RPATH for the libraries outside
|
||||||
# the build tree, which is both the build and the install RPATH.
|
# the build tree, which is both the build and the install RPATH.
|
||||||
|
@ -583,7 +583,7 @@ CONFIGURE_FILE(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf"
|
"${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf"
|
||||||
COPYONLY)
|
COPYONLY)
|
||||||
|
|
||||||
OPTION(CMAKE_STRICT
|
OPTION(CMAKE_STRICT
|
||||||
"Perform strict testing to record property and variable access. Can be used to report any undefined properties or variables" OFF)
|
"Perform strict testing to record property and variable access. Can be used to report any undefined properties or variables" OFF)
|
||||||
MARK_AS_ADVANCED(CMAKE_STRICT)
|
MARK_AS_ADVANCED(CMAKE_STRICT)
|
||||||
|
|
||||||
|
@ -600,7 +600,7 @@ CMAKE_SET_TARGET_FOLDER(cmw9xcom "Utilities/Win9xCompat")
|
||||||
CMAKE_SET_TARGET_FOLDER(documentation "Documentation")
|
CMAKE_SET_TARGET_FOLDER(documentation "Documentation")
|
||||||
|
|
||||||
# add a test
|
# add a test
|
||||||
ADD_TEST(SystemInformationNew "${CMAKE_CMAKE_COMMAND}"
|
ADD_TEST(SystemInformationNew "${CMAKE_CMAKE_COMMAND}"
|
||||||
--system-information -G "${CMAKE_TEST_GENERATOR}" )
|
--system-information -G "${CMAKE_TEST_GENERATOR}" )
|
||||||
|
|
||||||
# Install license file as it requires.
|
# Install license file as it requires.
|
||||||
|
|
|
@ -19,7 +19,7 @@ set(CTEST_DROP_SITE_CDASH TRUE)
|
||||||
set(CTEST_CDASH_VERSION "1.6")
|
set(CTEST_CDASH_VERSION "1.6")
|
||||||
set(CTEST_CDASH_QUERY_VERSION TRUE)
|
set(CTEST_CDASH_QUERY_VERSION TRUE)
|
||||||
|
|
||||||
# use old trigger stuff so that cmake 2.4 and below will not
|
# use old trigger stuff so that cmake 2.4 and below will not
|
||||||
# get errors on trigger
|
# get errors on trigger
|
||||||
SET (TRIGGER_SITE
|
SET (TRIGGER_SITE
|
||||||
"http://public.kitware.com/cgi-bin/Submit-CMake-TestingResults.cgi")
|
"http://public.kitware.com/cgi-bin/Submit-CMake-TestingResults.cgi")
|
||||||
|
|
|
@ -27,7 +27,7 @@ ENDIF()
|
||||||
|
|
||||||
# Disable deprecation warnings for standard C functions.
|
# Disable deprecation warnings for standard C functions.
|
||||||
# really only needed for newer versions of VS, but should
|
# really only needed for newer versions of VS, but should
|
||||||
# not hurt other versions, and this will work into the
|
# not hurt other versions, and this will work into the
|
||||||
# future
|
# future
|
||||||
IF(MSVC OR _INTEL_WINDOWS)
|
IF(MSVC OR _INTEL_WINDOWS)
|
||||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||||
|
@ -56,9 +56,9 @@ ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
||||||
|
|
||||||
# use the ansi CXX compile flag for building cmake
|
# use the ansi CXX compile flag for building cmake
|
||||||
IF (CMAKE_ANSI_CXXFLAGS)
|
IF (CMAKE_ANSI_CXXFLAGS)
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
|
||||||
ENDIF (CMAKE_ANSI_CXXFLAGS)
|
ENDIF (CMAKE_ANSI_CXXFLAGS)
|
||||||
|
|
||||||
IF (CMAKE_ANSI_CFLAGS)
|
IF (CMAKE_ANSI_CFLAGS)
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
||||||
ENDIF (CMAKE_ANSI_CFLAGS)
|
ENDIF (CMAKE_ANSI_CFLAGS)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
"
|
"
|
||||||
" Program: CMake - Cross-Platform Makefile Generator
|
" Program: CMake - Cross-Platform Makefile Generator
|
||||||
" Module: $RCSfile$
|
" Module: $RCSfile$
|
||||||
" Language: VIM
|
" Language: VIM
|
||||||
" Date: $Date$
|
" Date: $Date$
|
||||||
" Version: $Revision$
|
" Version: $Revision$
|
||||||
"
|
"
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
;; cmake executable variable used to run cmake --help-command
|
;; cmake executable variable used to run cmake --help-command
|
||||||
;; on commands in cmake-mode
|
;; on commands in cmake-mode
|
||||||
;;
|
;;
|
||||||
;; cmake-command-help Written by James Bigler
|
;; cmake-command-help Written by James Bigler
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(defcustom cmake-mode-cmake-executable "cmake"
|
(defcustom cmake-mode-cmake-executable "cmake"
|
||||||
|
@ -191,11 +191,11 @@ the indentation. Otherwise it retains the same position on the line"
|
||||||
(setq save-point (point))
|
(setq save-point (point))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t)
|
(while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t)
|
||||||
(replace-match
|
(replace-match
|
||||||
(concat
|
(concat
|
||||||
(match-string 1)
|
(match-string 1)
|
||||||
(downcase (match-string 2))
|
(downcase (match-string 2))
|
||||||
(match-string 3))
|
(match-string 3))
|
||||||
t))
|
t))
|
||||||
(goto-char save-point)
|
(goto-char save-point)
|
||||||
)
|
)
|
||||||
|
|
|
@ -36,9 +36,9 @@ syn region cmakeVariableValue start=/\${/ end=/}/
|
||||||
\ contained oneline contains=CONTAINED,cmakeTodo
|
\ contained oneline contains=CONTAINED,cmakeTodo
|
||||||
syn region cmakeEnvironment start=/\$ENV{/ end=/}/
|
syn region cmakeEnvironment start=/\$ENV{/ end=/}/
|
||||||
\ contained oneline contains=CONTAINED,cmakeTodo
|
\ contained oneline contains=CONTAINED,cmakeTodo
|
||||||
syn region cmakeString start=/"/ end=/"/
|
syn region cmakeString start=/"/ end=/"/
|
||||||
\ contains=CONTAINED,cmakeTodo,cmakeOperators
|
\ contains=CONTAINED,cmakeTodo,cmakeOperators
|
||||||
syn region cmakeArguments start=/(/ end=/)/
|
syn region cmakeArguments start=/(/ end=/)/
|
||||||
\ contains=ALLBUT,cmakeArguments,cmakeTodo
|
\ contains=ALLBUT,cmakeArguments,cmakeTodo
|
||||||
syn keyword cmakeSystemVariables
|
syn keyword cmakeSystemVariables
|
||||||
\ WIN32 UNIX APPLE CYGWIN BORLAND MINGW MSVC MSVC_IDE MSVC60 MSVC70 MSVC71 MSVC80 MSVC90
|
\ WIN32 UNIX APPLE CYGWIN BORLAND MINGW MSVC MSVC_IDE MSVC60 MSVC70 MSVC71 MSVC80 MSVC90
|
||||||
|
@ -49,11 +49,11 @@ syn keyword cmakeDeprecated ABSTRACT_FILES BUILD_NAME SOURCE_FILES SOURCE_FILES_
|
||||||
\ nextgroup=cmakeArguments
|
\ nextgroup=cmakeArguments
|
||||||
|
|
||||||
" The keywords are generated as: cmake --help-command-list | tr "\n" " "
|
" The keywords are generated as: cmake --help-command-list | tr "\n" " "
|
||||||
syn keyword cmakeStatement
|
syn keyword cmakeStatement
|
||||||
\ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ELSEIF ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDFUNCTION ENDIF ENDMACRO ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH FUNCTION GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN UNSET USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE
|
\ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ELSEIF ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDFUNCTION ENDIF ENDMACRO ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH FUNCTION GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN UNSET USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE
|
||||||
\ nextgroup=cmakeArguments
|
\ nextgroup=cmakeArguments
|
||||||
syn keyword cmakeTodo
|
syn keyword cmakeTodo
|
||||||
\ TODO FIXME XXX
|
\ TODO FIXME XXX
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
" Define the default highlighting.
|
" Define the default highlighting.
|
||||||
|
|
|
@ -5,6 +5,6 @@ extern Hello hello;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
hello.Print();
|
hello.Print();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CMakeDetermine(LANG)Compiler.cmake -> this should find the compiler for LANG and configure CMake(LANG)Compiler.cmake.in
|
CMakeDetermine(LANG)Compiler.cmake -> this should find the compiler for LANG and configure CMake(LANG)Compiler.cmake.in
|
||||||
|
|
||||||
CMake(LANG)Compiler.cmake.in -> used by CMakeDetermine(LANG)Compiler.cmake
|
CMake(LANG)Compiler.cmake.in -> used by CMakeDetermine(LANG)Compiler.cmake
|
||||||
This file is used to store compiler information and is copied down into try
|
This file is used to store compiler information and is copied down into try
|
||||||
compile directories so that try compiles do not need to re-determine and test the LANG
|
compile directories so that try compiles do not need to re-determine and test the LANG
|
||||||
|
|
||||||
CMakeTest(LANG)Compiler.cmake -> test the compiler and set:
|
CMakeTest(LANG)Compiler.cmake -> test the compiler and set:
|
||||||
|
|
|
@ -67,7 +67,7 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||||
|
|
||||||
INCLUDE (FindThreads)
|
INCLUDE (FindThreads)
|
||||||
|
|
||||||
SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
|
SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
|
||||||
"Thread library used.")
|
"Thread library used.")
|
||||||
|
|
||||||
SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
|
SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
|
||||||
|
@ -79,7 +79,7 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||||
SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
|
SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
|
||||||
"Use HP pthreads.")
|
"Use HP pthreads.")
|
||||||
|
|
||||||
SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC_INIT} CACHE BOOL
|
SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC_INIT} CACHE BOOL
|
||||||
"Use sproc libs.")
|
"Use sproc libs.")
|
||||||
|
|
||||||
IF(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
IF(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# - define a bunch of backwards compatibility variables
|
# - define a bunch of backwards compatibility variables
|
||||||
# CMAKE_ANSI_CXXFLAGS - flag for ansi c++
|
# CMAKE_ANSI_CXXFLAGS - flag for ansi c++
|
||||||
# CMAKE_HAS_ANSI_STRING_STREAM - has <strstream>
|
# CMAKE_HAS_ANSI_STRING_STREAM - has <strstream>
|
||||||
# INCLUDE(TestForANSIStreamHeaders)
|
# INCLUDE(TestForANSIStreamHeaders)
|
||||||
# INCLUDE(CheckIncludeFileCXX)
|
# INCLUDE(CheckIncludeFileCXX)
|
||||||
|
@ -37,7 +37,7 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||||
# if the compiler liked the flag then set CMAKE_ANSI_CXXFLAGS
|
# if the compiler liked the flag then set CMAKE_ANSI_CXXFLAGS
|
||||||
# to the flag
|
# to the flag
|
||||||
IF(CMAKE_CXX_ACCEPTS_FLAGS)
|
IF(CMAKE_CXX_ACCEPTS_FLAGS)
|
||||||
SET(CMAKE_ANSI_CXXFLAGS ${CMAKE_TRY_ANSI_CXX_FLAGS} CACHE INTERNAL
|
SET(CMAKE_ANSI_CXXFLAGS ${CMAKE_TRY_ANSI_CXX_FLAGS} CACHE INTERNAL
|
||||||
"What flags are required by the c++ compiler to make it ansi." )
|
"What flags are required by the c++ compiler to make it ansi." )
|
||||||
ENDIF(CMAKE_CXX_ACCEPTS_FLAGS)
|
ENDIF(CMAKE_CXX_ACCEPTS_FLAGS)
|
||||||
ENDIF( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+")
|
ENDIF( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+")
|
||||||
|
|
|
@ -57,7 +57,7 @@ IF(CMAKE_C_COMPILER_ID)
|
||||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||||
ENDIF(CMAKE_C_COMPILER_ID)
|
ENDIF(CMAKE_C_COMPILER_ID)
|
||||||
IF (NOT _INCLUDED_FILE)
|
IF (NOT _INCLUDED_FILE)
|
||||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}
|
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}
|
||||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||||
ENDIF (NOT _INCLUDED_FILE)
|
ENDIF (NOT _INCLUDED_FILE)
|
||||||
# We specify the compiler information in the system file for some
|
# We specify the compiler information in the system file for some
|
||||||
|
@ -76,7 +76,7 @@ IF(CMAKE_C_SIZEOF_DATA_PTR)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# This should be included before the _INIT variables are
|
# This should be included before the _INIT variables are
|
||||||
# used to initialize the cache. Since the rule variables
|
# used to initialize the cache. Since the rule variables
|
||||||
# have if blocks on them, users can still define them here.
|
# have if blocks on them, users can still define them here.
|
||||||
# But, it should still be after the platform file so changes can
|
# But, it should still be after the platform file so changes can
|
||||||
# be made to those values.
|
# be made to those values.
|
||||||
|
@ -103,7 +103,7 @@ IF(NOT CMAKE_MODULE_EXISTS)
|
||||||
ENDIF(NOT CMAKE_MODULE_EXISTS)
|
ENDIF(NOT CMAKE_MODULE_EXISTS)
|
||||||
|
|
||||||
SET(CMAKE_C_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}")
|
SET(CMAKE_C_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}")
|
||||||
# avoid just having a space as the initial value for the cache
|
# avoid just having a space as the initial value for the cache
|
||||||
IF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
IF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
||||||
SET(CMAKE_C_FLAGS_INIT)
|
SET(CMAKE_C_FLAGS_INIT)
|
||||||
ENDIF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
ENDIF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
||||||
|
@ -113,7 +113,7 @@ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT}" CACHE STRING
|
||||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||||
# default build type is none
|
# default build type is none
|
||||||
IF(NOT CMAKE_NO_BUILD_TYPE)
|
IF(NOT CMAKE_NO_BUILD_TYPE)
|
||||||
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
||||||
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||||
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
||||||
SET (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
|
SET (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
|
||||||
|
@ -151,13 +151,13 @@ INCLUDE(CMakeCommonLanguageInclude)
|
||||||
# <LINK_FLAGS>
|
# <LINK_FLAGS>
|
||||||
|
|
||||||
# C compiler information
|
# C compiler information
|
||||||
# <CMAKE_C_COMPILER>
|
# <CMAKE_C_COMPILER>
|
||||||
# <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS>
|
# <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS>
|
||||||
# <CMAKE_SHARED_MODULE_CREATE_C_FLAGS>
|
# <CMAKE_SHARED_MODULE_CREATE_C_FLAGS>
|
||||||
# <CMAKE_C_LINK_FLAGS>
|
# <CMAKE_C_LINK_FLAGS>
|
||||||
|
|
||||||
# Static library tools
|
# Static library tools
|
||||||
# <CMAKE_AR>
|
# <CMAKE_AR>
|
||||||
# <CMAKE_RANLIB>
|
# <CMAKE_RANLIB>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ IF(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# This should be included before the _INIT variables are
|
# This should be included before the _INIT variables are
|
||||||
# used to initialize the cache. Since the rule variables
|
# used to initialize the cache. Since the rule variables
|
||||||
# have if blocks on them, users can still define them here.
|
# have if blocks on them, users can still define them here.
|
||||||
# But, it should still be after the platform file so changes can
|
# But, it should still be after the platform file so changes can
|
||||||
# be made to those values.
|
# be made to those values.
|
||||||
|
@ -121,7 +121,7 @@ IF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||||
ENDIF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
ENDIF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||||
|
|
||||||
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
||||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
||||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
||||||
|
|
||||||
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP)
|
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP)
|
||||||
|
@ -198,7 +198,7 @@ ENDFOREACH(type)
|
||||||
# use _INIT variables so that this only happens the first time
|
# use _INIT variables so that this only happens the first time
|
||||||
# and you can set these flags in the cmake cache
|
# and you can set these flags in the cmake cache
|
||||||
SET(CMAKE_CXX_FLAGS_INIT "$ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}")
|
SET(CMAKE_CXX_FLAGS_INIT "$ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}")
|
||||||
# avoid just having a space as the initial value for the cache
|
# avoid just having a space as the initial value for the cache
|
||||||
IF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
IF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
||||||
SET(CMAKE_CXX_FLAGS_INIT)
|
SET(CMAKE_CXX_FLAGS_INIT)
|
||||||
ENDIF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
ENDIF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
||||||
|
@ -241,13 +241,13 @@ INCLUDE(CMakeCommonLanguageInclude)
|
||||||
# <LINK_FLAGS>
|
# <LINK_FLAGS>
|
||||||
|
|
||||||
# CXX compiler information
|
# CXX compiler information
|
||||||
# <CMAKE_CXX_COMPILER>
|
# <CMAKE_CXX_COMPILER>
|
||||||
# <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS>
|
# <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS>
|
||||||
# <CMAKE_CXX_SHARED_MODULE_CREATE_FLAGS>
|
# <CMAKE_CXX_SHARED_MODULE_CREATE_FLAGS>
|
||||||
# <CMAKE_CXX_LINK_FLAGS>
|
# <CMAKE_CXX_LINK_FLAGS>
|
||||||
|
|
||||||
# Static library tools
|
# Static library tools
|
||||||
# <CMAKE_AR>
|
# <CMAKE_AR>
|
||||||
# <CMAKE_RANLIB>
|
# <CMAKE_RANLIB>
|
||||||
|
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ ENDIF(NOT CMAKE_CXX_LINK_EXECUTABLE)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
CMAKE_BUILD_TOOL
|
CMAKE_BUILD_TOOL
|
||||||
CMAKE_VERBOSE_MAKEFILE
|
CMAKE_VERBOSE_MAKEFILE
|
||||||
CMAKE_CXX_FLAGS
|
CMAKE_CXX_FLAGS
|
||||||
CMAKE_CXX_FLAGS_RELEASE
|
CMAKE_CXX_FLAGS_RELEASE
|
||||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||||
|
|
|
@ -23,10 +23,10 @@ SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||||
# default build type is none
|
# default build type is none
|
||||||
IF(NOT CMAKE_NO_BUILD_TYPE)
|
IF(NOT CMAKE_NO_BUILD_TYPE)
|
||||||
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
||||||
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||||
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
||||||
|
|
||||||
SET (CMAKE_EXE_LINKER_FLAGS_DEBUG ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
SET (CMAKE_EXE_LINKER_FLAGS_DEBUG ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
||||||
"Flags used by the linker during debug builds.")
|
"Flags used by the linker during debug builds.")
|
||||||
|
|
||||||
|
@ -36,10 +36,10 @@ IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||||
SET (CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
SET (CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||||
"Flags used by the linker during release builds.")
|
"Flags used by the linker during release builds.")
|
||||||
|
|
||||||
SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||||
${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||||
"Flags used by the linker during Release with Debug Info builds.")
|
"Flags used by the linker during Release with Debug Info builds.")
|
||||||
|
|
||||||
SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
||||||
"Flags used by the linker during debug builds.")
|
"Flags used by the linker during debug builds.")
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||||
SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||||
"Flags used by the linker during release builds.")
|
"Flags used by the linker during release builds.")
|
||||||
|
|
||||||
SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||||
${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||||
"Flags used by the linker during Release with Debug Info builds.")
|
"Flags used by the linker during Release with Debug Info builds.")
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||||
SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||||
"Flags used by the linker during release builds.")
|
"Flags used by the linker during release builds.")
|
||||||
|
|
||||||
SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||||
${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||||
"Flags used by the linker during Release with Debug Info builds.")
|
"Flags used by the linker during Release with Debug Info builds.")
|
||||||
|
|
||||||
|
@ -77,13 +77,13 @@ SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||||
SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||||
CACHE STRING "Flags used by the linker during the creation of modules.")
|
CACHE STRING "Flags used by the linker during the creation of modules.")
|
||||||
|
|
||||||
SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL
|
SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL
|
||||||
"What is the target build tool cmake is generating for.")
|
"What is the target build tool cmake is generating for.")
|
||||||
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
CMAKE_BUILD_TOOL
|
CMAKE_BUILD_TOOL
|
||||||
CMAKE_VERBOSE_MAKEFILE
|
CMAKE_VERBOSE_MAKEFILE
|
||||||
|
|
||||||
CMAKE_EXE_LINKER_FLAGS
|
CMAKE_EXE_LINKER_FLAGS
|
||||||
CMAKE_EXE_LINKER_FLAGS_DEBUG
|
CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# determine the compiler to use for Fortran programs
|
# determine the compiler to use for Fortran programs
|
||||||
# NOTE, a generator may set CMAKE_Fortran_COMPILER before
|
# NOTE, a generator may set CMAKE_Fortran_COMPILER before
|
||||||
# loading this file to force a compiler.
|
# loading this file to force a compiler.
|
||||||
# use environment variable FC first if defined by user, next use
|
# use environment variable FC first if defined by user, next use
|
||||||
# the cmake variable CMAKE_GENERATOR_FC which can be defined by a generator
|
# the cmake variable CMAKE_GENERATOR_FC which can be defined by a generator
|
||||||
# as a default compiler
|
# as a default compiler
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
ENDIF(CMAKE_Fortran_FLAGS_ENV_INIT)
|
ENDIF(CMAKE_Fortran_FLAGS_ENV_INIT)
|
||||||
IF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
IF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||||
ELSE(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
ELSE(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable FC:\n$ENV{FC}.")
|
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable FC:\n$ENV{FC}.")
|
||||||
ENDIF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
ENDIF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||||
ENDIF($ENV{FC} MATCHES ".+")
|
ENDIF($ENV{FC} MATCHES ".+")
|
||||||
|
|
||||||
# next try prefer the compiler specified by the generator
|
# next try prefer the compiler specified by the generator
|
||||||
IF(CMAKE_GENERATOR_FC)
|
IF(CMAKE_GENERATOR_FC)
|
||||||
IF(NOT CMAKE_Fortran_COMPILER_INIT)
|
IF(NOT CMAKE_Fortran_COMPILER_INIT)
|
||||||
SET(CMAKE_Fortran_COMPILER_INIT ${CMAKE_GENERATOR_FC})
|
SET(CMAKE_Fortran_COMPILER_INIT ${CMAKE_GENERATOR_FC})
|
||||||
ENDIF(NOT CMAKE_Fortran_COMPILER_INIT)
|
ENDIF(NOT CMAKE_Fortran_COMPILER_INIT)
|
||||||
|
@ -64,7 +64,7 @@ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
# ifc: Intel Fortran 95 compiler for Linux/x86
|
# ifc: Intel Fortran 95 compiler for Linux/x86
|
||||||
# efc: Intel Fortran 95 compiler for IA64
|
# efc: Intel Fortran 95 compiler for IA64
|
||||||
#
|
#
|
||||||
# The order is 95 or newer compilers first, then 90,
|
# The order is 95 or newer compilers first, then 90,
|
||||||
# then 77 or older compilers, gnu is always last in the group,
|
# then 77 or older compilers, gnu is always last in the group,
|
||||||
# so if you paid for a compiler it is picked by default.
|
# so if you paid for a compiler it is picked by default.
|
||||||
SET(CMAKE_Fortran_COMPILER_LIST
|
SET(CMAKE_Fortran_COMPILER_LIST
|
||||||
|
@ -88,7 +88,7 @@ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
ELSE(NOT CMAKE_Fortran_COMPILER)
|
ELSE(NOT CMAKE_Fortran_COMPILER)
|
||||||
# we only get here if CMAKE_Fortran_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
# we only get here if CMAKE_Fortran_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
||||||
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
||||||
# if CMAKE_Fortran_COMPILER is a list of length 2, use the first item as
|
# if CMAKE_Fortran_COMPILER is a list of length 2, use the first item as
|
||||||
# CMAKE_Fortran_COMPILER and the 2nd one as CMAKE_Fortran_COMPILER_ARG1
|
# CMAKE_Fortran_COMPILER and the 2nd one as CMAKE_Fortran_COMPILER_ARG1
|
||||||
|
|
||||||
LIST(LENGTH CMAKE_Fortran_COMPILER _CMAKE_Fortran_COMPILER_LIST_LENGTH)
|
LIST(LENGTH CMAKE_Fortran_COMPILER _CMAKE_Fortran_COMPILER_LIST_LENGTH)
|
||||||
|
@ -97,9 +97,9 @@ ELSE(NOT CMAKE_Fortran_COMPILER)
|
||||||
LIST(GET CMAKE_Fortran_COMPILER 0 CMAKE_Fortran_COMPILER)
|
LIST(GET CMAKE_Fortran_COMPILER 0 CMAKE_Fortran_COMPILER)
|
||||||
ENDIF("${_CMAKE_Fortran_COMPILER_LIST_LENGTH}" EQUAL 2)
|
ENDIF("${_CMAKE_Fortran_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||||
|
|
||||||
# if a compiler was specified by the user but without path,
|
# if a compiler was specified by the user but without path,
|
||||||
# now try to find it with the full path
|
# now try to find it with the full path
|
||||||
# if it is found, force it into the cache,
|
# if it is found, force it into the cache,
|
||||||
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
||||||
# if the C compiler already had a path, reuse it for searching the CXX compiler
|
# if the C compiler already had a path, reuse it for searching the CXX compiler
|
||||||
GET_FILENAME_COMPONENT(_CMAKE_USER_Fortran_COMPILER_PATH "${CMAKE_Fortran_COMPILER}" PATH)
|
GET_FILENAME_COMPONENT(_CMAKE_USER_Fortran_COMPILER_PATH "${CMAKE_Fortran_COMPILER}" PATH)
|
||||||
|
@ -113,7 +113,7 @@ ELSE(NOT CMAKE_Fortran_COMPILER)
|
||||||
ENDIF(NOT _CMAKE_USER_Fortran_COMPILER_PATH)
|
ENDIF(NOT _CMAKE_USER_Fortran_COMPILER_PATH)
|
||||||
ENDIF(NOT CMAKE_Fortran_COMPILER)
|
ENDIF(NOT CMAKE_Fortran_COMPILER)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER)
|
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER)
|
||||||
|
|
||||||
# Build a small source file to identify the compiler.
|
# Build a small source file to identify the compiler.
|
||||||
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||||
|
|
|
@ -24,21 +24,21 @@ IF(NOT CMAKE_Java_COMPILER)
|
||||||
SET(CMAKE_Java_COMPILER_ARG1 "${CMAKE_Java_FLAGS_ENV_INIT}" CACHE STRING "First argument to Java compiler")
|
SET(CMAKE_Java_COMPILER_ARG1 "${CMAKE_Java_FLAGS_ENV_INIT}" CACHE STRING "First argument to Java compiler")
|
||||||
ENDIF(CMAKE_Java_FLAGS_ENV_INIT)
|
ENDIF(CMAKE_Java_FLAGS_ENV_INIT)
|
||||||
IF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
IF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
||||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_COMPILER:\n$ENV{JAVA_COMPILER}.")
|
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_COMPILER:\n$ENV{JAVA_COMPILER}.")
|
||||||
ENDIF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
ENDIF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
||||||
ENDIF($ENV{JAVA_COMPILER} MATCHES ".+")
|
ENDIF($ENV{JAVA_COMPILER} MATCHES ".+")
|
||||||
|
|
||||||
IF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
IF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
||||||
GET_FILENAME_COMPONENT(CMAKE_Java_RUNTIME_INIT $ENV{JAVA_RUNTIME} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
GET_FILENAME_COMPONENT(CMAKE_Java_RUNTIME_INIT $ENV{JAVA_RUNTIME} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
||||||
IF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
IF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
||||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_RUNTIME:\n$ENV{JAVA_RUNTIME}.")
|
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_RUNTIME:\n$ENV{JAVA_RUNTIME}.")
|
||||||
ENDIF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
ENDIF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
||||||
ENDIF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
ENDIF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
||||||
|
|
||||||
IF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
IF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
||||||
GET_FILENAME_COMPONENT(CMAKE_Java_ARCHIVE_INIT $ENV{JAVA_ARCHIVE} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
GET_FILENAME_COMPONENT(CMAKE_Java_ARCHIVE_INIT $ENV{JAVA_ARCHIVE} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
||||||
IF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
IF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
||||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_ARCHIVE:\n$ENV{JAVA_ARCHIVE}.")
|
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_ARCHIVE:\n$ENV{JAVA_ARCHIVE}.")
|
||||||
ENDIF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
ENDIF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
||||||
ENDIF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
ENDIF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ IF(NOT CMAKE_Java_COMPILER)
|
||||||
FIND_PROGRAM(CMAKE_Java_COMPILER
|
FIND_PROGRAM(CMAKE_Java_COMPILER
|
||||||
NAMES javac
|
NAMES javac
|
||||||
PATHS ${Java_BIN_PATH}
|
PATHS ${Java_BIN_PATH}
|
||||||
)
|
)
|
||||||
ENDIF(CMAKE_Java_COMPILER_INIT)
|
ENDIF(CMAKE_Java_COMPILER_INIT)
|
||||||
|
|
||||||
# if no runtime has been specified yet, then look for one
|
# if no runtime has been specified yet, then look for one
|
||||||
|
@ -81,7 +81,7 @@ IF(NOT CMAKE_Java_COMPILER)
|
||||||
FIND_PROGRAM(CMAKE_Java_RUNTIME
|
FIND_PROGRAM(CMAKE_Java_RUNTIME
|
||||||
NAMES java
|
NAMES java
|
||||||
PATHS ${Java_BIN_PATH}
|
PATHS ${Java_BIN_PATH}
|
||||||
)
|
)
|
||||||
ENDIF(CMAKE_Java_RUNTIME_INIT)
|
ENDIF(CMAKE_Java_RUNTIME_INIT)
|
||||||
|
|
||||||
# if no archive has been specified yet, then look for one
|
# if no archive has been specified yet, then look for one
|
||||||
|
@ -91,12 +91,12 @@ IF(NOT CMAKE_Java_COMPILER)
|
||||||
FIND_PROGRAM(CMAKE_Java_ARCHIVE
|
FIND_PROGRAM(CMAKE_Java_ARCHIVE
|
||||||
NAMES jar
|
NAMES jar
|
||||||
PATHS ${Java_BIN_PATH}
|
PATHS ${Java_BIN_PATH}
|
||||||
)
|
)
|
||||||
ENDIF(CMAKE_Java_ARCHIVE_INIT)
|
ENDIF(CMAKE_Java_ARCHIVE_INIT)
|
||||||
ENDIF(NOT CMAKE_Java_COMPILER)
|
ENDIF(NOT CMAKE_Java_COMPILER)
|
||||||
MARK_AS_ADVANCED(CMAKE_Java_COMPILER)
|
MARK_AS_ADVANCED(CMAKE_Java_COMPILER)
|
||||||
|
|
||||||
# configure variables set in this file for fast reload later on
|
# configure variables set in this file for fast reload later on
|
||||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeJavaCompiler.cmake.in
|
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeJavaCompiler.cmake.in
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeJavaCompiler.cmake IMMEDIATE @ONLY)
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeJavaCompiler.cmake IMMEDIATE @ONLY)
|
||||||
SET(CMAKE_Java_COMPILER_ENV_VAR "JAVA_COMPILER")
|
SET(CMAKE_Java_COMPILER_ENV_VAR "JAVA_COMPILER")
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# determine the compiler to use for C programs
|
# determine the compiler to use for C programs
|
||||||
# NOTE, a generator may set CMAKE_C_COMPILER before
|
# NOTE, a generator may set CMAKE_C_COMPILER before
|
||||||
# loading this file to force a compiler.
|
# loading this file to force a compiler.
|
||||||
# use environment variable CCC first if defined by user, next use
|
# use environment variable CCC first if defined by user, next use
|
||||||
# the cmake variable CMAKE_GENERATOR_CC which can be defined by a generator
|
# the cmake variable CMAKE_GENERATOR_CC which can be defined by a generator
|
||||||
# as a default compiler
|
# as a default compiler
|
||||||
IF(NOT CMAKE_RC_COMPILER)
|
IF(NOT CMAKE_RC_COMPILER)
|
||||||
|
@ -27,12 +27,12 @@ IF(NOT CMAKE_RC_COMPILER)
|
||||||
ENDIF(CMAKE_RC_FLAGS_ENV_INIT)
|
ENDIF(CMAKE_RC_FLAGS_ENV_INIT)
|
||||||
IF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
IF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||||
ELSE(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
ELSE(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable RC:\n$ENV{RC}.")
|
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable RC:\n$ENV{RC}.")
|
||||||
ENDIF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
ENDIF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||||
ENDIF($ENV{RC} MATCHES ".+")
|
ENDIF($ENV{RC} MATCHES ".+")
|
||||||
|
|
||||||
# next try prefer the compiler specified by the generator
|
# next try prefer the compiler specified by the generator
|
||||||
IF(CMAKE_GENERATOR_RC)
|
IF(CMAKE_GENERATOR_RC)
|
||||||
IF(NOT CMAKE_RC_COMPILER_INIT)
|
IF(NOT CMAKE_RC_COMPILER_INIT)
|
||||||
SET(CMAKE_RC_COMPILER_INIT ${CMAKE_GENERATOR_RC})
|
SET(CMAKE_RC_COMPILER_INIT ${CMAKE_GENERATOR_RC})
|
||||||
ENDIF(NOT CMAKE_RC_COMPILER_INIT)
|
ENDIF(NOT CMAKE_RC_COMPILER_INIT)
|
||||||
|
@ -52,7 +52,7 @@ IF(NOT CMAKE_RC_COMPILER)
|
||||||
ENDIF(CMAKE_RC_COMPILER_INIT AND NOT CMAKE_RC_COMPILER)
|
ENDIF(CMAKE_RC_COMPILER_INIT AND NOT CMAKE_RC_COMPILER)
|
||||||
ENDIF(NOT CMAKE_RC_COMPILER)
|
ENDIF(NOT CMAKE_RC_COMPILER)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(CMAKE_RC_COMPILER)
|
MARK_AS_ADVANCED(CMAKE_RC_COMPILER)
|
||||||
|
|
||||||
GET_FILENAME_COMPONENT(_CMAKE_RC_COMPILER_NAME_WE ${CMAKE_RC_COMPILER} NAME_WE)
|
GET_FILENAME_COMPONENT(_CMAKE_RC_COMPILER_NAME_WE ${CMAKE_RC_COMPILER} NAME_WE)
|
||||||
IF(_CMAKE_RC_COMPILER_NAME_WE STREQUAL "windres")
|
IF(_CMAKE_RC_COMPILER_NAME_WE STREQUAL "windres")
|
||||||
|
@ -62,6 +62,6 @@ ELSE()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# configure variables set in this file for fast reload later on
|
# configure variables set in this file for fast reload later on
|
||||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeRCCompiler.cmake.in
|
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeRCCompiler.cmake.in
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeRCCompiler.cmake IMMEDIATE)
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeRCCompiler.cmake IMMEDIATE)
|
||||||
SET(CMAKE_RC_COMPILER_ENV_VAR "RC")
|
SET(CMAKE_RC_COMPILER_ENV_VAR "RC")
|
||||||
|
|
|
@ -19,24 +19,24 @@
|
||||||
#
|
#
|
||||||
# Expected uname -s output:
|
# Expected uname -s output:
|
||||||
#
|
#
|
||||||
# AIX AIX
|
# AIX AIX
|
||||||
# BSD/OS BSD/OS
|
# BSD/OS BSD/OS
|
||||||
# FreeBSD FreeBSD
|
# FreeBSD FreeBSD
|
||||||
# HP-UX HP-UX
|
# HP-UX HP-UX
|
||||||
# IRIX IRIX
|
# IRIX IRIX
|
||||||
# Linux Linux
|
# Linux Linux
|
||||||
# GNU/kFreeBSD GNU/kFreeBSD
|
# GNU/kFreeBSD GNU/kFreeBSD
|
||||||
# NetBSD NetBSD
|
# NetBSD NetBSD
|
||||||
# OpenBSD OpenBSD
|
# OpenBSD OpenBSD
|
||||||
# OFS/1 (Digital Unix) OSF1
|
# OFS/1 (Digital Unix) OSF1
|
||||||
# SCO OpenServer 5 SCO_SV
|
# SCO OpenServer 5 SCO_SV
|
||||||
# SCO UnixWare 7 UnixWare
|
# SCO UnixWare 7 UnixWare
|
||||||
# SCO UnixWare (pre release 7) UNIX_SV
|
# SCO UnixWare (pre release 7) UNIX_SV
|
||||||
# SCO XENIX Xenix
|
# SCO XENIX Xenix
|
||||||
# Solaris SunOS
|
# Solaris SunOS
|
||||||
# SunOS SunOS
|
# SunOS SunOS
|
||||||
# Tru64 Tru64
|
# Tru64 Tru64
|
||||||
# Ultrix ULTRIX
|
# Ultrix ULTRIX
|
||||||
# cygwin CYGWIN_NT-5.1
|
# cygwin CYGWIN_NT-5.1
|
||||||
# MacOSX Darwin
|
# MacOSX Darwin
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ IF(CMAKE_HOST_UNIX)
|
||||||
RETURN_VALUE val)
|
RETURN_VALUE val)
|
||||||
ENDIF("${val}" GREATER 0)
|
ENDIF("${val}" GREATER 0)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
# check the return of the last uname -m or -p
|
# check the return of the last uname -m or -p
|
||||||
IF("${val}" GREATER 0)
|
IF("${val}" GREATER 0)
|
||||||
SET(CMAKE_HOST_SYSTEM_PROCESSOR "unknown")
|
SET(CMAKE_HOST_SYSTEM_PROCESSOR "unknown")
|
||||||
ENDIF("${val}" GREATER 0)
|
ENDIF("${val}" GREATER 0)
|
||||||
|
@ -79,7 +79,7 @@ ENDIF(CMAKE_HOST_UNIX)
|
||||||
|
|
||||||
# if a toolchain file is used, the user wants to cross compile.
|
# if a toolchain file is used, the user wants to cross compile.
|
||||||
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
|
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
|
||||||
# variables around so they can be used in CMakeLists.txt.
|
# variables around so they can be used in CMakeLists.txt.
|
||||||
# In all other cases, the host and target platform are the same.
|
# In all other cases, the host and target platform are the same.
|
||||||
IF(CMAKE_TOOLCHAIN_FILE)
|
IF(CMAKE_TOOLCHAIN_FILE)
|
||||||
# at first try to load it as path relative to the directory from which cmake has been run
|
# at first try to load it as path relative to the directory from which cmake has been run
|
||||||
|
@ -92,7 +92,7 @@ IF(CMAKE_TOOLCHAIN_FILE)
|
||||||
IF(_INCLUDED_TOOLCHAIN_FILE)
|
IF(_INCLUDED_TOOLCHAIN_FILE)
|
||||||
SET(CMAKE_TOOLCHAIN_FILE "${_INCLUDED_TOOLCHAIN_FILE}" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
SET(CMAKE_TOOLCHAIN_FILE "${_INCLUDED_TOOLCHAIN_FILE}" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
||||||
ELSE(_INCLUDED_TOOLCHAIN_FILE)
|
ELSE(_INCLUDED_TOOLCHAIN_FILE)
|
||||||
MESSAGE(FATAL_ERROR "Could not find toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
|
MESSAGE(FATAL_ERROR "Could not find toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
|
||||||
SET(CMAKE_TOOLCHAIN_FILE "NOTFOUND" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
SET(CMAKE_TOOLCHAIN_FILE "NOTFOUND" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
||||||
ENDIF(_INCLUDED_TOOLCHAIN_FILE)
|
ENDIF(_INCLUDED_TOOLCHAIN_FILE)
|
||||||
ENDIF(CMAKE_TOOLCHAIN_FILE)
|
ENDIF(CMAKE_TOOLCHAIN_FILE)
|
||||||
|
@ -130,7 +130,7 @@ MACRO(ADJUST_CMAKE_SYSTEM_VARIABLES _PREFIX)
|
||||||
SET(${_PREFIX}_NAME kFreeBSD)
|
SET(${_PREFIX}_NAME kFreeBSD)
|
||||||
ENDIF(${_PREFIX}_NAME MATCHES kFreeBSD)
|
ENDIF(${_PREFIX}_NAME MATCHES kFreeBSD)
|
||||||
|
|
||||||
# fix for CYGWIN which has windows version in it
|
# fix for CYGWIN which has windows version in it
|
||||||
IF(${_PREFIX}_NAME MATCHES CYGWIN)
|
IF(${_PREFIX}_NAME MATCHES CYGWIN)
|
||||||
SET(${_PREFIX}_NAME CYGWIN)
|
SET(${_PREFIX}_NAME CYGWIN)
|
||||||
ENDIF(${_PREFIX}_NAME MATCHES CYGWIN)
|
ENDIF(${_PREFIX}_NAME MATCHES CYGWIN)
|
||||||
|
@ -147,17 +147,17 @@ ENDMACRO(ADJUST_CMAKE_SYSTEM_VARIABLES _PREFIX)
|
||||||
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_SYSTEM)
|
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_SYSTEM)
|
||||||
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_HOST_SYSTEM)
|
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_HOST_SYSTEM)
|
||||||
|
|
||||||
# this file is also executed from cpack, then we don't need to generate these files
|
# this file is also executed from cpack, then we don't need to generate these files
|
||||||
# in this case there is no CMAKE_BINARY_DIR
|
# in this case there is no CMAKE_BINARY_DIR
|
||||||
IF(CMAKE_BINARY_DIR)
|
IF(CMAKE_BINARY_DIR)
|
||||||
# write entry to the log file
|
# write entry to the log file
|
||||||
IF(PRESET_CMAKE_SYSTEM_NAME)
|
IF(PRESET_CMAKE_SYSTEM_NAME)
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"The target system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
"The target system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"The host system is: ${CMAKE_HOST_SYSTEM_NAME} - ${CMAKE_HOST_SYSTEM_VERSION} - ${CMAKE_HOST_SYSTEM_PROCESSOR}\n")
|
"The host system is: ${CMAKE_HOST_SYSTEM_NAME} - ${CMAKE_HOST_SYSTEM_VERSION} - ${CMAKE_HOST_SYSTEM_PROCESSOR}\n")
|
||||||
ELSE(PRESET_CMAKE_SYSTEM_NAME)
|
ELSE(PRESET_CMAKE_SYSTEM_NAME)
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"The system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
"The system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
||||||
ENDIF(PRESET_CMAKE_SYSTEM_NAME)
|
ENDIF(PRESET_CMAKE_SYSTEM_NAME)
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ IF(CMAKE_BINARY_DIR)
|
||||||
|
|
||||||
# configure variables set in this file for fast reload, the template file is defined at the top of this file
|
# configure variables set in this file for fast reload, the template file is defined at the top of this file
|
||||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeSystem.cmake.in
|
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeSystem.cmake.in
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeSystem.cmake
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeSystem.cmake
|
||||||
IMMEDIATE @ONLY)
|
IMMEDIATE @ONLY)
|
||||||
|
|
||||||
ENDIF(CMAKE_BINARY_DIR)
|
ENDIF(CMAKE_BINARY_DIR)
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
|
|
||||||
# search for additional tools required for C/C++ (and other languages ?)
|
# search for additional tools required for C/C++ (and other languages ?)
|
||||||
#
|
#
|
||||||
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
||||||
# as prefix for the tools (e.g. arm-elf-gcc etc.)
|
# as prefix for the tools (e.g. arm-elf-gcc etc.)
|
||||||
# If the cmake variable _CMAKE_TOOLCHAIN_LOCATION is set, the compiler is
|
# If the cmake variable _CMAKE_TOOLCHAIN_LOCATION is set, the compiler is
|
||||||
# searched only there. The other tools are at first searched there, then
|
# searched only there. The other tools are at first searched there, then
|
||||||
# also in the default locations.
|
# also in the default locations.
|
||||||
#
|
#
|
||||||
# Sets the following variables:
|
# Sets the following variables:
|
||||||
# CMAKE_AR
|
# CMAKE_AR
|
||||||
# CMAKE_RANLIB
|
# CMAKE_RANLIB
|
||||||
# CMAKE_LINKER
|
# CMAKE_LINKER
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
# if it's the MS C/CXX compiler, search for link
|
# if it's the MS C/CXX compiler, search for link
|
||||||
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
MARK_AS_ADVANCED(CMAKE_LINKER)
|
MARK_AS_ADVANCED(CMAKE_LINKER)
|
||||||
|
|
||||||
# in all other cases search for ar, ranlib, etc.
|
# in all other cases search for ar, ranlib, etc.
|
||||||
ELSE("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
ELSE("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ ELSE("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
|
|
||||||
MARK_AS_ADVANCED(CMAKE_AR CMAKE_RANLIB CMAKE_STRIP CMAKE_LINKER CMAKE_NM CMAKE_OBJDUMP CMAKE_OBJCOPY)
|
MARK_AS_ADVANCED(CMAKE_AR CMAKE_RANLIB CMAKE_STRIP CMAKE_LINKER CMAKE_NM CMAKE_OBJDUMP CMAKE_OBJCOPY)
|
||||||
|
|
||||||
ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ IF(CMAKE_Fortran_SIZEOF_DATA_PTR)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# This should be included before the _INIT variables are
|
# This should be included before the _INIT variables are
|
||||||
# used to initialize the cache. Since the rule variables
|
# used to initialize the cache. Since the rule variables
|
||||||
# have if blocks on them, users can still define them here.
|
# have if blocks on them, users can still define them here.
|
||||||
# But, it should still be after the platform file so changes can
|
# But, it should still be after the platform file so changes can
|
||||||
# be made to those values.
|
# be made to those values.
|
||||||
|
@ -70,7 +70,7 @@ IF(CMAKE_USER_MAKE_RULES_OVERRIDE_Fortran)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
# Fortran needs cmake to do a requires step during its build process to
|
# Fortran needs cmake to do a requires step during its build process to
|
||||||
# catch any modules
|
# catch any modules
|
||||||
SET(CMAKE_NEEDS_REQUIRES_STEP_Fortran_FLAG 1)
|
SET(CMAKE_NEEDS_REQUIRES_STEP_Fortran_FLAG 1)
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ IF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG)
|
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG)
|
||||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP)
|
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP)
|
||||||
|
@ -165,7 +165,7 @@ ENDIF(NOT CMAKE_INCLUDE_FLAG_SEP_Fortran)
|
||||||
SET(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
|
SET(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
|
||||||
|
|
||||||
SET(CMAKE_Fortran_FLAGS_INIT "$ENV{FFLAGS} ${CMAKE_Fortran_FLAGS_INIT}")
|
SET(CMAKE_Fortran_FLAGS_INIT "$ENV{FFLAGS} ${CMAKE_Fortran_FLAGS_INIT}")
|
||||||
# avoid just having a space as the initial value for the cache
|
# avoid just having a space as the initial value for the cache
|
||||||
IF(CMAKE_Fortran_FLAGS_INIT STREQUAL " ")
|
IF(CMAKE_Fortran_FLAGS_INIT STREQUAL " ")
|
||||||
SET(CMAKE_Fortran_FLAGS_INIT)
|
SET(CMAKE_Fortran_FLAGS_INIT)
|
||||||
ENDIF(CMAKE_Fortran_FLAGS_INIT STREQUAL " ")
|
ENDIF(CMAKE_Fortran_FLAGS_INIT STREQUAL " ")
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
# This should be included before the _INIT variables are
|
# This should be included before the _INIT variables are
|
||||||
# used to initialize the cache. Since the rule variables
|
# used to initialize the cache. Since the rule variables
|
||||||
# have if blocks on them, users can still define them here.
|
# have if blocks on them, users can still define them here.
|
||||||
# But, it should still be after the platform file so changes can
|
# But, it should still be after the platform file so changes can
|
||||||
# be made to those values.
|
# be made to those values.
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM make
|
FIND_PROGRAM(CMAKE_MAKE_PROGRAM make
|
||||||
PATHS
|
PATHS
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MSYS-1.0_is1;Inno Setup: App Path]/bin"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MSYS-1.0_is1;Inno Setup: App Path]/bin"
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin"
|
||||||
c:/msys/1.0/bin /msys/1.0/bin)
|
c:/msys/1.0/bin /msys/1.0/bin)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM mingw32-make.exe PATHS
|
FIND_PROGRAM(CMAKE_MAKE_PROGRAM mingw32-make.exe PATHS
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin"
|
||||||
c:/MinGW/bin /MinGW/bin)
|
c:/MinGW/bin /MinGW/bin)
|
||||||
FIND_PROGRAM(CMAKE_SH sh.exe )
|
FIND_PROGRAM(CMAKE_SH sh.exe )
|
||||||
IF(CMAKE_SH)
|
IF(CMAKE_SH)
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
|
#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
|
||||||
# define PLATFORM_ID "Haiku"
|
# define PLATFORM_ID "Haiku"
|
||||||
/* Haiku also defines __BEOS__ so we must
|
/* Haiku also defines __BEOS__ so we must
|
||||||
put it prior to the check for __BEOS__
|
put it prior to the check for __BEOS__
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
# define ARCHITECTURE_ID "IA64"
|
# define ARCHITECTURE_ID "IA64"
|
||||||
|
|
||||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||||
# define ARCHITECTURE_ID "x64"
|
# define ARCHITECTURE_ID "x64"
|
||||||
|
|
||||||
# elif defined(_M_IX86)
|
# elif defined(_M_IX86)
|
||||||
# define ARCHITECTURE_ID "X86"
|
# define ARCHITECTURE_ID "X86"
|
||||||
|
|
|
@ -42,7 +42,7 @@ IF(NOT _INCLUDED_SYSTEM_INFO_FILE)
|
||||||
IF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
|
IF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
|
||||||
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/CMakeCache.txt
|
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/CMakeCache.txt
|
||||||
${CMAKE_BINARY_DIR}/CopyOfCMakeCache.txt COPYONLY)
|
${CMAKE_BINARY_DIR}/CopyOfCMakeCache.txt COPYONLY)
|
||||||
MESSAGE("Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. "
|
MESSAGE("Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. "
|
||||||
"Please send that file to cmake@www.cmake.org.")
|
"Please send that file to cmake@www.cmake.org.")
|
||||||
ENDIF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
|
ENDIF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
|
||||||
ENDIF(NOT _INCLUDED_SYSTEM_INFO_FILE)
|
ENDIF(NOT _INCLUDED_SYSTEM_INFO_FILE)
|
||||||
|
|
|
@ -33,7 +33,7 @@ IF(NOT CMAKE_C_COMPILER_WORKS)
|
||||||
"int main(int argc, char* argv[])\n"
|
"int main(int argc, char* argv[])\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
"{ (void)argv; return argc-1;}\n")
|
"{ (void)argv; return argc-1;}\n")
|
||||||
TRY_COMPILE(CMAKE_C_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
TRY_COMPILE(CMAKE_C_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler.c
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler.c
|
||||||
OUTPUT_VARIABLE __CMAKE_C_COMPILER_OUTPUT)
|
OUTPUT_VARIABLE __CMAKE_C_COMPILER_OUTPUT)
|
||||||
SET(C_TEST_WAS_RUN 1)
|
SET(C_TEST_WAS_RUN 1)
|
||||||
|
|
|
@ -21,12 +21,12 @@ INCLUDE(CMakeTestCompilerCommon)
|
||||||
# any makefiles or projects.
|
# any makefiles or projects.
|
||||||
IF(NOT CMAKE_CXX_COMPILER_WORKS)
|
IF(NOT CMAKE_CXX_COMPILER_WORKS)
|
||||||
PrintTestCompilerStatus("CXX" "")
|
PrintTestCompilerStatus("CXX" "")
|
||||||
FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCXXCompiler.cxx
|
FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCXXCompiler.cxx
|
||||||
"#ifndef __cplusplus\n"
|
"#ifndef __cplusplus\n"
|
||||||
"# error \"The CMAKE_CXX_COMPILER is set to a C compiler\"\n"
|
"# error \"The CMAKE_CXX_COMPILER is set to a C compiler\"\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
"int main(){return 0;}\n")
|
"int main(){return 0;}\n")
|
||||||
TRY_COMPILE(CMAKE_CXX_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
TRY_COMPILE(CMAKE_CXX_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCXXCompiler.cxx
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCXXCompiler.cxx
|
||||||
OUTPUT_VARIABLE __CMAKE_CXX_COMPILER_OUTPUT)
|
OUTPUT_VARIABLE __CMAKE_CXX_COMPILER_OUTPUT)
|
||||||
SET(CXX_TEST_WAS_RUN 1)
|
SET(CXX_TEST_WAS_RUN 1)
|
||||||
|
|
|
@ -26,7 +26,7 @@ IF(NOT CMAKE_Fortran_COMPILER_WORKS)
|
||||||
PRINT *, 'Hello'
|
PRINT *, 'Hello'
|
||||||
END
|
END
|
||||||
")
|
")
|
||||||
TRY_COMPILE(CMAKE_Fortran_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
TRY_COMPILE(CMAKE_Fortran_COMPILER_WORKS ${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompiler.f
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompiler.f
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
SET(FORTRAN_TEST_WAS_RUN 1)
|
SET(FORTRAN_TEST_WAS_RUN 1)
|
||||||
|
|
|
@ -20,7 +20,7 @@ SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
|
||||||
SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
|
SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
|
||||||
SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
|
SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
|
||||||
SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
|
SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
|
||||||
SET (CMAKE_NO_ANSI_FOR_SCOPE 1 CACHE INTERNAL
|
SET (CMAKE_NO_ANSI_FOR_SCOPE 1 CACHE INTERNAL
|
||||||
"Does the compiler support ansi for scope.")
|
"Does the compiler support ansi for scope.")
|
||||||
SET (CMAKE_USE_WIN32_THREADS TRUE CACHE BOOL "Use the win32 thread library.")
|
SET (CMAKE_USE_WIN32_THREADS TRUE CACHE BOOL "Use the win32 thread library.")
|
||||||
SET (CMAKE_WORDS_BIGENDIAN 0 CACHE INTERNAL "endianness of bytes")
|
SET (CMAKE_WORDS_BIGENDIAN 0 CACHE INTERNAL "endianness of bytes")
|
||||||
|
|
|
@ -20,7 +20,7 @@ SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
|
||||||
SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
|
SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
|
||||||
SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
|
SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
|
||||||
SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
|
SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
|
||||||
SET (CMAKE_NO_ANSI_FOR_SCOPE 0 CACHE INTERNAL
|
SET (CMAKE_NO_ANSI_FOR_SCOPE 0 CACHE INTERNAL
|
||||||
"Does the compiler support ansi for scope.")
|
"Does the compiler support ansi for scope.")
|
||||||
SET (CMAKE_USE_WIN32_THREADS TRUE CACHE BOOL "Use the win32 thread library.")
|
SET (CMAKE_USE_WIN32_THREADS TRUE CACHE BOOL "Use the win32 thread library.")
|
||||||
SET (CMAKE_WORDS_BIGENDIAN 0 CACHE INTERNAL "endianness of bytes")
|
SET (CMAKE_WORDS_BIGENDIAN 0 CACHE INTERNAL "endianness of bytes")
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# side by side manifests for a project match. To run this
|
# side by side manifests for a project match. To run this
|
||||||
# script, cd to a directory and run the script with cmake -P.
|
# script, cd to a directory and run the script with cmake -P.
|
||||||
# On the command line you can pass in versions that are OK even
|
# On the command line you can pass in versions that are OK even
|
||||||
# if not found in the .manifest files. For example,
|
# if not found in the .manifest files. For example,
|
||||||
# cmake -Dallow_versions=8.0.50608.0 -PCmakeVerifyManifest.cmake
|
# cmake -Dallow_versions=8.0.50608.0 -PCmakeVerifyManifest.cmake
|
||||||
# could be used to allow an embeded manifest of 8.0.50608.0
|
# could be used to allow an embeded manifest of 8.0.50608.0
|
||||||
# to be used in a project even if that version was not found
|
# to be used in a project even if that version was not found
|
||||||
|
@ -40,7 +40,7 @@ function(crt_version file list_var)
|
||||||
foreach(s ${strings})
|
foreach(s ${strings})
|
||||||
set(has_match 1)
|
set(has_match 1)
|
||||||
string(REGEX
|
string(REGEX
|
||||||
REPLACE ".*<assembly.*\"Microsoft.VC...CRT\".*version=\"([^\"]*)\".*</assembly>.*$" "\\1"
|
REPLACE ".*<assembly.*\"Microsoft.VC...CRT\".*version=\"([^\"]*)\".*</assembly>.*$" "\\1"
|
||||||
version "${s}")
|
version "${s}")
|
||||||
if(NOT "${version}" STREQUAL "")
|
if(NOT "${version}" STREQUAL "")
|
||||||
list(APPEND version_list ${version})
|
list(APPEND version_list ${version})
|
||||||
|
@ -61,14 +61,14 @@ endfunction(crt_version)
|
||||||
set(fatal_error FALSE)
|
set(fatal_error FALSE)
|
||||||
|
|
||||||
# check_version:
|
# check_version:
|
||||||
#
|
#
|
||||||
# test a file against the shipped manifest versions
|
# test a file against the shipped manifest versions
|
||||||
# for a directory
|
# for a directory
|
||||||
function(check_version file manifest_versions)
|
function(check_version file manifest_versions)
|
||||||
set(manifest_versions ${manifest_versions} ${allow_versions})
|
set(manifest_versions ${manifest_versions} ${allow_versions})
|
||||||
# collect versions for a given file
|
# collect versions for a given file
|
||||||
crt_version(${file} file_versions)
|
crt_version(${file} file_versions)
|
||||||
# see if the versions
|
# see if the versions
|
||||||
foreach(ver ${file_versions})
|
foreach(ver ${file_versions})
|
||||||
list(FIND manifest_versions "${ver}" found_version)
|
list(FIND manifest_versions "${ver}" found_version)
|
||||||
if("${found_version}" EQUAL -1)
|
if("${found_version}" EQUAL -1)
|
||||||
|
|
|
@ -187,7 +187,7 @@
|
||||||
# in CMake, so this change is compatible).
|
# in CMake, so this change is compatible).
|
||||||
##end
|
##end
|
||||||
#
|
#
|
||||||
# The following CPack variables are specific to source packages, and
|
# The following CPack variables are specific to source packages, and
|
||||||
# will not affect binary packages:
|
# will not affect binary packages:
|
||||||
#
|
#
|
||||||
##variable
|
##variable
|
||||||
|
@ -321,7 +321,7 @@ MACRO(cpack_encode_variables)
|
||||||
SET(_CPACK_OTHER_VARIABLES_)
|
SET(_CPACK_OTHER_VARIABLES_)
|
||||||
GET_CMAKE_PROPERTY(res VARIABLES)
|
GET_CMAKE_PROPERTY(res VARIABLES)
|
||||||
FOREACH(var ${res})
|
FOREACH(var ${res})
|
||||||
IF("xxx${var}" MATCHES "xxxCPACK")
|
IF("xxx${var}" MATCHES "xxxCPACK")
|
||||||
SET(_CPACK_OTHER_VARIABLES_
|
SET(_CPACK_OTHER_VARIABLES_
|
||||||
"${_CPACK_OTHER_VARIABLES_}\nSET(${var} \"${${var}}\")")
|
"${_CPACK_OTHER_VARIABLES_}\nSET(${var} \"${${var}}\")")
|
||||||
ENDIF("xxx${var}" MATCHES "xxxCPACK")
|
ENDIF("xxx${var}" MATCHES "xxxCPACK")
|
||||||
|
@ -440,7 +440,7 @@ if(NOT CPACK_GENERATOR)
|
||||||
option(CPACK_BINARY_NSIS "Enable to build NSIS packages" ON)
|
option(CPACK_BINARY_NSIS "Enable to build NSIS packages" ON)
|
||||||
option(CPACK_BINARY_ZIP "Enable to build ZIP packages" OFF)
|
option(CPACK_BINARY_ZIP "Enable to build ZIP packages" OFF)
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
|
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_BUNDLE Bundle)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_BUNDLE Bundle)
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_DRAGNDROP DragNDrop)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_DRAGNDROP DragNDrop)
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_PACKAGEMAKER PackageMaker)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_PACKAGEMAKER PackageMaker)
|
||||||
|
@ -454,7 +454,7 @@ if(NOT CPACK_GENERATOR)
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_TBZ2 TBZ2)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_TBZ2 TBZ2)
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_TZ TZ)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_TZ TZ)
|
||||||
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_ZIP ZIP)
|
cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_ZIP ZIP)
|
||||||
|
|
||||||
endif(NOT CPACK_GENERATOR)
|
endif(NOT CPACK_GENERATOR)
|
||||||
|
|
||||||
# Provide options to choose source generators
|
# Provide options to choose source generators
|
||||||
|
@ -481,10 +481,10 @@ endif(NOT CPACK_SOURCE_GENERATOR)
|
||||||
|
|
||||||
# mark the above options as advanced
|
# mark the above options as advanced
|
||||||
mark_as_advanced(CPACK_BINARY_CYGWIN CPACK_BINARY_PACKAGEMAKER CPACK_BINARY_OSXX11
|
mark_as_advanced(CPACK_BINARY_CYGWIN CPACK_BINARY_PACKAGEMAKER CPACK_BINARY_OSXX11
|
||||||
CPACK_BINARY_STGZ CPACK_BINARY_TGZ CPACK_BINARY_TBZ2
|
CPACK_BINARY_STGZ CPACK_BINARY_TGZ CPACK_BINARY_TBZ2
|
||||||
CPACK_BINARY_DEB CPACK_BINARY_RPM CPACK_BINARY_TZ
|
CPACK_BINARY_DEB CPACK_BINARY_RPM CPACK_BINARY_TZ
|
||||||
CPACK_BINARY_NSIS CPACK_BINARY_ZIP CPACK_BINARY_BUNDLE
|
CPACK_BINARY_NSIS CPACK_BINARY_ZIP CPACK_BINARY_BUNDLE
|
||||||
CPACK_SOURCE_CYGWIN CPACK_SOURCE_TBZ2 CPACK_SOURCE_TGZ
|
CPACK_SOURCE_CYGWIN CPACK_SOURCE_TBZ2 CPACK_SOURCE_TGZ
|
||||||
CPACK_SOURCE_TZ CPACK_SOURCE_ZIP CPACK_BINARY_DRAGNDROP)
|
CPACK_SOURCE_TZ CPACK_SOURCE_ZIP CPACK_BINARY_DRAGNDROP)
|
||||||
|
|
||||||
# Set some other variables
|
# Set some other variables
|
||||||
|
@ -499,11 +499,11 @@ endif()
|
||||||
# if the user has set CPACK_NSIS_DISPLAY
|
# if the user has set CPACK_NSIS_DISPLAY
|
||||||
# explicitly, then use that as the default
|
# explicitly, then use that as the default
|
||||||
# value of CPACK_NSIS_PACKAGE_NAME instead
|
# value of CPACK_NSIS_PACKAGE_NAME instead
|
||||||
# of CPACK_PACKAGE_INSTALL_DIRECTORY
|
# of CPACK_PACKAGE_INSTALL_DIRECTORY
|
||||||
cpack_set_if_not_set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
cpack_set_if_not_set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
||||||
|
|
||||||
if(CPACK_NSIS_DISPLAY_NAME_SET)
|
if(CPACK_NSIS_DISPLAY_NAME_SET)
|
||||||
string(REPLACE "\\" "\\\\"
|
string(REPLACE "\\" "\\\\"
|
||||||
_NSIS_DISPLAY_NAME_TMP "${CPACK_NSIS_DISPLAY_NAME}")
|
_NSIS_DISPLAY_NAME_TMP "${CPACK_NSIS_DISPLAY_NAME}")
|
||||||
cpack_set_if_not_set(CPACK_NSIS_PACKAGE_NAME "${_NSIS_DISPLAY_NAME_TMP}")
|
cpack_set_if_not_set(CPACK_NSIS_PACKAGE_NAME "${_NSIS_DISPLAY_NAME_TMP}")
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -23,7 +23,7 @@ IF(ZIP_EXECUTABLE)
|
||||||
ENDIF(ZIP_EXECUTABLE)
|
ENDIF(ZIP_EXECUTABLE)
|
||||||
|
|
||||||
IF(NOT ZIP_EXECUTABLE)
|
IF(NOT ZIP_EXECUTABLE)
|
||||||
FIND_PROGRAM(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip")
|
FIND_PROGRAM(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip")
|
||||||
IF(ZIP_EXECUTABLE)
|
IF(ZIP_EXECUTABLE)
|
||||||
SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" a -tzip \"<ARCHIVE>\" @<FILELIST>")
|
SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" a -tzip \"<ARCHIVE>\" @<FILELIST>")
|
||||||
SET(CPACK_ZIP_NEED_QUOTES TRUE)
|
SET(CPACK_ZIP_NEED_QUOTES TRUE)
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
OPTION(BUILD_TESTING "Build the testing tree." ON)
|
OPTION(BUILD_TESTING "Build the testing tree." ON)
|
||||||
|
|
||||||
# function to turn generator name into a version string
|
# function to turn generator name into a version string
|
||||||
# like vs7 vs71 vs8 vs9
|
# like vs7 vs71 vs8 vs9
|
||||||
FUNCTION(GET_VS_VERSION_STRING generator var)
|
FUNCTION(GET_VS_VERSION_STRING generator var)
|
||||||
STRING(REGEX REPLACE "Visual Studio ([0-9][0-9]?)($|.*)" "\\1"
|
STRING(REGEX REPLACE "Visual Studio ([0-9][0-9]?)($|.*)" "\\1"
|
||||||
NUMBER "${generator}")
|
NUMBER "${generator}")
|
||||||
|
@ -122,7 +122,7 @@ IF(BUILD_TESTING)
|
||||||
SET_IF_NOT_SET (NIGHTLY_START_TIME "00:00:00 EDT")
|
SET_IF_NOT_SET (NIGHTLY_START_TIME "00:00:00 EDT")
|
||||||
|
|
||||||
FIND_PROGRAM(CVSCOMMAND cvs )
|
FIND_PROGRAM(CVSCOMMAND cvs )
|
||||||
SET(CVS_UPDATE_OPTIONS "-d -A -P" CACHE STRING
|
SET(CVS_UPDATE_OPTIONS "-d -A -P" CACHE STRING
|
||||||
"Options passed to the cvs update command.")
|
"Options passed to the cvs update command.")
|
||||||
FIND_PROGRAM(SVNCOMMAND svn)
|
FIND_PROGRAM(SVNCOMMAND svn)
|
||||||
FIND_PROGRAM(BZRCOMMAND bzr)
|
FIND_PROGRAM(BZRCOMMAND bzr)
|
||||||
|
@ -161,7 +161,7 @@ IF(BUILD_TESTING)
|
||||||
SET(UPDATE_OPTIONS "${GIT_UPDATE_OPTIONS}")
|
SET(UPDATE_OPTIONS "${GIT_UPDATE_OPTIONS}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(DART_TESTING_TIMEOUT 1500 CACHE STRING
|
SET(DART_TESTING_TIMEOUT 1500 CACHE STRING
|
||||||
"Maximum time allowed before CTest will kill the test.")
|
"Maximum time allowed before CTest will kill the test.")
|
||||||
|
|
||||||
SET(CTEST_SUBMIT_RETRY_DELAY 5 CACHE STRING
|
SET(CTEST_SUBMIT_RETRY_DELAY 5 CACHE STRING
|
||||||
|
@ -181,12 +181,12 @@ IF(BUILD_TESTING)
|
||||||
FIND_PROGRAM(SLURM_SRUN_COMMAND srun DOC
|
FIND_PROGRAM(SLURM_SRUN_COMMAND srun DOC
|
||||||
"Path to the SLURM srun executable"
|
"Path to the SLURM srun executable"
|
||||||
)
|
)
|
||||||
SET(MEMORYCHECK_SUPPRESSIONS_FILE "" CACHE FILEPATH
|
SET(MEMORYCHECK_SUPPRESSIONS_FILE "" CACHE FILEPATH
|
||||||
"File that contains suppressions for the memory checker")
|
"File that contains suppressions for the memory checker")
|
||||||
FIND_PROGRAM(SCPCOMMAND scp DOC
|
FIND_PROGRAM(SCPCOMMAND scp DOC
|
||||||
"Path to scp command, used by CTest for submitting results to a Dart server"
|
"Path to scp command, used by CTest for submitting results to a Dart server"
|
||||||
)
|
)
|
||||||
FIND_PROGRAM(COVERAGE_COMMAND gcov DOC
|
FIND_PROGRAM(COVERAGE_COMMAND gcov DOC
|
||||||
"Path to the coverage program that CTest uses for performing coverage inspection"
|
"Path to the coverage program that CTest uses for performing coverage inspection"
|
||||||
)
|
)
|
||||||
SET(COVERAGE_EXTRA_FLAGS "-l" CACHE STRING
|
SET(COVERAGE_EXTRA_FLAGS "-l" CACHE STRING
|
||||||
|
@ -215,10 +215,10 @@ IF(BUILD_TESTING)
|
||||||
SET(BUILD_NAME_SYSTEM_NAME "Win32")
|
SET(BUILD_NAME_SYSTEM_NAME "Win32")
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
IF(UNIX OR BORLAND)
|
IF(UNIX OR BORLAND)
|
||||||
GET_FILENAME_COMPONENT(DART_CXX_NAME
|
GET_FILENAME_COMPONENT(DART_CXX_NAME
|
||||||
"${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT})
|
"${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT})
|
||||||
ELSE(UNIX OR BORLAND)
|
ELSE(UNIX OR BORLAND)
|
||||||
GET_FILENAME_COMPONENT(DART_CXX_NAME
|
GET_FILENAME_COMPONENT(DART_CXX_NAME
|
||||||
"${CMAKE_BUILD_TOOL}" ${DART_NAME_COMPONENT})
|
"${CMAKE_BUILD_TOOL}" ${DART_NAME_COMPONENT})
|
||||||
ENDIF(UNIX OR BORLAND)
|
ENDIF(UNIX OR BORLAND)
|
||||||
IF(DART_CXX_NAME MATCHES "msdev")
|
IF(DART_CXX_NAME MATCHES "msdev")
|
||||||
|
@ -267,7 +267,7 @@ IF(BUILD_TESTING)
|
||||||
DART_TESTING_TIMEOUT
|
DART_TESTING_TIMEOUT
|
||||||
GITCOMMAND
|
GITCOMMAND
|
||||||
HGCOMMAND
|
HGCOMMAND
|
||||||
MAKECOMMAND
|
MAKECOMMAND
|
||||||
MEMORYCHECK_COMMAND
|
MEMORYCHECK_COMMAND
|
||||||
MEMORYCHECK_SUPPRESSIONS_FILE
|
MEMORYCHECK_SUPPRESSIONS_FILE
|
||||||
PURIFYCOMMAND
|
PURIFYCOMMAND
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
# Determine the current system, so this information can be used
|
# Determine the current system, so this information can be used
|
||||||
# in ctest scripts
|
# in ctest scripts
|
||||||
include(CMakeDetermineSystem)
|
include(CMakeDetermineSystem)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ int main(int ac, char*av[]){
|
||||||
pthread_t tid[2];
|
pthread_t tid[2];
|
||||||
pthread_create(&tid[0], 0, runner, (void*)1);
|
pthread_create(&tid[0], 0, runner, (void*)1);
|
||||||
pthread_create(&tid[1], 0, runner, (void*)2);
|
pthread_create(&tid[1], 0, runner, (void*)2);
|
||||||
|
|
||||||
#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__) // (no usleep on BeOS 5.)
|
#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__) // (no usleep on BeOS 5.)
|
||||||
usleep(1); // for strange behavior on single-processor sun
|
usleep(1); // for strange behavior on single-processor sun
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
# - macro which checks the include file exists.
|
# - macro which checks the include file exists.
|
||||||
# INCLUDE - name of include file
|
# INCLUDE - name of include file
|
||||||
# VARIABLE - variable to return result
|
# VARIABLE - variable to return result
|
||||||
#
|
#
|
||||||
# an optional third argument is the CFlags to add to the compile line
|
# an optional third argument is the CFlags to add to the compile line
|
||||||
# or you can use CMAKE_REQUIRED_FLAGS
|
# or you can use CMAKE_REQUIRED_FLAGS
|
||||||
#
|
#
|
||||||
# The following variables may be set before calling this macro to
|
# The following variables may be set before calling this macro to
|
||||||
|
@ -49,10 +49,10 @@ MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE)
|
||||||
${CMAKE_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.c
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.c
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
||||||
CMAKE_FLAGS
|
CMAKE_FLAGS
|
||||||
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILE_FLAGS}
|
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILE_FLAGS}
|
||||||
"${CHECK_INCLUDE_FILE_C_INCLUDE_DIRS}"
|
"${CHECK_INCLUDE_FILE_C_INCLUDE_DIRS}"
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
|
||||||
IF(${ARGC} EQUAL 3)
|
IF(${ARGC} EQUAL 3)
|
||||||
SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS_SAVE})
|
SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS_SAVE})
|
||||||
|
@ -61,14 +61,14 @@ MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE)
|
||||||
IF(${VARIABLE})
|
IF(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for ${INCLUDE} - found")
|
MESSAGE(STATUS "Looking for ${INCLUDE} - found")
|
||||||
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Determining if the include file ${INCLUDE} "
|
"Determining if the include file ${INCLUDE} "
|
||||||
"exists passed with the following output:\n"
|
"exists passed with the following output:\n"
|
||||||
"${OUTPUT}\n\n")
|
"${OUTPUT}\n\n")
|
||||||
ELSE(${VARIABLE})
|
ELSE(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for ${INCLUDE} - not found")
|
MESSAGE(STATUS "Looking for ${INCLUDE} - not found")
|
||||||
SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
|
SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
"Determining if the include file ${INCLUDE} "
|
"Determining if the include file ${INCLUDE} "
|
||||||
"exists failed with the following output:\n"
|
"exists failed with the following output:\n"
|
||||||
"${OUTPUT}\n\n")
|
"${OUTPUT}\n\n")
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
#
|
#
|
||||||
# INCLUDE - name of include file
|
# INCLUDE - name of include file
|
||||||
# VARIABLE - variable to return result
|
# VARIABLE - variable to return result
|
||||||
#
|
#
|
||||||
# An optional third argument is the CFlags to add to the compile line
|
# An optional third argument is the CFlags to add to the compile line
|
||||||
# or you can use CMAKE_REQUIRED_FLAGS.
|
# or you can use CMAKE_REQUIRED_FLAGS.
|
||||||
#
|
#
|
||||||
# The following variables may be set before calling this macro to
|
# The following variables may be set before calling this macro to
|
||||||
|
@ -49,10 +49,10 @@ MACRO(CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE)
|
||||||
${CMAKE_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.cxx
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.cxx
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
||||||
CMAKE_FLAGS
|
CMAKE_FLAGS
|
||||||
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILE_FLAGS}
|
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILE_FLAGS}
|
||||||
"${CHECK_INCLUDE_FILE_CXX_INCLUDE_DIRS}"
|
"${CHECK_INCLUDE_FILE_CXX_INCLUDE_DIRS}"
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
|
||||||
IF(${ARGC} EQUAL 3)
|
IF(${ARGC} EQUAL 3)
|
||||||
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_SAVE})
|
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_SAVE})
|
||||||
|
@ -61,14 +61,14 @@ MACRO(CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE)
|
||||||
IF(${VARIABLE})
|
IF(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for C++ include ${INCLUDE} - found")
|
MESSAGE(STATUS "Looking for C++ include ${INCLUDE} - found")
|
||||||
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Determining if the include file ${INCLUDE} "
|
"Determining if the include file ${INCLUDE} "
|
||||||
"exists passed with the following output:\n"
|
"exists passed with the following output:\n"
|
||||||
"${OUTPUT}\n\n")
|
"${OUTPUT}\n\n")
|
||||||
ELSE(${VARIABLE})
|
ELSE(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for C++ include ${INCLUDE} - not found")
|
MESSAGE(STATUS "Looking for C++ include ${INCLUDE} - not found")
|
||||||
SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
|
SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
"Determining if the include file ${INCLUDE} "
|
"Determining if the include file ${INCLUDE} "
|
||||||
"exists failed with the following output:\n"
|
"exists failed with the following output:\n"
|
||||||
"${OUTPUT}\n\n")
|
"${OUTPUT}\n\n")
|
||||||
|
|
|
@ -59,21 +59,21 @@ MACRO(CHECK_INCLUDE_FILES INCLUDE VARIABLE)
|
||||||
${CMAKE_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFiles.c
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFiles.c
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
||||||
CMAKE_FLAGS
|
CMAKE_FLAGS
|
||||||
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILES_FLAGS}
|
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILES_FLAGS}
|
||||||
"${CHECK_INCLUDE_FILES_INCLUDE_DIRS}"
|
"${CHECK_INCLUDE_FILES_INCLUDE_DIRS}"
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
IF(${VARIABLE})
|
IF(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for ${_description} - found")
|
MESSAGE(STATUS "Looking for ${_description} - found")
|
||||||
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Determining if files ${INCLUDE} "
|
"Determining if files ${INCLUDE} "
|
||||||
"exist passed with the following output:\n"
|
"exist passed with the following output:\n"
|
||||||
"${OUTPUT}\n\n")
|
"${OUTPUT}\n\n")
|
||||||
ELSE(${VARIABLE})
|
ELSE(${VARIABLE})
|
||||||
MESSAGE(STATUS "Looking for ${_description} - not found.")
|
MESSAGE(STATUS "Looking for ${_description} - not found.")
|
||||||
SET(${VARIABLE} "" CACHE INTERNAL "Have includes ${INCLUDE}")
|
SET(${VARIABLE} "" CACHE INTERNAL "Have includes ${INCLUDE}")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
"Determining if files ${INCLUDE} "
|
"Determining if files ${INCLUDE} "
|
||||||
"exist failed with the following output:\n"
|
"exist failed with the following output:\n"
|
||||||
"${OUTPUT}\nSource:\n${CMAKE_CONFIGURABLE_FILE_CONTENT}\n")
|
"${OUTPUT}\nSource:\n${CMAKE_CONFIGURABLE_FILE_CONTENT}\n")
|
||||||
|
|
|
@ -48,14 +48,14 @@ IF(BUILD_TESTING)
|
||||||
INCLUDE(CTest)
|
INCLUDE(CTest)
|
||||||
SET(RUN_FROM_DART)
|
SET(RUN_FROM_DART)
|
||||||
|
|
||||||
FIND_PROGRAM(COMPRESSIONCOMMAND NAMES gzip compress zip
|
FIND_PROGRAM(COMPRESSIONCOMMAND NAMES gzip compress zip
|
||||||
DOC "Path to program used to compress files for transfer to the dart server")
|
DOC "Path to program used to compress files for transfer to the dart server")
|
||||||
FIND_PROGRAM(GUNZIPCOMMAND gunzip DOC "Path to gunzip executable")
|
FIND_PROGRAM(GUNZIPCOMMAND gunzip DOC "Path to gunzip executable")
|
||||||
FIND_PROGRAM(JAVACOMMAND java DOC "Path to java command, used by the Dart server to create html.")
|
FIND_PROGRAM(JAVACOMMAND java DOC "Path to java command, used by the Dart server to create html.")
|
||||||
OPTION(DART_VERBOSE_BUILD "Show the actual output of the build, or if off show a . for each 1024 bytes."
|
OPTION(DART_VERBOSE_BUILD "Show the actual output of the build, or if off show a . for each 1024 bytes."
|
||||||
OFF)
|
OFF)
|
||||||
OPTION(DART_BUILD_ERROR_REPORT_LIMIT "Limit of reported errors, -1 reports all." -1 )
|
OPTION(DART_BUILD_ERROR_REPORT_LIMIT "Limit of reported errors, -1 reports all." -1 )
|
||||||
OPTION(DART_BUILD_WARNING_REPORT_LIMIT "Limit of reported warnings, -1 reports all." -1 )
|
OPTION(DART_BUILD_WARNING_REPORT_LIMIT "Limit of reported warnings, -1 reports all." -1 )
|
||||||
|
|
||||||
SET(VERBOSE_BUILD ${DART_VERBOSE_BUILD})
|
SET(VERBOSE_BUILD ${DART_VERBOSE_BUILD})
|
||||||
SET(BUILD_ERROR_REPORT_LIMIT ${DART_BUILD_ERROR_REPORT_LIMIT})
|
SET(BUILD_ERROR_REPORT_LIMIT ${DART_BUILD_ERROR_REPORT_LIMIT})
|
||||||
|
@ -64,13 +64,13 @@ IF(BUILD_TESTING)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
COMPRESSIONCOMMAND
|
COMPRESSIONCOMMAND
|
||||||
DART_BUILD_ERROR_REPORT_LIMIT
|
DART_BUILD_ERROR_REPORT_LIMIT
|
||||||
DART_BUILD_WARNING_REPORT_LIMIT
|
DART_BUILD_WARNING_REPORT_LIMIT
|
||||||
DART_TESTING_TIMEOUT
|
DART_TESTING_TIMEOUT
|
||||||
DART_VERBOSE_BUILD
|
DART_VERBOSE_BUILD
|
||||||
DELIVER_CONTINUOUS_EMAIL
|
DELIVER_CONTINUOUS_EMAIL
|
||||||
GUNZIPCOMMAND
|
GUNZIPCOMMAND
|
||||||
JAVACOMMAND
|
JAVACOMMAND
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(HAVE_DART)
|
SET(HAVE_DART)
|
||||||
|
@ -80,7 +80,7 @@ IF(BUILD_TESTING)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Section #2:
|
# Section #2:
|
||||||
#
|
#
|
||||||
# Make necessary directories and configure testing scripts
|
# Make necessary directories and configure testing scripts
|
||||||
#
|
#
|
||||||
# find a tcl shell command
|
# find a tcl shell command
|
||||||
|
@ -112,7 +112,7 @@ IF(BUILD_TESTING)
|
||||||
SET(DART_EXPERIMENTAL_NAME "${DART_EXPERIMENTAL_NAME}${PROJECT_NAME}")
|
SET(DART_EXPERIMENTAL_NAME "${DART_EXPERIMENTAL_NAME}${PROJECT_NAME}")
|
||||||
ENDIF(DART_EXPERIMENTAL_USE_PROJECT_NAME)
|
ENDIF(DART_EXPERIMENTAL_USE_PROJECT_NAME)
|
||||||
ENDIF (HAVE_DART)
|
ENDIF (HAVE_DART)
|
||||||
|
|
||||||
SET(RUN_FROM_CTEST_OR_DART 1)
|
SET(RUN_FROM_CTEST_OR_DART 1)
|
||||||
INCLUDE(CTestTargets)
|
INCLUDE(CTestTargets)
|
||||||
SET(RUN_FROM_CTEST_OR_DART)
|
SET(RUN_FROM_CTEST_OR_DART)
|
||||||
|
|
|
@ -33,10 +33,10 @@ IF (BUILD_DOCUMENTATION)
|
||||||
FIND_PACKAGE(Perl)
|
FIND_PACKAGE(Perl)
|
||||||
FIND_PACKAGE(Wget)
|
FIND_PACKAGE(Wget)
|
||||||
|
|
||||||
OPTION(DOCUMENTATION_HTML_HELP
|
OPTION(DOCUMENTATION_HTML_HELP
|
||||||
"Build the HTML Help file (CHM)." OFF)
|
"Build the HTML Help file (CHM)." OFF)
|
||||||
|
|
||||||
OPTION(DOCUMENTATION_HTML_TARZ
|
OPTION(DOCUMENTATION_HTML_TARZ
|
||||||
"Build a compressed tar archive of the HTML doc." OFF)
|
"Build a compressed tar archive of the HTML doc." OFF)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
|
@ -44,7 +44,7 @@ IF (BUILD_DOCUMENTATION)
|
||||||
DOCUMENTATION_HTML_TARZ
|
DOCUMENTATION_HTML_TARZ
|
||||||
)
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
# The documentation process is controled by a batch file.
|
# The documentation process is controled by a batch file.
|
||||||
# We will probably need bash to create the custom target
|
# We will probably need bash to create the custom target
|
||||||
#
|
#
|
||||||
|
|
|
@ -40,7 +40,7 @@ if(ALSA_INCLUDE_DIR AND EXISTS "${ALSA_INCLUDE_DIR}/alsa/version.h")
|
||||||
unset(alsa_version_str)
|
unset(alsa_version_str)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# - Locate AVIFILE library and include paths
|
# - Locate AVIFILE library and include paths
|
||||||
# AVIFILE (http://avifile.sourceforge.net/)is a set of libraries for
|
# AVIFILE (http://avifile.sourceforge.net/)is a set of libraries for
|
||||||
# i386 machines
|
# i386 machines
|
||||||
# to use various AVI codecs. Support is limited beyond Linux. Windows
|
# to use various AVI codecs. Support is limited beyond Linux. Windows
|
||||||
# provides native AVI support, and so doesn't need this library.
|
# provides native AVI support, and so doesn't need this library.
|
||||||
|
|
|
@ -41,7 +41,7 @@ IF (BZIP2_INCLUDE_DIR AND EXISTS "${BZIP2_INCLUDE_DIR}/bzlib.h")
|
||||||
STRING(REGEX REPLACE ".* bzip2/libbzip2 version ([0-9]+\\.[^ ]+) of [0-9]+ .*" "\\1" BZIP2_VERSION_STRING "${BZLIB_H}")
|
STRING(REGEX REPLACE ".* bzip2/libbzip2 version ([0-9]+\\.[^ ]+) of [0-9]+ .*" "\\1" BZIP2_VERSION_STRING "${BZLIB_H}")
|
||||||
ENDIF (BZIP2_INCLUDE_DIR AND EXISTS "${BZIP2_INCLUDE_DIR}/bzlib.h")
|
ENDIF (BZIP2_INCLUDE_DIR AND EXISTS "${BZIP2_INCLUDE_DIR}/bzlib.h")
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
macro(_FIND_BULLET_LIBRARY _var)
|
macro(_FIND_BULLET_LIBRARY _var)
|
||||||
find_library(${_var}
|
find_library(${_var}
|
||||||
NAMES
|
NAMES
|
||||||
${ARGN}
|
${ARGN}
|
||||||
HINTS
|
HINTS
|
||||||
${BULLET_ROOT}
|
${BULLET_ROOT}
|
||||||
|
@ -68,7 +68,7 @@ _FIND_BULLET_LIBRARY(BULLET_SOFTBODY_LIBRARY BulletSoftBody)
|
||||||
_FIND_BULLET_LIBRARY(BULLET_SOFTBODY_LIBRARY_DEBUG BulletSoftBody_Debug BulletSoftBody_d)
|
_FIND_BULLET_LIBRARY(BULLET_SOFTBODY_LIBRARY_DEBUG BulletSoftBody_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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Bullet DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Bullet DEFAULT_MSG
|
||||||
|
|
|
@ -25,7 +25,7 @@ FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
||||||
MARK_AS_ADVANCED(CURL_INCLUDE_DIR)
|
MARK_AS_ADVANCED(CURL_INCLUDE_DIR)
|
||||||
|
|
||||||
# Look for the library.
|
# Look for the library.
|
||||||
FIND_LIBRARY(CURL_LIBRARY NAMES
|
FIND_LIBRARY(CURL_LIBRARY NAMES
|
||||||
curl
|
curl
|
||||||
# Windows MSVC prebuilts:
|
# Windows MSVC prebuilts:
|
||||||
curllib
|
curllib
|
||||||
|
@ -46,7 +46,7 @@ IF(CURL_INCLUDE_DIR)
|
||||||
ENDFOREACH(_curl_version_header)
|
ENDFOREACH(_curl_version_header)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL
|
||||||
|
|
|
@ -24,31 +24,31 @@
|
||||||
|
|
||||||
get_filename_component(
|
get_filename_component(
|
||||||
CVSNT_TypeLib_Win32
|
CVSNT_TypeLib_Win32
|
||||||
"[HKEY_CLASSES_ROOT\\TypeLib\\{2BDF7A65-0BFE-4B1A-9205-9AB900C7D0DA}\\1.0\\0\\win32]"
|
"[HKEY_CLASSES_ROOT\\TypeLib\\{2BDF7A65-0BFE-4B1A-9205-9AB900C7D0DA}\\1.0\\0\\win32]"
|
||||||
PATH)
|
PATH)
|
||||||
|
|
||||||
get_filename_component(
|
get_filename_component(
|
||||||
CVSNT_Services_EventMessagePath
|
CVSNT_Services_EventMessagePath
|
||||||
"[HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services\\Eventlog\\Application\\cvsnt;EventMessageFile]"
|
"[HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services\\Eventlog\\Application\\cvsnt;EventMessageFile]"
|
||||||
PATH)
|
PATH)
|
||||||
|
|
||||||
# WinCVS (in case CVSNT was installed in the same directory)
|
# WinCVS (in case CVSNT was installed in the same directory)
|
||||||
|
|
||||||
get_filename_component(
|
get_filename_component(
|
||||||
WinCVS_Folder_Command
|
WinCVS_Folder_Command
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\wincvs\\command]"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\wincvs\\command]"
|
||||||
PATH)
|
PATH)
|
||||||
|
|
||||||
# TortoiseCVS (in case CVSNT was installed in the same directory)
|
# TortoiseCVS (in case CVSNT was installed in the same directory)
|
||||||
|
|
||||||
get_filename_component(
|
get_filename_component(
|
||||||
TortoiseCVS_Folder_Command
|
TortoiseCVS_Folder_Command
|
||||||
"[HKEY_CLASSES_ROOT\\CVS\\shell\\open\\command]"
|
"[HKEY_CLASSES_ROOT\\CVS\\shell\\open\\command]"
|
||||||
PATH)
|
PATH)
|
||||||
|
|
||||||
get_filename_component(
|
get_filename_component(
|
||||||
TortoiseCVS_DefaultIcon
|
TortoiseCVS_DefaultIcon
|
||||||
"[HKEY_CLASSES_ROOT\\CVS\\DefaultIcon]"
|
"[HKEY_CLASSES_ROOT\\CVS\\DefaultIcon]"
|
||||||
PATH)
|
PATH)
|
||||||
|
|
||||||
find_program(CVS_EXECUTABLE cvs
|
find_program(CVS_EXECUTABLE cvs
|
||||||
|
@ -62,7 +62,7 @@ find_program(CVS_EXECUTABLE cvs
|
||||||
)
|
)
|
||||||
mark_as_advanced(CVS_EXECUTABLE)
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
|
|
|
@ -59,22 +59,22 @@ IF (WIN32)
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
|
FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
|
||||||
/Library/Frameworks/Inventor.framework/Headers
|
/Library/Frameworks/Inventor.framework/Headers
|
||||||
)
|
)
|
||||||
FIND_LIBRARY(COIN3D_LIBRARIES Coin
|
FIND_LIBRARY(COIN3D_LIBRARIES Coin
|
||||||
/Library/Frameworks/Inventor.framework/Libraries
|
/Library/Frameworks/Inventor.framework/Libraries
|
||||||
)
|
)
|
||||||
SET(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
|
SET(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
|
||||||
ELSE(APPLE)
|
ELSE(APPLE)
|
||||||
|
|
||||||
FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
|
FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
|
||||||
FIND_LIBRARY(COIN3D_LIBRARIES Coin)
|
FIND_LIBRARY(COIN3D_LIBRARIES Coin)
|
||||||
|
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
ENDIF (WIN32)
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# CUPS_INCLUDE_DIR - the Cups include directory
|
# CUPS_INCLUDE_DIR - the Cups include directory
|
||||||
# CUPS_LIBRARIES - Libraries needed to use Cups
|
# CUPS_LIBRARIES - Libraries needed to use Cups
|
||||||
# CUPS_VERSION_STRING - version of Cups found (since CMake 2.8.8)
|
# CUPS_VERSION_STRING - version of Cups found (since CMake 2.8.8)
|
||||||
# Set CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE to TRUE if you need a version which
|
# Set CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE to TRUE if you need a version which
|
||||||
# features this function (i.e. at least 1.1.19)
|
# features this function (i.e. at least 1.1.19)
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -65,5 +65,5 @@ else (CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE)
|
||||||
REQUIRED_VARS CUPS_LIBRARIES CUPS_INCLUDE_DIR
|
REQUIRED_VARS CUPS_LIBRARIES CUPS_INCLUDE_DIR
|
||||||
VERSION_VAR CUPS_VERSION_STRING)
|
VERSION_VAR CUPS_VERSION_STRING)
|
||||||
endif (CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE)
|
endif (CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE)
|
||||||
|
|
||||||
mark_as_advanced(CUPS_INCLUDE_DIR CUPS_LIBRARIES)
|
mark_as_advanced(CUPS_INCLUDE_DIR CUPS_LIBRARIES)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# CURSES_HAVE_NCURSES_CURSES_H - true if ncurses/curses.h is available
|
# CURSES_HAVE_NCURSES_CURSES_H - true if ncurses/curses.h is available
|
||||||
# CURSES_LIBRARY - set for backwards compatibility with 2.4 CMake
|
# CURSES_LIBRARY - set for backwards compatibility with 2.4 CMake
|
||||||
#
|
#
|
||||||
# Set CURSES_NEED_NCURSES to TRUE before the FIND_PACKAGE() command if NCurses
|
# Set CURSES_NEED_NCURSES to TRUE before the FIND_PACKAGE() command if NCurses
|
||||||
# functionality is required.
|
# functionality is required.
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -53,15 +53,15 @@ ENDIF()
|
||||||
# some web pages also say that even with ncurses there is not always a ncurses.h:
|
# some web pages also say that even with ncurses there is not always a ncurses.h:
|
||||||
# http://osdir.com/ml/gnome.apps.mc.devel/2002-06/msg00029.html
|
# http://osdir.com/ml/gnome.apps.mc.devel/2002-06/msg00029.html
|
||||||
# So at first try ncurses.h, if not found, try to find curses.h under the same
|
# So at first try ncurses.h, if not found, try to find curses.h under the same
|
||||||
# prefix as the library was found, if still not found, try curses.h with the
|
# prefix as the library was found, if still not found, try curses.h with the
|
||||||
# default search paths.
|
# default search paths.
|
||||||
IF(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES)
|
IF(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES)
|
||||||
INCLUDE(CheckLibraryExists)
|
INCLUDE(CheckLibraryExists)
|
||||||
CHECK_LIBRARY_EXISTS("${CURSES_CURSES_LIBRARY}"
|
CHECK_LIBRARY_EXISTS("${CURSES_CURSES_LIBRARY}"
|
||||||
wsyncup "" CURSES_CURSES_HAS_WSYNCUP)
|
wsyncup "" CURSES_CURSES_HAS_WSYNCUP)
|
||||||
|
|
||||||
IF(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_HAS_WSYNCUP)
|
IF(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_HAS_WSYNCUP)
|
||||||
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}"
|
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}"
|
||||||
wsyncup "" CURSES_NCURSES_HAS_WSYNCUP)
|
wsyncup "" CURSES_NCURSES_HAS_WSYNCUP)
|
||||||
IF( CURSES_NCURSES_HAS_WSYNCUP)
|
IF( CURSES_NCURSES_HAS_WSYNCUP)
|
||||||
SET(CURSES_USE_NCURSES TRUE)
|
SET(CURSES_USE_NCURSES TRUE)
|
||||||
|
@ -79,7 +79,7 @@ IF(NOT CURSES_USE_NCURSES)
|
||||||
|
|
||||||
# for compatibility with older FindCurses.cmake this has to be in the cache
|
# for compatibility with older FindCurses.cmake this has to be in the cache
|
||||||
# FORCE must not be used since this would break builds which preload a cache wqith these variables set
|
# FORCE must not be used since this would break builds which preload a cache wqith these variables set
|
||||||
SET(CURSES_INCLUDE_PATH "${CURSES_CURSES_H_PATH}"
|
SET(CURSES_INCLUDE_PATH "${CURSES_CURSES_H_PATH}"
|
||||||
CACHE FILEPATH "The curses include path")
|
CACHE FILEPATH "The curses include path")
|
||||||
SET(CURSES_LIBRARY "${CURSES_CURSES_LIBRARY}"
|
SET(CURSES_LIBRARY "${CURSES_CURSES_LIBRARY}"
|
||||||
CACHE FILEPATH "The curses library")
|
CACHE FILEPATH "The curses library")
|
||||||
|
@ -91,23 +91,23 @@ ELSE(NOT CURSES_USE_NCURSES)
|
||||||
FIND_FILE(CURSES_HAVE_NCURSES_H ncurses.h)
|
FIND_FILE(CURSES_HAVE_NCURSES_H ncurses.h)
|
||||||
FIND_FILE(CURSES_HAVE_NCURSES_NCURSES_H ncurses/ncurses.h)
|
FIND_FILE(CURSES_HAVE_NCURSES_NCURSES_H ncurses/ncurses.h)
|
||||||
FIND_FILE(CURSES_HAVE_NCURSES_CURSES_H ncurses/curses.h)
|
FIND_FILE(CURSES_HAVE_NCURSES_CURSES_H ncurses/curses.h)
|
||||||
FIND_FILE(CURSES_HAVE_CURSES_H curses.h
|
FIND_FILE(CURSES_HAVE_CURSES_H curses.h
|
||||||
HINTS "${_cursesParentDir}/include")
|
HINTS "${_cursesParentDir}/include")
|
||||||
|
|
||||||
FIND_PATH(CURSES_NCURSES_INCLUDE_PATH ncurses.h ncurses/ncurses.h
|
FIND_PATH(CURSES_NCURSES_INCLUDE_PATH ncurses.h ncurses/ncurses.h
|
||||||
ncurses/curses.h)
|
ncurses/curses.h)
|
||||||
FIND_PATH(CURSES_NCURSES_INCLUDE_PATH curses.h
|
FIND_PATH(CURSES_NCURSES_INCLUDE_PATH curses.h
|
||||||
HINTS "${_cursesParentDir}/include")
|
HINTS "${_cursesParentDir}/include")
|
||||||
|
|
||||||
# for compatibility with older FindCurses.cmake this has to be in the cache
|
# for compatibility with older FindCurses.cmake this has to be in the cache
|
||||||
# FORCE must not be used since this would break builds which preload
|
# FORCE must not be used since this would break builds which preload
|
||||||
# however if the value of the variable has NOTFOUND in it, then
|
# however if the value of the variable has NOTFOUND in it, then
|
||||||
# it is OK to force, and we need to force in order to have it work.
|
# it is OK to force, and we need to force in order to have it work.
|
||||||
# a cache wqith these variables set
|
# a cache wqith these variables set
|
||||||
# only put ncurses include and library into
|
# only put ncurses include and library into
|
||||||
# variables if they are found
|
# variables if they are found
|
||||||
IF(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H)
|
IF(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H)
|
||||||
GET_FILENAME_COMPONENT(CURSES_NCURSES_INCLUDE_PATH
|
GET_FILENAME_COMPONENT(CURSES_NCURSES_INCLUDE_PATH
|
||||||
"${CURSES_HAVE_NCURSES_NCURSES_H}" PATH)
|
"${CURSES_HAVE_NCURSES_NCURSES_H}" PATH)
|
||||||
ENDIF(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H)
|
ENDIF(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H)
|
||||||
IF(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY)
|
IF(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY)
|
||||||
|
@ -115,13 +115,13 @@ ELSE(NOT CURSES_USE_NCURSES)
|
||||||
IF(CURSES_INCLUDE_PATH MATCHES NOTFOUND)
|
IF(CURSES_INCLUDE_PATH MATCHES NOTFOUND)
|
||||||
SET(FORCE_IT FORCE)
|
SET(FORCE_IT FORCE)
|
||||||
ENDIF(CURSES_INCLUDE_PATH MATCHES NOTFOUND)
|
ENDIF(CURSES_INCLUDE_PATH MATCHES NOTFOUND)
|
||||||
SET(CURSES_INCLUDE_PATH "${CURSES_NCURSES_INCLUDE_PATH}"
|
SET(CURSES_INCLUDE_PATH "${CURSES_NCURSES_INCLUDE_PATH}"
|
||||||
CACHE FILEPATH "The curses include path" ${FORCE_IT})
|
CACHE FILEPATH "The curses include path" ${FORCE_IT})
|
||||||
SET( FORCE_IT)
|
SET( FORCE_IT)
|
||||||
IF(CURSES_LIBRARY MATCHES NOTFOUND)
|
IF(CURSES_LIBRARY MATCHES NOTFOUND)
|
||||||
SET(FORCE_IT FORCE)
|
SET(FORCE_IT FORCE)
|
||||||
ENDIF(CURSES_LIBRARY MATCHES NOTFOUND)
|
ENDIF(CURSES_LIBRARY MATCHES NOTFOUND)
|
||||||
SET(CURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}"
|
SET(CURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}"
|
||||||
CACHE FILEPATH "The curses library" ${FORCE_IT})
|
CACHE FILEPATH "The curses library" ${FORCE_IT})
|
||||||
ENDIF(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY)
|
ENDIF(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY)
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ FIND_LIBRARY(CURSES_FORM_LIBRARY form )
|
||||||
# for compatibility with older FindCurses.cmake this has to be in the cache
|
# for compatibility with older FindCurses.cmake this has to be in the cache
|
||||||
# FORCE must not be used since this would break builds which preload a cache
|
# FORCE must not be used since this would break builds which preload a cache
|
||||||
# qith these variables set
|
# qith these variables set
|
||||||
SET(FORM_LIBRARY "${CURSES_FORM_LIBRARY}"
|
SET(FORM_LIBRARY "${CURSES_FORM_LIBRARY}"
|
||||||
CACHE FILEPATH "The curses form library")
|
CACHE FILEPATH "The curses form library")
|
||||||
|
|
||||||
# Need to provide the *_LIBRARIES
|
# Need to provide the *_LIBRARIES
|
||||||
|
@ -153,7 +153,7 @@ ENDIF(CURSES_FORM_LIBRARY)
|
||||||
# Proper name is *_INCLUDE_DIR
|
# Proper name is *_INCLUDE_DIR
|
||||||
SET(CURSES_INCLUDE_DIR ${CURSES_INCLUDE_PATH})
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
# input_files_to_testgen The list of header files containing the
|
# input_files_to_testgen The list of header files containing the
|
||||||
# CxxTest::TestSuite's to be included in
|
# CxxTest::TestSuite's to be included in
|
||||||
# this runner
|
# this runner
|
||||||
#
|
#
|
||||||
# #==============
|
# #==============
|
||||||
# Example Usage:
|
# Example Usage:
|
||||||
#
|
#
|
||||||
|
@ -67,13 +67,13 @@
|
||||||
# 1. Invoke the testgen executable to autogenerate foo_test.cc in the
|
# 1. Invoke the testgen executable to autogenerate foo_test.cc in the
|
||||||
# binary tree from "foo_test.h" in the current source directory.
|
# binary tree from "foo_test.h" in the current source directory.
|
||||||
# 2. Create an executable and test called unittest_foo.
|
# 2. Create an executable and test called unittest_foo.
|
||||||
#
|
#
|
||||||
# #=============
|
# #=============
|
||||||
# Example foo_test.h:
|
# Example foo_test.h:
|
||||||
#
|
#
|
||||||
# #include <cxxtest/TestSuite.h>
|
# #include <cxxtest/TestSuite.h>
|
||||||
#
|
#
|
||||||
# class MyTestSuite : public CxxTest::TestSuite
|
# class MyTestSuite : public CxxTest::TestSuite
|
||||||
# {
|
# {
|
||||||
# public:
|
# public:
|
||||||
# void testAddition( void )
|
# void testAddition( void )
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
FIND_PATH(DART_ROOT README.INSTALL
|
FIND_PATH(DART_ROOT README.INSTALL
|
||||||
$ENV{DART_ROOT}
|
$ENV{DART_ROOT}
|
||||||
${PROJECT_SOURCE_DIR}/Dart
|
${PROJECT_SOURCE_DIR}/Dart
|
||||||
/usr/share/Dart
|
/usr/share/Dart
|
||||||
C:/Dart
|
C:/Dart
|
||||||
"$ENV{ProgramFiles}/Dart"
|
"$ENV{ProgramFiles}/Dart"
|
||||||
"C:/Program Files/Dart"
|
"C:/Program Files/Dart"
|
||||||
${PROJECT_SOURCE_DIR}/../Dart
|
${PROJECT_SOURCE_DIR}/../Dart
|
||||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
|
||||||
DOC "If you have Dart installed, where is it located?"
|
DOC "If you have Dart installed, where is it located?"
|
||||||
)
|
)
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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
|
||||||
DOC "The path the the directory that contains il.h"
|
DOC "The path the the directory that contains il.h"
|
||||||
)
|
)
|
||||||
|
@ -69,6 +69,6 @@ FIND_LIBRARY(ILU_LIBRARIES
|
||||||
|
|
||||||
#MESSAGE("ILU_LIBRARIES is ${ILU_LIBRARIES}")
|
#MESSAGE("ILU_LIBRARIES is ${ILU_LIBRARIES}")
|
||||||
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG
|
||||||
IL_LIBRARIES ILU_LIBRARIES
|
IL_LIBRARIES ILU_LIBRARIES
|
||||||
ILUT_LIBRARIES IL_INCLUDE_DIR)
|
ILUT_LIBRARIES IL_INCLUDE_DIR)
|
||||||
|
|
|
@ -39,13 +39,13 @@ ENDIF(Doxygen_FIND_QUIETLY)
|
||||||
|
|
||||||
# ===== Rationale for OS X AppBundle mods below =====
|
# ===== Rationale for OS X AppBundle mods below =====
|
||||||
# With the OS X GUI version, Doxygen likes to be installed to /Applications and
|
# With the OS X GUI version, Doxygen likes to be installed to /Applications and
|
||||||
# it contains the doxygen executable in the bundle. In the versions I've
|
# it contains the doxygen executable in the bundle. In the versions I've
|
||||||
# seen, it is located in Resources, but in general, more often binaries are
|
# seen, it is located in Resources, but in general, more often binaries are
|
||||||
# located in MacOS.
|
# located in MacOS.
|
||||||
#
|
#
|
||||||
# NOTE: The official Doxygen.app that is distributed for OS X uses non-standard
|
# NOTE: The official Doxygen.app that is distributed for OS X uses non-standard
|
||||||
# conventions. Instead of the command-line "doxygen" tool being placed in
|
# conventions. Instead of the command-line "doxygen" tool being placed in
|
||||||
# Doxygen.app/Contents/MacOS, "Doxywizard" is placed there instead and
|
# Doxygen.app/Contents/MacOS, "Doxywizard" is placed there instead and
|
||||||
# "doxygen" is placed in Contents/Resources. This is most likely done
|
# "doxygen" is placed in Contents/Resources. This is most likely done
|
||||||
# so that something happens when people double-click on the Doxygen.app
|
# so that something happens when people double-click on the Doxygen.app
|
||||||
# package. Unfortunately, CMake gets confused by this as when it sees the
|
# package. Unfortunately, CMake gets confused by this as when it sees the
|
||||||
|
@ -59,7 +59,7 @@ if(APPLE)
|
||||||
SET(CMAKE_FIND_APPBUNDLE "NEVER")
|
SET(CMAKE_FIND_APPBUNDLE "NEVER")
|
||||||
endif()
|
endif()
|
||||||
# FYI:
|
# FYI:
|
||||||
# In the older versions of OS X Doxygen, dot was included with the
|
# In the older versions of OS X Doxygen, dot was included with the
|
||||||
# Doxygen bundle. But the new versions require you to download
|
# Doxygen bundle. But the new versions require you to download
|
||||||
# Graphviz.app which contains "dot" in it's bundle.
|
# Graphviz.app which contains "dot" in it's bundle.
|
||||||
# ============== End OSX stuff ================
|
# ============== End OSX stuff ================
|
||||||
|
@ -91,7 +91,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Doxygen REQUIRED_VARS DOXYGEN_EXECUTABLE VERSI
|
||||||
IF(NOT DOXYGEN_SKIP_DOT)
|
IF(NOT DOXYGEN_SKIP_DOT)
|
||||||
FIND_PROGRAM(DOXYGEN_DOT_EXECUTABLE
|
FIND_PROGRAM(DOXYGEN_DOT_EXECUTABLE
|
||||||
NAMES dot
|
NAMES dot
|
||||||
PATHS
|
PATHS
|
||||||
"$ENV{ProgramFiles}/Graphviz 2.21/bin"
|
"$ENV{ProgramFiles}/Graphviz 2.21/bin"
|
||||||
"C:/Program Files/Graphviz 2.21/bin"
|
"C:/Program Files/Graphviz 2.21/bin"
|
||||||
"$ENV{ProgramFiles}/ATT/Graphviz/bin"
|
"$ENV{ProgramFiles}/ATT/Graphviz/bin"
|
||||||
|
@ -102,13 +102,13 @@ IF(NOT DOXYGEN_SKIP_DOT)
|
||||||
/Applications/Doxygen.app/Contents/MacOS
|
/Applications/Doxygen.app/Contents/MacOS
|
||||||
DOC "Graphviz Dot tool for using Doxygen"
|
DOC "Graphviz Dot tool for using Doxygen"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(DOXYGEN_DOT_EXECUTABLE)
|
if(DOXYGEN_DOT_EXECUTABLE)
|
||||||
set(DOXYGEN_DOT_FOUND TRUE)
|
set(DOXYGEN_DOT_FOUND TRUE)
|
||||||
# The Doxyfile wants the path to Dot, not the entire path and executable
|
# The Doxyfile wants the path to Dot, not the entire path and executable
|
||||||
get_filename_component(DOXYGEN_DOT_PATH "${DOXYGEN_DOT_EXECUTABLE}" PATH CACHE)
|
get_filename_component(DOXYGEN_DOT_PATH "${DOXYGEN_DOT_EXECUTABLE}" PATH CACHE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif(NOT DOXYGEN_SKIP_DOT)
|
endif(NOT DOXYGEN_SKIP_DOT)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -44,7 +44,7 @@ if (EXPAT_INCLUDE_DIR AND EXISTS "${EXPAT_INCLUDE_DIR}/expat.h")
|
||||||
endforeach(VPART)
|
endforeach(VPART)
|
||||||
endif (EXPAT_INCLUDE_DIR AND EXISTS "${EXPAT_INCLUDE_DIR}/expat.h")
|
endif (EXPAT_INCLUDE_DIR AND EXISTS "${EXPAT_INCLUDE_DIR}/expat.h")
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT
|
||||||
|
|
|
@ -136,8 +136,8 @@ ENDIF(NOT FLTK_DIR)
|
||||||
# Fluid
|
# Fluid
|
||||||
IF(FLUID_COMMAND)
|
IF(FLUID_COMMAND)
|
||||||
SET(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
SET(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
||||||
ELSE(FLUID_COMMAND)
|
ELSE(FLUID_COMMAND)
|
||||||
FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid PATHS
|
FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid PATHS
|
||||||
${FLTK_EXECUTABLE_DIRS}
|
${FLTK_EXECUTABLE_DIRS}
|
||||||
${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo
|
${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo
|
||||||
${FLTK_EXECUTABLE_DIRS}/Debug
|
${FLTK_EXECUTABLE_DIRS}/Debug
|
||||||
|
@ -220,10 +220,10 @@ ENDIF(NOT FLTK_DIR)
|
||||||
${_FLTK_POSSIBLE_INCLUDE_DIRS}
|
${_FLTK_POSSIBLE_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PATH(FLTK_INCLUDE_DIR
|
FIND_PATH(FLTK_INCLUDE_DIR
|
||||||
NAMES FL/Fl.h FL/Fl.H # fltk 1.1.9 has Fl.H (#8376)
|
NAMES FL/Fl.h FL/Fl.H # fltk 1.1.9 has Fl.H (#8376)
|
||||||
PATHS ${FLTK_INCLUDE_SEARCH_PATH})
|
PATHS ${FLTK_INCLUDE_SEARCH_PATH})
|
||||||
|
|
||||||
#
|
#
|
||||||
# Try to find FLTK library
|
# Try to find FLTK library
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
|
|
|
@ -122,10 +122,10 @@ IF(FLTK2_DIR)
|
||||||
INCLUDE(${FLTK2_DIR}/FLTK2Config.cmake)
|
INCLUDE(${FLTK2_DIR}/FLTK2Config.cmake)
|
||||||
|
|
||||||
# Fluid
|
# Fluid
|
||||||
IF(FLUID_COMMAND)
|
IF(FLUID_COMMAND)
|
||||||
SET(FLTK2_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
SET(FLTK2_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
||||||
ELSE(FLUID_COMMAND)
|
ELSE(FLUID_COMMAND)
|
||||||
FIND_PROGRAM(FLTK2_FLUID_EXECUTABLE fluid2 PATHS
|
FIND_PROGRAM(FLTK2_FLUID_EXECUTABLE fluid2 PATHS
|
||||||
${FLTK2_EXECUTABLE_DIRS}
|
${FLTK2_EXECUTABLE_DIRS}
|
||||||
${FLTK2_EXECUTABLE_DIRS}/RelWithDebInfo
|
${FLTK2_EXECUTABLE_DIRS}/RelWithDebInfo
|
||||||
${FLTK2_EXECUTABLE_DIRS}/Debug
|
${FLTK2_EXECUTABLE_DIRS}/Debug
|
||||||
|
@ -136,7 +136,7 @@ IF(FLTK2_DIR)
|
||||||
MARK_AS_ADVANCED(FLTK2_FLUID_EXECUTABLE)
|
MARK_AS_ADVANCED(FLTK2_FLUID_EXECUTABLE)
|
||||||
SET( FLTK_FLUID_EXECUTABLE ${FLTK2_FLUID_EXECUTABLE} )
|
SET( FLTK_FLUID_EXECUTABLE ${FLTK2_FLUID_EXECUTABLE} )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SET(FLTK2_INCLUDE_DIR ${FLTK2_DIR})
|
SET(FLTK2_INCLUDE_DIR ${FLTK2_DIR})
|
||||||
|
@ -201,7 +201,7 @@ IF(FLTK2_DIR)
|
||||||
|
|
||||||
FIND_LIBRARY(FLTK2_BASE_LIBRARY NAMES fltk2
|
FIND_LIBRARY(FLTK2_BASE_LIBRARY NAMES fltk2
|
||||||
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
||||||
FIND_LIBRARY(FLTK2_GL_LIBRARY NAMES fltk2_gl
|
FIND_LIBRARY(FLTK2_GL_LIBRARY NAMES fltk2_gl
|
||||||
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
||||||
FIND_LIBRARY(FLTK2_IMAGES_LIBRARY NAMES fltk2_images
|
FIND_LIBRARY(FLTK2_IMAGES_LIBRARY NAMES fltk2_images
|
||||||
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
PATHS ${FLTK2_LIBRARY_SEARCH_PATH})
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
# correspond to the ./configure --prefix=$GDAL_DIR
|
# correspond to the ./configure --prefix=$GDAL_DIR
|
||||||
# used in building gdal.
|
# used in building gdal.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
|
# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
|
||||||
# for osgTerrain so I whipped this module together for completeness.
|
# for osgTerrain so I whipped this module together for completeness.
|
||||||
# I actually don't know the conventions or where files are typically
|
# I actually don't know the conventions or where files are typically
|
||||||
# placed in distros.
|
# placed in distros.
|
||||||
# Any real gdal users are encouraged to correct this (but please don't
|
# Any real gdal users are encouraged to correct this (but please don't
|
||||||
# break the OS X framework stuff when doing so which is what usually seems
|
# break the OS X framework stuff when doing so which is what usually seems
|
||||||
# to happen).
|
# to happen).
|
||||||
|
|
||||||
# This makes the presumption that you are include gdal.h like
|
# This makes the presumption that you are include gdal.h like
|
||||||
|
@ -85,7 +85,7 @@ IF(UNIX)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
FIND_LIBRARY(GDAL_LIBRARY
|
FIND_LIBRARY(GDAL_LIBRARY
|
||||||
NAMES ${_gdal_lib} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
|
NAMES ${_gdal_lib} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{GDAL_DIR}
|
$ENV{GDAL_DIR}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
FIND_PATH( GLUT_INCLUDE_DIR NAMES GL/glut.h
|
FIND_PATH( GLUT_INCLUDE_DIR NAMES GL/glut.h
|
||||||
PATHS ${GLUT_ROOT_PATH}/include )
|
PATHS ${GLUT_ROOT_PATH}/include )
|
||||||
FIND_LIBRARY( GLUT_glut_LIBRARY NAMES glut glut32 freeglut
|
FIND_LIBRARY( GLUT_glut_LIBRARY NAMES glut glut32 freeglut
|
||||||
PATHS
|
PATHS
|
||||||
|
@ -29,17 +29,17 @@ IF (WIN32)
|
||||||
${GLUT_ROOT_PATH}/Release
|
${GLUT_ROOT_PATH}/Release
|
||||||
)
|
)
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
|
|
||||||
IF (APPLE)
|
IF (APPLE)
|
||||||
# These values for Apple could probably do with improvement.
|
# These values for Apple could probably do with improvement.
|
||||||
FIND_PATH( GLUT_INCLUDE_DIR glut.h
|
FIND_PATH( GLUT_INCLUDE_DIR glut.h
|
||||||
/System/Library/Frameworks/GLUT.framework/Versions/A/Headers
|
/System/Library/Frameworks/GLUT.framework/Versions/A/Headers
|
||||||
${OPENGL_LIBRARY_DIR}
|
${OPENGL_LIBRARY_DIR}
|
||||||
)
|
)
|
||||||
SET(GLUT_glut_LIBRARY "-framework GLUT" CACHE STRING "GLUT library for OSX")
|
SET(GLUT_glut_LIBRARY "-framework GLUT" CACHE STRING "GLUT library for OSX")
|
||||||
SET(GLUT_cocoa_LIBRARY "-framework Cocoa" CACHE STRING "Cocoa framework for OSX")
|
SET(GLUT_cocoa_LIBRARY "-framework Cocoa" CACHE STRING "Cocoa framework for OSX")
|
||||||
ELSE (APPLE)
|
ELSE (APPLE)
|
||||||
|
|
||||||
FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
|
FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
|
||||||
/usr/include/GL
|
/usr/include/GL
|
||||||
/usr/openwin/share/include
|
/usr/openwin/share/include
|
||||||
|
@ -47,21 +47,21 @@ ELSE (WIN32)
|
||||||
/opt/graphics/OpenGL/include
|
/opt/graphics/OpenGL/include
|
||||||
/opt/graphics/OpenGL/contrib/libglut
|
/opt/graphics/OpenGL/contrib/libglut
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( GLUT_glut_LIBRARY glut
|
FIND_LIBRARY( GLUT_glut_LIBRARY glut
|
||||||
/usr/openwin/lib
|
/usr/openwin/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( GLUT_Xi_LIBRARY Xi
|
FIND_LIBRARY( GLUT_Xi_LIBRARY Xi
|
||||||
/usr/openwin/lib
|
/usr/openwin/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( GLUT_Xmu_LIBRARY Xmu
|
FIND_LIBRARY( GLUT_Xmu_LIBRARY Xmu
|
||||||
/usr/openwin/lib
|
/usr/openwin/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
ENDIF (APPLE)
|
ENDIF (APPLE)
|
||||||
|
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
|
@ -76,7 +76,7 @@ IF (GLUT_FOUND)
|
||||||
${GLUT_Xi_LIBRARY}
|
${GLUT_Xi_LIBRARY}
|
||||||
${GLUT_cocoa_LIBRARY}
|
${GLUT_cocoa_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
#The following deprecated settings are for backwards compatibility with CMake1.4
|
#The following deprecated settings are for backwards compatibility with CMake1.4
|
||||||
SET (GLUT_LIBRARY ${GLUT_LIBRARIES})
|
SET (GLUT_LIBRARY ${GLUT_LIBRARIES})
|
||||||
SET (GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIR})
|
SET (GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIR})
|
||||||
|
|
|
@ -89,11 +89,11 @@ IF(UNIX)
|
||||||
/opt/gnome/lib
|
/opt/gnome/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( GTK_Xi_LIBRARY
|
FIND_LIBRARY( GTK_Xi_LIBRARY
|
||||||
NAMES Xi
|
NAMES Xi
|
||||||
PATHS /usr/openwin/lib
|
PATHS /usr/openwin/lib
|
||||||
/opt/gnome/lib
|
/opt/gnome/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( GTK_gthread_LIBRARY
|
FIND_LIBRARY( GTK_gthread_LIBRARY
|
||||||
NAMES gthread gthread12
|
NAMES gthread gthread12
|
||||||
|
|
|
@ -119,7 +119,7 @@ function(_GTK2_GET_VERSION _OUT_major _OUT_minor _OUT_micro _gtkversion_hdr)
|
||||||
string(REGEX REPLACE ".*#define GTK_MAJOR_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_major} "${_contents}")
|
string(REGEX REPLACE ".*#define GTK_MAJOR_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_major} "${_contents}")
|
||||||
string(REGEX REPLACE ".*#define GTK_MINOR_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_minor} "${_contents}")
|
string(REGEX REPLACE ".*#define GTK_MINOR_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_minor} "${_contents}")
|
||||||
string(REGEX REPLACE ".*#define GTK_MICRO_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_micro} "${_contents}")
|
string(REGEX REPLACE ".*#define GTK_MICRO_VERSION[ \t]+\\(([0-9]+)\\).*" "\\1" ${_OUT_micro} "${_contents}")
|
||||||
|
|
||||||
if(NOT ${_OUT_major} MATCHES "[0-9]+")
|
if(NOT ${_OUT_major} MATCHES "[0-9]+")
|
||||||
message(FATAL_ERROR "Version parsing failed for GTK2_MAJOR_VERSION!")
|
message(FATAL_ERROR "Version parsing failed for GTK2_MAJOR_VERSION!")
|
||||||
endif()
|
endif()
|
||||||
|
@ -269,7 +269,7 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version)
|
||||||
set(_lib_list ${_library})
|
set(_lib_list ${_library})
|
||||||
set(_libd_list ${_library_d})
|
set(_libd_list ${_library_d})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(GTK2_DEBUG)
|
if(GTK2_DEBUG)
|
||||||
message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] "
|
message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] "
|
||||||
"library list = ${_lib_list} and library debug list = ${_libd_list}")
|
"library list = ${_lib_list} and library debug list = ${_libd_list}")
|
||||||
|
@ -301,7 +301,7 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version)
|
||||||
"While searching for ${_var}, our proposed library list is ${_lib_list}")
|
"While searching for ${_var}, our proposed library list is ${_lib_list}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(${_var}
|
find_library(${_var}
|
||||||
NAMES ${_lib_list}
|
NAMES ${_lib_list}
|
||||||
PATHS
|
PATHS
|
||||||
/opt/gnome/lib
|
/opt/gnome/lib
|
||||||
|
@ -403,8 +403,8 @@ if(GTK2_FIND_VERSION)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "GTK2 version check failed. Version ${GTK2_VERSION} was found, at least version ${GTK2_FIND_VERSION} is required")
|
message(FATAL_ERROR "GTK2 version check failed. Version ${GTK2_VERSION} was found, at least version ${GTK2_FIND_VERSION} is required")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# If the version check fails, exit out of the module here
|
# If the version check fails, exit out of the module here
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
@ -423,7 +423,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
|
||||||
_GTK2_FIND_INCLUDE_DIR(GTK2_GLIB_INCLUDE_DIR glib.h)
|
_GTK2_FIND_INCLUDE_DIR(GTK2_GLIB_INCLUDE_DIR glib.h)
|
||||||
_GTK2_FIND_INCLUDE_DIR(GTK2_GLIBCONFIG_INCLUDE_DIR glibconfig.h)
|
_GTK2_FIND_INCLUDE_DIR(GTK2_GLIBCONFIG_INCLUDE_DIR glibconfig.h)
|
||||||
_GTK2_FIND_LIBRARY (GTK2_GLIB_LIBRARY glib false true)
|
_GTK2_FIND_LIBRARY (GTK2_GLIB_LIBRARY glib false true)
|
||||||
|
|
||||||
_GTK2_FIND_INCLUDE_DIR(GTK2_GOBJECT_INCLUDE_DIR gobject/gobject.h)
|
_GTK2_FIND_INCLUDE_DIR(GTK2_GOBJECT_INCLUDE_DIR gobject/gobject.h)
|
||||||
_GTK2_FIND_LIBRARY (GTK2_GOBJECT_LIBRARY gobject false true)
|
_GTK2_FIND_LIBRARY (GTK2_GOBJECT_LIBRARY gobject false true)
|
||||||
|
|
||||||
|
@ -490,7 +490,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
|
||||||
|
|
||||||
_GTK2_FIND_INCLUDE_DIR(GTK2_GLADE_INCLUDE_DIR glade/glade.h)
|
_GTK2_FIND_INCLUDE_DIR(GTK2_GLADE_INCLUDE_DIR glade/glade.h)
|
||||||
_GTK2_FIND_LIBRARY (GTK2_GLADE_LIBRARY glade false true)
|
_GTK2_FIND_LIBRARY (GTK2_GLADE_LIBRARY glade false true)
|
||||||
|
|
||||||
elseif(_GTK2_component STREQUAL "glademm")
|
elseif(_GTK2_component STREQUAL "glademm")
|
||||||
|
|
||||||
_GTK2_FIND_INCLUDE_DIR(GTK2_GLADEMM_INCLUDE_DIR libglademm.h)
|
_GTK2_FIND_INCLUDE_DIR(GTK2_GLADEMM_INCLUDE_DIR libglademm.h)
|
||||||
|
|
|
@ -55,7 +55,7 @@ FIND_LIBRARY(GNUTLS_LIBRARY NAMES gnutls libgnutls
|
||||||
|
|
||||||
MARK_AS_ADVANCED(GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GnuTLS
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GnuTLS
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
INCLUDE(FindCygwin)
|
INCLUDE(FindCygwin)
|
||||||
|
|
||||||
FIND_PROGRAM(GNUPLOT_EXECUTABLE
|
FIND_PROGRAM(GNUPLOT_EXECUTABLE
|
||||||
NAMES
|
NAMES
|
||||||
gnuplot
|
gnuplot
|
||||||
pgnuplot
|
pgnuplot
|
||||||
wgnupl32
|
wgnupl32
|
||||||
|
@ -46,7 +46,7 @@ ENDIF()
|
||||||
# for compatibility
|
# for compatibility
|
||||||
SET(GNUPLOT ${GNUPLOT_EXECUTABLE})
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gnuplot
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# In addition to finding the includes and libraries required to compile an HDF5
|
# In addition to finding the includes and libraries required to compile an HDF5
|
||||||
# client application, this module also makes an effort to find tools that come
|
# client application, this module also makes an effort to find tools that come
|
||||||
# with the HDF5 distribution that may be useful for regression testing.
|
# with the HDF5 distribution that may be useful for regression testing.
|
||||||
#
|
#
|
||||||
# This module will define the following variables:
|
# This module will define the following variables:
|
||||||
# HDF5_INCLUDE_DIRS - Location of the hdf5 includes
|
# HDF5_INCLUDE_DIRS - Location of the hdf5 includes
|
||||||
# HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)
|
# HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)
|
||||||
|
@ -64,7 +64,7 @@ include(SelectLibraryConfigurations)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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
|
||||||
C
|
C
|
||||||
CXX
|
CXX
|
||||||
Fortran
|
Fortran
|
||||||
|
@ -110,10 +110,10 @@ find_program( HDF5_Fortran_COMPILER_EXECUTABLE
|
||||||
DOC "HDF5 Fortran Wrapper compiler. Used only to detect HDF5 compile flags." )
|
DOC "HDF5 Fortran Wrapper compiler. Used only to detect HDF5 compile flags." )
|
||||||
mark_as_advanced( HDF5_Fortran_COMPILER_EXECUTABLE )
|
mark_as_advanced( HDF5_Fortran_COMPILER_EXECUTABLE )
|
||||||
|
|
||||||
find_program( HDF5_DIFF_EXECUTABLE
|
find_program( HDF5_DIFF_EXECUTABLE
|
||||||
NAMES h5diff
|
NAMES h5diff
|
||||||
HINTS ENV HDF5_ROOT
|
HINTS ENV HDF5_ROOT
|
||||||
PATH_SUFFIXES bin Bin
|
PATH_SUFFIXES bin Bin
|
||||||
DOC "HDF5 file differencing tool." )
|
DOC "HDF5 file differencing tool." )
|
||||||
mark_as_advanced( HDF5_DIFF_EXECUTABLE )
|
mark_as_advanced( HDF5_DIFF_EXECUTABLE )
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ mark_as_advanced( HDF5_DIFF_EXECUTABLE )
|
||||||
# return_value argument, the text output is stored to the output variable.
|
# return_value argument, the text output is stored to the output variable.
|
||||||
macro( _HDF5_invoke_compiler language output return_value )
|
macro( _HDF5_invoke_compiler language output return_value )
|
||||||
if( HDF5_${language}_COMPILER_EXECUTABLE )
|
if( HDF5_${language}_COMPILER_EXECUTABLE )
|
||||||
exec_program( ${HDF5_${language}_COMPILER_EXECUTABLE}
|
exec_program( ${HDF5_${language}_COMPILER_EXECUTABLE}
|
||||||
ARGS -show
|
ARGS -show
|
||||||
OUTPUT_VARIABLE ${output}
|
OUTPUT_VARIABLE ${output}
|
||||||
RETURN_VALUE ${return_value}
|
RETURN_VALUE ${return_value}
|
||||||
|
@ -129,14 +129,14 @@ macro( _HDF5_invoke_compiler language output return_value )
|
||||||
if( ${${return_value}} EQUAL 0 )
|
if( ${${return_value}} EQUAL 0 )
|
||||||
# do nothing
|
# do nothing
|
||||||
else()
|
else()
|
||||||
message( STATUS
|
message( STATUS
|
||||||
"Unable to determine HDF5 ${language} flags from HDF5 wrapper." )
|
"Unable to determine HDF5 ${language} flags from HDF5 wrapper." )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# Parse a compile line for definitions, includes, library paths, and libraries.
|
# Parse a compile line for definitions, includes, library paths, and libraries.
|
||||||
macro( _HDF5_parse_compile_line
|
macro( _HDF5_parse_compile_line
|
||||||
compile_line_var
|
compile_line_var
|
||||||
include_paths
|
include_paths
|
||||||
definitions
|
definitions
|
||||||
|
@ -144,7 +144,7 @@ macro( _HDF5_parse_compile_line
|
||||||
libraries )
|
libraries )
|
||||||
|
|
||||||
# Match the include paths
|
# Match the include paths
|
||||||
string( REGEX MATCHALL "-I([^\" ]+)" include_path_flags
|
string( REGEX MATCHALL "-I([^\" ]+)" include_path_flags
|
||||||
"${${compile_line_var}}"
|
"${${compile_line_var}}"
|
||||||
)
|
)
|
||||||
foreach( IPATH ${include_path_flags} )
|
foreach( IPATH ${include_path_flags} )
|
||||||
|
@ -163,7 +163,7 @@ macro( _HDF5_parse_compile_line
|
||||||
string( REGEX MATCHALL "-L([^\" ]+|\"[^\"]+\")" library_path_flags
|
string( REGEX MATCHALL "-L([^\" ]+|\"[^\"]+\")" library_path_flags
|
||||||
"${${compile_line_var}}"
|
"${${compile_line_var}}"
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach( LPATH ${library_path_flags} )
|
foreach( LPATH ${library_path_flags} )
|
||||||
string( REGEX REPLACE "^-L" "" LPATH ${LPATH} )
|
string( REGEX REPLACE "^-L" "" LPATH ${LPATH} )
|
||||||
string( REGEX REPLACE "//" "/" LPATH ${LPATH} )
|
string( REGEX REPLACE "//" "/" LPATH ${LPATH} )
|
||||||
|
@ -219,7 +219,7 @@ if( NOT HDF5_FOUND )
|
||||||
${HDF5_C_LIBRARY_NAMES_INIT} )
|
${HDF5_C_LIBRARY_NAMES_INIT} )
|
||||||
set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran
|
set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran
|
||||||
${HDF5_Fortran_LIBRARY_NAMES_INIT} )
|
${HDF5_Fortran_LIBRARY_NAMES_INIT} )
|
||||||
|
|
||||||
foreach( LANGUAGE ${HDF5_LANGUAGE_BINDINGS} )
|
foreach( LANGUAGE ${HDF5_LANGUAGE_BINDINGS} )
|
||||||
if( HDF5_${LANGUAGE}_COMPILE_LINE )
|
if( HDF5_${LANGUAGE}_COMPILE_LINE )
|
||||||
_HDF5_parse_compile_line( HDF5_${LANGUAGE}_COMPILE_LINE
|
_HDF5_parse_compile_line( HDF5_${LANGUAGE}_COMPILE_LINE
|
||||||
|
@ -228,7 +228,7 @@ if( NOT HDF5_FOUND )
|
||||||
HDF5_${LANGUAGE}_LIBRARY_DIRS
|
HDF5_${LANGUAGE}_LIBRARY_DIRS
|
||||||
HDF5_${LANGUAGE}_LIBRARY_NAMES
|
HDF5_${LANGUAGE}_LIBRARY_NAMES
|
||||||
)
|
)
|
||||||
|
|
||||||
# take a guess that the includes may be in the 'include' sibling
|
# take a guess that the includes may be in the 'include' sibling
|
||||||
# directory of a library directory.
|
# directory of a library directory.
|
||||||
foreach( dir ${HDF5_${LANGUAGE}_LIBRARY_DIRS} )
|
foreach( dir ${HDF5_${LANGUAGE}_LIBRARY_DIRS} )
|
||||||
|
@ -238,7 +238,7 @@ if( NOT HDF5_FOUND )
|
||||||
|
|
||||||
# set the definitions for the language bindings.
|
# set the definitions for the language bindings.
|
||||||
list( APPEND HDF5_DEFINITIONS ${HDF5_${LANGUAGE}_DEFINITIONS} )
|
list( APPEND HDF5_DEFINITIONS ${HDF5_${LANGUAGE}_DEFINITIONS} )
|
||||||
|
|
||||||
# find the HDF5 include directories
|
# find the HDF5 include directories
|
||||||
if(${LANGUAGE} MATCHES "Fortran.*")
|
if(${LANGUAGE} MATCHES "Fortran.*")
|
||||||
set(HDF5_INCLUDE_FILENAME hdf5.mod)
|
set(HDF5_INCLUDE_FILENAME hdf5.mod)
|
||||||
|
@ -251,7 +251,7 @@ if( NOT HDF5_FOUND )
|
||||||
${HDF5_${LANGUAGE}_INCLUDE_FLAGS}
|
${HDF5_${LANGUAGE}_INCLUDE_FLAGS}
|
||||||
ENV
|
ENV
|
||||||
HDF5_ROOT
|
HDF5_ROOT
|
||||||
PATHS
|
PATHS
|
||||||
$ENV{HOME}/.local/include
|
$ENV{HOME}/.local/include
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
include
|
include
|
||||||
|
@ -259,11 +259,11 @@ if( NOT HDF5_FOUND )
|
||||||
)
|
)
|
||||||
mark_as_advanced( HDF5_${LANGUAGE}_INCLUDE_DIR )
|
mark_as_advanced( HDF5_${LANGUAGE}_INCLUDE_DIR )
|
||||||
list( APPEND HDF5_INCLUDE_DIRS ${HDF5_${LANGUAGE}_INCLUDE_DIR} )
|
list( APPEND HDF5_INCLUDE_DIRS ${HDF5_${LANGUAGE}_INCLUDE_DIR} )
|
||||||
|
|
||||||
set( HDF5_${LANGUAGE}_LIBRARY_NAMES
|
set( HDF5_${LANGUAGE}_LIBRARY_NAMES
|
||||||
${HDF5_${LANGUAGE}_LIBRARY_NAMES_INIT}
|
${HDF5_${LANGUAGE}_LIBRARY_NAMES_INIT}
|
||||||
${HDF5_${LANGUAGE}_LIBRARY_NAMES} )
|
${HDF5_${LANGUAGE}_LIBRARY_NAMES} )
|
||||||
|
|
||||||
# find the HDF5 libraries
|
# find the HDF5 libraries
|
||||||
foreach( LIB ${HDF5_${LANGUAGE}_LIBRARY_NAMES} )
|
foreach( LIB ${HDF5_${LANGUAGE}_LIBRARY_NAMES} )
|
||||||
if( UNIX AND HDF5_USE_STATIC_LIBRARIES )
|
if( UNIX AND HDF5_USE_STATIC_LIBRARIES )
|
||||||
|
@ -278,15 +278,15 @@ if( NOT HDF5_FOUND )
|
||||||
set( THIS_LIBRARY_SEARCH_DEBUG ${LIB}d )
|
set( THIS_LIBRARY_SEARCH_DEBUG ${LIB}d )
|
||||||
set( THIS_LIBRARY_SEARCH_RELEASE ${LIB} )
|
set( THIS_LIBRARY_SEARCH_RELEASE ${LIB} )
|
||||||
endif()
|
endif()
|
||||||
find_library( HDF5_${LIB}_LIBRARY_DEBUG
|
find_library( HDF5_${LIB}_LIBRARY_DEBUG
|
||||||
NAMES ${THIS_LIBRARY_SEARCH_DEBUG}
|
NAMES ${THIS_LIBRARY_SEARCH_DEBUG}
|
||||||
HINTS ${HDF5_${LANGUAGE}_LIBRARY_DIRS}
|
HINTS ${HDF5_${LANGUAGE}_LIBRARY_DIRS}
|
||||||
ENV HDF5_ROOT
|
ENV HDF5_ROOT
|
||||||
PATH_SUFFIXES lib Lib )
|
PATH_SUFFIXES lib Lib )
|
||||||
find_library( HDF5_${LIB}_LIBRARY_RELEASE
|
find_library( HDF5_${LIB}_LIBRARY_RELEASE
|
||||||
NAMES ${THIS_LIBRARY_SEARCH_RELEASE}
|
NAMES ${THIS_LIBRARY_SEARCH_RELEASE}
|
||||||
HINTS ${HDF5_${LANGUAGE}_LIBRARY_DIRS}
|
HINTS ${HDF5_${LANGUAGE}_LIBRARY_DIRS}
|
||||||
ENV HDF5_ROOT
|
ENV HDF5_ROOT
|
||||||
PATH_SUFFIXES lib Lib )
|
PATH_SUFFIXES lib Lib )
|
||||||
select_library_configurations( HDF5_${LIB} )
|
select_library_configurations( HDF5_${LIB} )
|
||||||
# even though we adjusted the individual library names in
|
# even though we adjusted the individual library names in
|
||||||
|
@ -297,16 +297,16 @@ if( NOT HDF5_FOUND )
|
||||||
# up by the selection macro above) because it may specify debug and
|
# up by the selection macro above) because it may specify debug and
|
||||||
# optimized variants for a particular library, but a list of
|
# optimized variants for a particular library, but a list of
|
||||||
# libraries is allowed to specify debug and optimized only once.
|
# libraries is allowed to specify debug and optimized only once.
|
||||||
list( APPEND HDF5_${LANGUAGE}_LIBRARIES_DEBUG
|
list( APPEND HDF5_${LANGUAGE}_LIBRARIES_DEBUG
|
||||||
${HDF5_${LIB}_LIBRARY_DEBUG} )
|
${HDF5_${LIB}_LIBRARY_DEBUG} )
|
||||||
list( APPEND HDF5_${LANGUAGE}_LIBRARIES_RELEASE
|
list( APPEND HDF5_${LANGUAGE}_LIBRARIES_RELEASE
|
||||||
${HDF5_${LIB}_LIBRARY_RELEASE} )
|
${HDF5_${LIB}_LIBRARY_RELEASE} )
|
||||||
endforeach()
|
endforeach()
|
||||||
list( APPEND HDF5_LIBRARY_DIRS ${HDF5_${LANGUAGE}_LIBRARY_DIRS} )
|
list( APPEND HDF5_LIBRARY_DIRS ${HDF5_${LANGUAGE}_LIBRARY_DIRS} )
|
||||||
|
|
||||||
# Append the libraries for this language binding to the list of all
|
# Append the libraries for this language binding to the list of all
|
||||||
# required libraries.
|
# required libraries.
|
||||||
list( APPEND HDF5_LIBRARIES_DEBUG
|
list( APPEND HDF5_LIBRARIES_DEBUG
|
||||||
${HDF5_${LANGUAGE}_LIBRARIES_DEBUG} )
|
${HDF5_${LANGUAGE}_LIBRARIES_DEBUG} )
|
||||||
list( APPEND HDF5_LIBRARIES_RELEASE
|
list( APPEND HDF5_LIBRARIES_RELEASE
|
||||||
${HDF5_${LANGUAGE}_LIBRARIES_RELEASE} )
|
${HDF5_${LANGUAGE}_LIBRARIES_RELEASE} )
|
||||||
|
@ -358,7 +358,7 @@ if( NOT HDF5_FOUND )
|
||||||
set( HDF5_IS_PARALLEL FALSE )
|
set( HDF5_IS_PARALLEL FALSE )
|
||||||
foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
|
foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
|
||||||
if( EXISTS "${_dir}/H5pubconf.h" )
|
if( EXISTS "${_dir}/H5pubconf.h" )
|
||||||
file( STRINGS "${_dir}/H5pubconf.h"
|
file( STRINGS "${_dir}/H5pubconf.h"
|
||||||
HDF5_HAVE_PARALLEL_DEFINE
|
HDF5_HAVE_PARALLEL_DEFINE
|
||||||
REGEX "HAVE_PARALLEL 1" )
|
REGEX "HAVE_PARALLEL 1" )
|
||||||
if( HDF5_HAVE_PARALLEL_DEFINE )
|
if( HDF5_HAVE_PARALLEL_DEFINE )
|
||||||
|
@ -378,8 +378,8 @@ if( NOT HDF5_FOUND )
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package_handle_standard_args( HDF5 DEFAULT_MSG
|
find_package_handle_standard_args( HDF5 DEFAULT_MSG
|
||||||
HDF5_LIBRARIES
|
HDF5_LIBRARIES
|
||||||
HDF5_INCLUDE_DIRS
|
HDF5_INCLUDE_DIRS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ IF (HSPELL_INCLUDE_DIR)
|
||||||
SET(HSPELL_VERSION_STRING "${HSPELL_VERSION_MAJOR}.${HSPELL_VERSION_MINOR}")
|
SET(HSPELL_VERSION_STRING "${HSPELL_VERSION_MAJOR}.${HSPELL_VERSION_MINOR}")
|
||||||
ENDIF()
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL
|
||||||
|
|
|
@ -24,20 +24,20 @@ IF(WIN32)
|
||||||
hhc
|
hhc
|
||||||
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
|
||||||
"$ENV{ProgramFiles}/HTML Help Workshop"
|
"$ENV{ProgramFiles}/HTML Help Workshop"
|
||||||
"C:/Program Files/HTML Help Workshop"
|
"C:/Program Files/HTML Help Workshop"
|
||||||
)
|
)
|
||||||
|
|
||||||
GET_FILENAME_COMPONENT(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
|
GET_FILENAME_COMPONENT(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
|
||||||
|
|
||||||
FIND_PATH(HTML_HELP_INCLUDE_PATH
|
FIND_PATH(HTML_HELP_INCLUDE_PATH
|
||||||
htmlhelp.h
|
htmlhelp.h
|
||||||
"${HTML_HELP_COMPILER_PATH}/include"
|
"${HTML_HELP_COMPILER_PATH}/include"
|
||||||
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
|
||||||
"$ENV{ProgramFiles}/HTML Help Workshop/include"
|
"$ENV{ProgramFiles}/HTML Help Workshop/include"
|
||||||
"C:/Program Files/HTML Help Workshop/include"
|
"C:/Program Files/HTML Help Workshop/include"
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(HTML_HELP_LIBRARY
|
FIND_LIBRARY(HTML_HELP_LIBRARY
|
||||||
htmlhelp
|
htmlhelp
|
||||||
"${HTML_HELP_COMPILER_PATH}/lib"
|
"${HTML_HELP_COMPILER_PATH}/lib"
|
||||||
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
# that can be included to set the include directories, library directories,
|
# that can be included to set the include directories, library directories,
|
||||||
# and preprocessor macros. In addition to the variables read from
|
# and preprocessor macros. In addition to the variables read from
|
||||||
# ITKConfig.cmake, this find module also defines
|
# ITKConfig.cmake, this find module also defines
|
||||||
# ITK_DIR - The directory containing ITKConfig.cmake.
|
# ITK_DIR - The directory containing ITKConfig.cmake.
|
||||||
# This is either the root of the build tree,
|
# This is either the root of the build tree,
|
||||||
# or the lib/InsightToolkit directory.
|
# or the lib/InsightToolkit directory.
|
||||||
# This is the only cache entry.
|
# This is the only cache entry.
|
||||||
#
|
#
|
||||||
# ITK_FOUND - Whether ITK was found. If this is true,
|
# ITK_FOUND - Whether ITK was found. If this is true,
|
||||||
# ITK_DIR is okay.
|
# ITK_DIR is okay.
|
||||||
#
|
#
|
||||||
# USE_ITK_FILE - The full path to the UseITK.cmake file.
|
# USE_ITK_FILE - The full path to the UseITK.cmake file.
|
||||||
# This is provided for backward
|
# This is provided for backward
|
||||||
# compatability. Use ITK_USE_FILE
|
# compatability. Use ITK_USE_FILE
|
||||||
# instead.
|
# instead.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# This module finds if Java is installed and determines where the
|
# This module finds if Java is installed and determines where the
|
||||||
# include files and libraries are. It also determines what the name of
|
# include files and libraries are. It also determines what the name of
|
||||||
# the library is. This code sets the following variables:
|
# the library is. This code sets the following variables:
|
||||||
#
|
#
|
||||||
# JNI_INCLUDE_DIRS = the include dirs to use
|
# JNI_INCLUDE_DIRS = the include dirs to use
|
||||||
# JNI_LIBRARIES = the libraries to use
|
# JNI_LIBRARIES = the libraries to use
|
||||||
# JNI_FOUND = TRUE if JNI headers and libraries were found.
|
# JNI_FOUND = TRUE if JNI headers and libraries were found.
|
||||||
|
@ -138,7 +138,7 @@ SET(JAVA_AWT_INCLUDE_DIRECTORIES
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\${java_install_version};JavaHome]/include"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\${java_install_version};JavaHome]/include"
|
||||||
${_JAVA_HOME}/include
|
${_JAVA_HOME}/include
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/usr/lib/java/include
|
/usr/lib/java/include
|
||||||
/usr/local/lib/java/include
|
/usr/local/lib/java/include
|
||||||
|
@ -162,9 +162,9 @@ FOREACH(JAVA_PROG "${JAVA_RUNTIME}" "${JAVA_COMPILE}" "${JAVA_ARCHIVE}")
|
||||||
SET(JAVA_AWT_INCLUDE_DIRECTORIES ${JAVA_AWT_INCLUDE_DIRECTORIES} "${jpath}/${JAVA_INC_PATH}")
|
SET(JAVA_AWT_INCLUDE_DIRECTORIES ${JAVA_AWT_INCLUDE_DIRECTORIES} "${jpath}/${JAVA_INC_PATH}")
|
||||||
ENDIF(EXISTS ${jpath}/${JAVA_INC_PATH})
|
ENDIF(EXISTS ${jpath}/${JAVA_INC_PATH})
|
||||||
ENDFOREACH(JAVA_INC_PATH)
|
ENDFOREACH(JAVA_INC_PATH)
|
||||||
FOREACH(JAVA_LIB_PATH
|
FOREACH(JAVA_LIB_PATH
|
||||||
../lib ../jre/lib ../jre/lib/i386
|
../lib ../jre/lib ../jre/lib/i386
|
||||||
../java/lib ../java/jre/lib ../java/jre/lib/i386
|
../java/lib ../java/jre/lib ../java/jre/lib/i386
|
||||||
../share/java/lib ../share/java/jre/lib ../share/java/jre/lib/i386)
|
../share/java/lib ../share/java/jre/lib ../share/java/jre/lib/i386)
|
||||||
IF(EXISTS ${jpath}/${JAVA_LIB_PATH})
|
IF(EXISTS ${jpath}/${JAVA_LIB_PATH})
|
||||||
SET(JAVA_AWT_LIBRARY_DIRECTORIES ${JAVA_AWT_LIBRARY_DIRECTORIES} "${jpath}/${JAVA_LIB_PATH}")
|
SET(JAVA_AWT_LIBRARY_DIRECTORIES ${JAVA_AWT_LIBRARY_DIRECTORIES} "${jpath}/${JAVA_LIB_PATH}")
|
||||||
|
@ -209,7 +209,7 @@ IF(APPLE)
|
||||||
)
|
)
|
||||||
ENDIF(JAVA_HAVE_FRAMEWORK)
|
ENDIF(JAVA_HAVE_FRAMEWORK)
|
||||||
ELSE(APPLE)
|
ELSE(APPLE)
|
||||||
FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
|
FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
|
||||||
PATHS ${JAVA_AWT_LIBRARY_DIRECTORIES}
|
PATHS ${JAVA_AWT_LIBRARY_DIRECTORIES}
|
||||||
)
|
)
|
||||||
FIND_LIBRARY(JAVA_JVM_LIBRARY NAMES jvm JavaVM
|
FIND_LIBRARY(JAVA_JVM_LIBRARY NAMES jvm JavaVM
|
||||||
|
@ -217,12 +217,12 @@ ELSE(APPLE)
|
||||||
)
|
)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
# add in the include path
|
# add in the include path
|
||||||
FIND_PATH(JAVA_INCLUDE_PATH jni.h
|
FIND_PATH(JAVA_INCLUDE_PATH jni.h
|
||||||
${JAVA_AWT_INCLUDE_DIRECTORIES}
|
${JAVA_AWT_INCLUDE_DIRECTORIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
|
FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
|
||||||
${JAVA_INCLUDE_PATH}
|
${JAVA_INCLUDE_PATH}
|
||||||
${JAVA_INCLUDE_PATH}/win32
|
${JAVA_INCLUDE_PATH}/win32
|
||||||
${JAVA_INCLUDE_PATH}/linux
|
${JAVA_INCLUDE_PATH}/linux
|
||||||
|
|
|
@ -25,7 +25,7 @@ FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h)
|
||||||
SET(JPEG_NAMES ${JPEG_NAMES} jpeg)
|
SET(JPEG_NAMES ${JPEG_NAMES} jpeg)
|
||||||
FIND_LIBRARY(JPEG_LIBRARY NAMES ${JPEG_NAMES} )
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
|
@ -39,7 +39,7 @@ IF (JASPER_INCLUDE_DIR AND EXISTS "${JASPER_INCLUDE_DIR}/jasper/jas_config.h")
|
||||||
STRING(REGEX REPLACE "^#define[\t ]+JAS_VERSION[\t ]+\"([^\"]+)\".*" "\\1" JASPER_VERSION_STRING "${jasper_version_str}")
|
STRING(REGEX REPLACE "^#define[\t ]+JAS_VERSION[\t ]+\"([^\"]+)\".*" "\\1" JASPER_VERSION_STRING "${jasper_version_str}")
|
||||||
ENDIF (JASPER_INCLUDE_DIR AND EXISTS "${JASPER_INCLUDE_DIR}/jasper/jas_config.h")
|
ENDIF (JASPER_INCLUDE_DIR AND EXISTS "${JASPER_INCLUDE_DIR}/jasper/jas_config.h")
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Jasper
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Jasper
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# Java_VERSION_STRING = 1.5.0_17
|
# Java_VERSION_STRING = 1.5.0_17
|
||||||
# and
|
# and
|
||||||
# Java_VERSION = 1.5.0.17
|
# Java_VERSION = 1.5.0.17
|
||||||
#
|
#
|
||||||
# another example is the Java OEM, with:
|
# another example is the Java OEM, with:
|
||||||
# Java_VERSION_STRING = 1.6.0-oem
|
# Java_VERSION_STRING = 1.6.0-oem
|
||||||
# and
|
# and
|
||||||
|
@ -102,7 +102,7 @@ IF(Java_JAVA_EXECUTABLE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
# extract major/minor version and patch level from "java -version" output
|
# extract major/minor version and patch level from "java -version" output
|
||||||
# Tested on linux using
|
# Tested on linux using
|
||||||
# 1. Sun / Sun OEM
|
# 1. Sun / Sun OEM
|
||||||
# 2. OpenJDK 1.6
|
# 2. OpenJDK 1.6
|
||||||
# 3. GCJ 1.5
|
# 3. GCJ 1.5
|
||||||
|
|
|
@ -101,7 +101,7 @@ SET(QT_MT_REQUIRED TRUE)
|
||||||
IF(KDE3_FIND_REQUIRED)
|
IF(KDE3_FIND_REQUIRED)
|
||||||
SET(_REQ_STRING_KDE3 "REQUIRED")
|
SET(_REQ_STRING_KDE3 "REQUIRED")
|
||||||
ENDIF(KDE3_FIND_REQUIRED)
|
ENDIF(KDE3_FIND_REQUIRED)
|
||||||
|
|
||||||
FIND_PACKAGE(Qt3 ${_REQ_STRING_KDE3})
|
FIND_PACKAGE(Qt3 ${_REQ_STRING_KDE3})
|
||||||
FIND_PACKAGE(X11 ${_REQ_STRING_KDE3})
|
FIND_PACKAGE(X11 ${_REQ_STRING_KDE3})
|
||||||
|
|
||||||
|
|
|
@ -38,14 +38,14 @@ ENDIF(QT_QT_LIBRARY)
|
||||||
FILE(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
|
FILE(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
|
||||||
|
|
||||||
# when cross compiling, searching kde4-config in order to run it later on
|
# when cross compiling, searching kde4-config in order to run it later on
|
||||||
# doesn't make a lot of sense. We'll have to do something about this.
|
# doesn't make a lot of sense. We'll have to do something about this.
|
||||||
# Searching always in the target environment ? Then we get at least the correct one,
|
# Searching always in the target environment ? Then we get at least the correct one,
|
||||||
# still it can't be used to run it. Alex
|
# still it can't be used to run it. Alex
|
||||||
|
|
||||||
# For KDE4 kde-config has been renamed to kde4-config
|
# For KDE4 kde-config has been renamed to kde4-config
|
||||||
FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config
|
FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config
|
||||||
# the suffix must be used since KDEDIRS can be a list of directories which don't have bin/ appended
|
# the suffix must be used since KDEDIRS can be a list of directories which don't have bin/ appended
|
||||||
PATH_SUFFIXES bin
|
PATH_SUFFIXES bin
|
||||||
HINTS
|
HINTS
|
||||||
${CMAKE_INSTALL_PREFIX}
|
${CMAKE_INSTALL_PREFIX}
|
||||||
${_KDEDIRS}
|
${_KDEDIRS}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# - Find Latex
|
# - Find Latex
|
||||||
# This module finds if Latex is installed and determines where the
|
# This module finds if Latex is installed and determines where the
|
||||||
# executables are. This code sets the following variables:
|
# executables are. This code sets the following variables:
|
||||||
#
|
#
|
||||||
# LATEX_COMPILER: path to the LaTeX compiler
|
# LATEX_COMPILER: path to the LaTeX compiler
|
||||||
# PDFLATEX_COMPILER: path to the PdfLaTeX compiler
|
# PDFLATEX_COMPILER: path to the PdfLaTeX compiler
|
||||||
# BIBTEX_COMPILER: path to the BibTeX compiler
|
# BIBTEX_COMPILER: path to the BibTeX compiler
|
||||||
# MAKEINDEX_COMPILER: path to the MakeIndex compiler
|
# MAKEINDEX_COMPILER: path to the MakeIndex compiler
|
||||||
# DVIPS_CONVERTER: path to the DVIPS converter
|
# DVIPS_CONVERTER: path to the DVIPS converter
|
||||||
# PS2PDF_CONVERTER: path to the PS2PDF converter
|
# PS2PDF_CONVERTER: path to the PS2PDF converter
|
||||||
# LATEX2HTML_CONVERTER: path to the LaTeX2Html converter
|
# LATEX2HTML_CONVERTER: path to the LaTeX2Html converter
|
||||||
#
|
#
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -30,7 +30,7 @@ IF (WIN32)
|
||||||
|
|
||||||
FIND_PATH(MIKTEX_BINARY_PATH mpm.exe
|
FIND_PATH(MIKTEX_BINARY_PATH mpm.exe
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MiK\\MiKTeX\\CurrentVersion\\MiKTeX;Install Root]/miktex/bin"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MiK\\MiKTeX\\CurrentVersion\\MiKTeX;Install Root]/miktex/bin"
|
||||||
DOC
|
DOC
|
||||||
"Path to the MikTex binary directory."
|
"Path to the MikTex binary directory."
|
||||||
)
|
)
|
||||||
MARK_AS_ADVANCED(MIKTEX_BINARY_PATH)
|
MARK_AS_ADVANCED(MIKTEX_BINARY_PATH)
|
||||||
|
|
|
@ -56,7 +56,7 @@ ELSEIF(LIBXML2_INCLUDE_DIR AND EXISTS "${LIBXML2_INCLUDE_DIR}/libxml/xmlversion.
|
||||||
UNSET(libxml2_version_str)
|
UNSET(libxml2_version_str)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Locate Lua library
|
# Locate Lua library
|
||||||
# This module defines
|
# This module defines
|
||||||
# LUA50_FOUND, if false, do not try to link to Lua
|
# LUA50_FOUND, if false, do not try to link to Lua
|
||||||
# LUA_LIBRARIES, both lua and lualib
|
# LUA_LIBRARIES, both lua and lualib
|
||||||
# LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)
|
# LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)
|
||||||
#
|
#
|
||||||
|
@ -37,7 +37,7 @@ FIND_PATH(LUA_INCLUDE_DIR lua.h
|
||||||
/opt
|
/opt
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(LUA_LIBRARY_lua
|
FIND_LIBRARY(LUA_LIBRARY_lua
|
||||||
NAMES lua50 lua5.0 lua-5.0 lua5 lua
|
NAMES lua50 lua5.0 lua-5.0 lua5 lua
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{LUA_DIR}
|
$ENV{LUA_DIR}
|
||||||
|
@ -56,7 +56,7 @@ FIND_LIBRARY(LUA_LIBRARY_lua
|
||||||
IF(${LUA_LIBRARY_lua} MATCHES "framework")
|
IF(${LUA_LIBRARY_lua} MATCHES "framework")
|
||||||
SET( LUA_LIBRARIES "${LUA_LIBRARY_lua}" CACHE STRING "Lua framework")
|
SET( LUA_LIBRARIES "${LUA_LIBRARY_lua}" CACHE STRING "Lua framework")
|
||||||
ELSE(${LUA_LIBRARY_lua} MATCHES "framework")
|
ELSE(${LUA_LIBRARY_lua} MATCHES "framework")
|
||||||
FIND_LIBRARY(LUA_LIBRARY_lualib
|
FIND_LIBRARY(LUA_LIBRARY_lualib
|
||||||
NAMES lualib50 lualib5.0 lualib5 lualib
|
NAMES lualib50 lualib5.0 lualib5 lualib
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{LUALIB_DIR}
|
$ENV{LUALIB_DIR}
|
||||||
|
@ -82,7 +82,7 @@ ENDIF(${LUA_LIBRARY_lua} MATCHES "framework")
|
||||||
|
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Locate Lua library
|
# Locate Lua library
|
||||||
# This module defines
|
# This module defines
|
||||||
# LUA51_FOUND, if false, do not try to link to Lua
|
# LUA51_FOUND, if false, do not try to link to Lua
|
||||||
# LUA_LIBRARIES
|
# LUA_LIBRARIES
|
||||||
# LUA_INCLUDE_DIR, where to find lua.h
|
# LUA_INCLUDE_DIR, where to find lua.h
|
||||||
# LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
|
# LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
|
||||||
|
@ -38,7 +38,7 @@ FIND_PATH(LUA_INCLUDE_DIR lua.h
|
||||||
/opt
|
/opt
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(LUA_LIBRARY
|
FIND_LIBRARY(LUA_LIBRARY
|
||||||
NAMES lua51 lua5.1 lua-5.1 lua
|
NAMES lua51 lua5.1 lua-5.1 lua
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{LUA_DIR}
|
$ENV{LUA_DIR}
|
||||||
|
@ -71,7 +71,7 @@ IF(LUA_INCLUDE_DIR AND EXISTS "${LUA_INCLUDE_DIR}/lua.h")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua51
|
||||||
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
|
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
|
||||||
|
|
|
@ -32,7 +32,7 @@ FIND_LIBRARY( MPEG_vo_LIBRARY vo
|
||||||
/usr/local/livid/mpeg2dec/libvo/.libs
|
/usr/local/livid/mpeg2dec/libvo/.libs
|
||||||
)
|
)
|
||||||
|
|
||||||
# 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
FIND_PATH(MPEG2_INCLUDE_DIR
|
FIND_PATH(MPEG2_INCLUDE_DIR
|
||||||
NAMES mpeg2.h mpeg2dec/mpeg2.h
|
NAMES mpeg2.h mpeg2dec/mpeg2.h
|
||||||
PATHS /usr/local/livid
|
PATHS /usr/local/livid
|
||||||
)
|
)
|
||||||
|
@ -34,13 +34,13 @@ 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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
SET( MPEG2_LIBRARIES ${MPEG2_mpeg2_LIBRARY}
|
SET( MPEG2_LIBRARIES ${MPEG2_mpeg2_LIBRARY}
|
||||||
${MPEG2_vo_LIBRARY})
|
${MPEG2_vo_LIBRARY})
|
||||||
|
|
||||||
#some native mpeg2 installations will depend
|
#some native mpeg2 installations will depend
|
||||||
|
|
|
@ -32,7 +32,7 @@ IF(UNIX)
|
||||||
|
|
||||||
ENDIF(UNIX)
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Locate OpenAL
|
# Locate OpenAL
|
||||||
# This module defines
|
# This module defines
|
||||||
# OPENAL_LIBRARY
|
# OPENAL_LIBRARY
|
||||||
# OPENAL_FOUND, if false, do not try to link to OpenAL
|
# OPENAL_FOUND, if false, do not try to link to OpenAL
|
||||||
# OPENAL_INCLUDE_DIR, where to find the headers
|
# OPENAL_INCLUDE_DIR, where to find the headers
|
||||||
#
|
#
|
||||||
# $OPENALDIR is an environment variable that would
|
# $OPENALDIR is an environment variable that would
|
||||||
|
@ -25,31 +25,31 @@
|
||||||
|
|
||||||
# This makes the presumption that you are include al.h like
|
# This makes the presumption that you are include al.h like
|
||||||
# #include "al.h"
|
# #include "al.h"
|
||||||
# and not
|
# and not
|
||||||
# #include <AL/al.h>
|
# #include <AL/al.h>
|
||||||
# The reason for this is that the latter is not entirely portable.
|
# The reason for this is that the latter is not entirely portable.
|
||||||
# Windows/Creative Labs does not by default put their headers in AL/ and
|
# Windows/Creative Labs does not by default put their headers in AL/ and
|
||||||
# OS X uses the convention <OpenAL/al.h>.
|
# OS X uses the convention <OpenAL/al.h>.
|
||||||
#
|
#
|
||||||
# For Windows, Creative Labs seems to have added a registry key for their
|
# For Windows, Creative Labs seems to have added a registry key for their
|
||||||
# OpenAL 1.1 installer. I have added that key to the list of search paths,
|
# OpenAL 1.1 installer. I have added that key to the list of search paths,
|
||||||
# however, the key looks like it could be a little fragile depending on
|
# however, the key looks like it could be a little fragile depending on
|
||||||
# if they decide to change the 1.00.0000 number for bug fix releases.
|
# if they decide to change the 1.00.0000 number for bug fix releases.
|
||||||
# Also, they seem to have laid down groundwork for multiple library platforms
|
# Also, they seem to have laid down groundwork for multiple library platforms
|
||||||
# which puts the library in an extra subdirectory. Currently there is only
|
# which puts the library in an extra subdirectory. Currently there is only
|
||||||
# Win32 and I have hardcoded that here. This may need to be adjusted as
|
# Win32 and I have hardcoded that here. This may need to be adjusted as
|
||||||
# platforms are introduced.
|
# platforms are introduced.
|
||||||
# The OpenAL 1.0 installer doesn't seem to have a useful key I can use.
|
# The OpenAL 1.0 installer doesn't seem to have a useful key I can use.
|
||||||
# I do not know if the Nvidia OpenAL SDK has a registry key.
|
# I do not know if the Nvidia OpenAL SDK has a registry key.
|
||||||
#
|
#
|
||||||
# For OS X, remember that OpenAL was added by Apple in 10.4 (Tiger).
|
# For OS X, remember that OpenAL was added by Apple in 10.4 (Tiger).
|
||||||
# To support the framework, I originally wrote special framework detection
|
# To support the framework, I originally wrote special framework detection
|
||||||
# code in this module which I have now removed with CMake's introduction
|
# code in this module which I have now removed with CMake's introduction
|
||||||
# of native support for frameworks.
|
# of native support for frameworks.
|
||||||
# In addition, OpenAL is open source, and it is possible to compile on Panther.
|
# In addition, OpenAL is open source, and it is possible to compile on Panther.
|
||||||
# Furthermore, due to bugs in the initial OpenAL release, and the
|
# Furthermore, due to bugs in the initial OpenAL release, and the
|
||||||
# transition to OpenAL 1.1, it is common to need to override the built-in
|
# transition to OpenAL 1.1, it is common to need to override the built-in
|
||||||
# framework.
|
# framework.
|
||||||
# Per my request, CMake should search for frameworks first in
|
# Per my request, CMake should search for frameworks first in
|
||||||
# the following order:
|
# the following order:
|
||||||
# ~/Library/Frameworks/OpenAL.framework/Headers
|
# ~/Library/Frameworks/OpenAL.framework/Headers
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
# /System/Library/Frameworks/OpenAL.framework/Headers
|
# /System/Library/Frameworks/OpenAL.framework/Headers
|
||||||
#
|
#
|
||||||
# On OS X, this will prefer the Framework version (if found) over others.
|
# On OS X, this will prefer the Framework version (if found) over others.
|
||||||
# People will have to manually change the cache values of
|
# People will have to manually change the cache values of
|
||||||
# OPENAL_LIBRARY to override this selection or set the CMake environment
|
# OPENAL_LIBRARY to override this selection or set the CMake environment
|
||||||
# CMAKE_INCLUDE_PATH to modify the search paths.
|
# CMAKE_INCLUDE_PATH to modify the search paths.
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ FIND_PATH(OPENAL_INCLUDE_DIR al.h
|
||||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Creative\ Labs\\OpenAL\ 1.1\ Software\ Development\ Kit\\1.00.0000;InstallDir]
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Creative\ Labs\\OpenAL\ 1.1\ Software\ Development\ Kit\\1.00.0000;InstallDir]
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(OPENAL_LIBRARY
|
FIND_LIBRARY(OPENAL_LIBRARY
|
||||||
NAMES OpenAL al openal OpenAL32
|
NAMES OpenAL al openal OpenAL32
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{OPENALDIR}
|
$ENV{OPENALDIR}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
# - Try to find OpenGL
|
# - Try to find OpenGL
|
||||||
# Once done this will define
|
# Once done this will define
|
||||||
#
|
#
|
||||||
# OPENGL_FOUND - system has OpenGL
|
# OPENGL_FOUND - system has OpenGL
|
||||||
# OPENGL_XMESA_FOUND - system has XMESA
|
# OPENGL_XMESA_FOUND - system has XMESA
|
||||||
# OPENGL_GLU_FOUND - system has GLU
|
# OPENGL_GLU_FOUND - system has GLU
|
||||||
# OPENGL_INCLUDE_DIR - the GL include directory
|
# OPENGL_INCLUDE_DIR - the GL include directory
|
||||||
# OPENGL_LIBRARIES - Link these to use OpenGL and GLU
|
# OPENGL_LIBRARIES - Link these to use OpenGL and GLU
|
||||||
#
|
#
|
||||||
# If you want to use just GL you can use these values
|
# If you want to use just GL you can use these values
|
||||||
# OPENGL_gl_LIBRARY - Path to OpenGL Library
|
# OPENGL_gl_LIBRARY - Path to OpenGL Library
|
||||||
# OPENGL_glu_LIBRARY - Path to GLU Library
|
# OPENGL_glu_LIBRARY - Path to GLU Library
|
||||||
#
|
#
|
||||||
# On OSX default to using the framework version of opengl
|
# On OSX default to using the framework version of opengl
|
||||||
# People will have to change the cache values of OPENGL_glu_LIBRARY
|
# People will have to change the cache values of OPENGL_glu_LIBRARY
|
||||||
# and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX
|
# and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -63,7 +63,7 @@ ELSE (WIN32)
|
||||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
SET(HPUX_IA_OPENGL_LIB_PATH /opt/graphics/OpenGL/lib/hpux32/)
|
SET(HPUX_IA_OPENGL_LIB_PATH /opt/graphics/OpenGL/lib/hpux32/)
|
||||||
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
SET(HPUX_IA_OPENGL_LIB_PATH
|
SET(HPUX_IA_OPENGL_LIB_PATH
|
||||||
/opt/graphics/OpenGL/lib/hpux64/
|
/opt/graphics/OpenGL/lib/hpux64/
|
||||||
/opt/graphics/OpenGL/lib/pa20_64)
|
/opt/graphics/OpenGL/lib/pa20_64)
|
||||||
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
@ -97,7 +97,7 @@ ELSE (WIN32)
|
||||||
)
|
)
|
||||||
|
|
||||||
# On Unix OpenGL most certainly always requires X11.
|
# On Unix OpenGL most certainly always requires X11.
|
||||||
# Feel free to tighten up these conditions if you don't
|
# Feel free to tighten up these conditions if you don't
|
||||||
# think this is always true.
|
# think this is always true.
|
||||||
# It's not true on OSX.
|
# It's not true on OSX.
|
||||||
|
|
||||||
|
|
|
@ -75,12 +75,12 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
||||||
endfunction(_OPENMP_FLAG_CANDIDATES)
|
endfunction(_OPENMP_FLAG_CANDIDATES)
|
||||||
|
|
||||||
# sample openmp source code to test
|
# sample openmp source code to test
|
||||||
set(OpenMP_C_TEST_SOURCE
|
set(OpenMP_C_TEST_SOURCE
|
||||||
"
|
"
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
int main() {
|
int main() {
|
||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
breaks_on_purpose
|
breaks_on_purpose
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# OpenSceneGraph_DEBUG - Enable debugging output
|
# OpenSceneGraph_DEBUG - Enable debugging output
|
||||||
#
|
#
|
||||||
# OpenSceneGraph_MARK_AS_ADVANCED - Mark cache variables as advanced
|
# OpenSceneGraph_MARK_AS_ADVANCED - Mark cache variables as advanced
|
||||||
# automatically
|
# automatically
|
||||||
#
|
#
|
||||||
# The following environment variables are also respected for finding the OSG
|
# The following environment variables are also respected for finding the OSG
|
||||||
|
@ -96,12 +96,12 @@ if(OSG_INCLUDE_DIR)
|
||||||
message(STATUS "[ FindOpenSceneGraph.cmake:${CMAKE_CURRENT_LIST_LINE} ] "
|
message(STATUS "[ FindOpenSceneGraph.cmake:${CMAKE_CURRENT_LIST_LINE} ] "
|
||||||
"Detected OSG_INCLUDE_DIR = ${OSG_INCLUDE_DIR}")
|
"Detected OSG_INCLUDE_DIR = ${OSG_INCLUDE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(_osg_Version_file "${OSG_INCLUDE_DIR}/osg/Version")
|
set(_osg_Version_file "${OSG_INCLUDE_DIR}/osg/Version")
|
||||||
if("${OSG_INCLUDE_DIR}" MATCHES "\\.framework$" AND NOT EXISTS "${_osg_Version_file}")
|
if("${OSG_INCLUDE_DIR}" MATCHES "\\.framework$" AND NOT EXISTS "${_osg_Version_file}")
|
||||||
set(_osg_Version_file "${OSG_INCLUDE_DIR}/Headers/Version")
|
set(_osg_Version_file "${OSG_INCLUDE_DIR}/Headers/Version")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EXISTS "${_osg_Version_file}")
|
if(EXISTS "${_osg_Version_file}")
|
||||||
file(READ "${_osg_Version_file}" _osg_Version_contents)
|
file(READ "${_osg_Version_file}" _osg_Version_contents)
|
||||||
else()
|
else()
|
||||||
|
@ -149,7 +149,7 @@ if(OpenSceneGraph_FIND_VERSION AND OPENSCENEGRAPH_VERSION)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
# version is too low
|
# version is too low
|
||||||
if(NOT OPENSCENEGRAPH_VERSION VERSION_EQUAL ${OpenSceneGraph_FIND_VERSION} AND
|
if(NOT OPENSCENEGRAPH_VERSION VERSION_EQUAL ${OpenSceneGraph_FIND_VERSION} AND
|
||||||
NOT OPENSCENEGRAPH_VERSION VERSION_GREATER ${OpenSceneGraph_FIND_VERSION})
|
NOT OPENSCENEGRAPH_VERSION VERSION_GREATER ${OpenSceneGraph_FIND_VERSION})
|
||||||
set(_osg_version_not_high_enough TRUE)
|
set(_osg_version_not_high_enough TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
@ -182,7 +182,7 @@ endforeach()
|
||||||
if(OPENSCENEGRAPH_INCLUDE_DIR)
|
if(OPENSCENEGRAPH_INCLUDE_DIR)
|
||||||
list(REMOVE_DUPLICATES OPENSCENEGRAPH_INCLUDE_DIR)
|
list(REMOVE_DUPLICATES OPENSCENEGRAPH_INCLUDE_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Inform the users with an error message based on
|
# Inform the users with an error message based on
|
||||||
# what version they have vs. what version was
|
# what version they have vs. what version was
|
||||||
|
@ -221,7 +221,7 @@ else()
|
||||||
set(_osg_missing_message "${_osg_missing_message} ${_osg_module}")
|
set(_osg_missing_message "${_osg_missing_message} ${_osg_module}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(_osg_missing_nodekit_fail)
|
if(_osg_missing_nodekit_fail)
|
||||||
message(FATAL_ERROR "ERROR: Missing the following osg "
|
message(FATAL_ERROR "ERROR: Missing the following osg "
|
||||||
"libraries: ${_osg_missing_message}.\n"
|
"libraries: ${_osg_missing_message}.\n"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# OpenThreads is a C++ based threading library. Its largest userbase
|
# OpenThreads is a C++ based threading library. Its largest userbase
|
||||||
# seems to OpenSceneGraph so you might notice I accept OSGDIR as an
|
# seems to OpenSceneGraph so you might notice I accept OSGDIR as an
|
||||||
# environment path.
|
# environment path.
|
||||||
# I consider this part of the Findosg* suite used to find OpenSceneGraph
|
# I consider this part of the Findosg* suite used to find OpenSceneGraph
|
||||||
# components.
|
# components.
|
||||||
# Each component is separate and you must opt in to each module.
|
# Each component is separate and you must opt in to each module.
|
||||||
#
|
#
|
||||||
# Locate OpenThreads
|
# Locate OpenThreads
|
||||||
# This module defines
|
# This module defines
|
||||||
# OPENTHREADS_LIBRARY
|
# OPENTHREADS_LIBRARY
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
# #include <OpenThreads/Thread>
|
# #include <OpenThreads/Thread>
|
||||||
|
|
||||||
# To make it easier for one-step automated configuration/builds,
|
# To make it easier for one-step automated configuration/builds,
|
||||||
# we leverage environmental paths. This is preferable
|
# we leverage environmental paths. This is preferable
|
||||||
# to the -DVAR=value switches because it insulates the
|
# to the -DVAR=value switches because it insulates the
|
||||||
# users from changes we may make in this script.
|
# users from changes we may make in this script.
|
||||||
# It also offers a little more flexibility than setting
|
# It also offers a little more flexibility than setting
|
||||||
# the CMAKE_*_PATH since we can target specific components.
|
# the CMAKE_*_PATH since we can target specific components.
|
||||||
|
@ -71,8 +71,8 @@ find_path(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
find_library(OPENTHREADS_LIBRARY
|
find_library(OPENTHREADS_LIBRARY
|
||||||
NAMES OpenThreads OpenThreadsWin32
|
NAMES OpenThreads OpenThreadsWin32
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{OPENTHREADS_LIBRARY_DIR}
|
$ENV{OPENTHREADS_LIBRARY_DIR}
|
||||||
$ENV{OPENTHREADS_DIR}
|
$ENV{OPENTHREADS_DIR}
|
||||||
|
@ -90,7 +90,7 @@ find_library(OPENTHREADS_LIBRARY
|
||||||
PATH_SUFFIXES lib64 lib
|
PATH_SUFFIXES lib64 lib
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(OPENTHREADS_LIBRARY_DEBUG
|
find_library(OPENTHREADS_LIBRARY_DEBUG
|
||||||
NAMES OpenThreadsd OpenThreadsWin32d
|
NAMES OpenThreadsd OpenThreadsWin32d
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{OPENTHREADS_DEBUG_LIBRARY_DIR}
|
$ENV{OPENTHREADS_DEBUG_LIBRARY_DIR}
|
||||||
|
|
|
@ -52,7 +52,7 @@ MARK_AS_ADVANCED(
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
# this is a hack for now
|
# this is a hack for now
|
||||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
||||||
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -Wl,-flat_namespace")
|
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -Wl,-flat_namespace")
|
||||||
FOREACH(symbol
|
FOREACH(symbol
|
||||||
__efree
|
__efree
|
||||||
|
@ -76,7 +76,7 @@ IF(APPLE)
|
||||||
_zend_wrong_param_count
|
_zend_wrong_param_count
|
||||||
_zval_used_for_init
|
_zval_used_for_init
|
||||||
)
|
)
|
||||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
||||||
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS},-U,${symbol}")
|
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS},-U,${symbol}")
|
||||||
ENDFOREACH(symbol)
|
ENDFOREACH(symbol)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
|
@ -26,11 +26,11 @@ SET(PERL_POSSIBLE_BIN_PATHS
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
GET_FILENAME_COMPONENT(
|
GET_FILENAME_COMPONENT(
|
||||||
ActivePerl_CurrentVersion
|
ActivePerl_CurrentVersion
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl;CurrentVersion]"
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl;CurrentVersion]"
|
||||||
NAME)
|
NAME)
|
||||||
SET(PERL_POSSIBLE_BIN_PATHS ${PERL_POSSIBLE_BIN_PATHS}
|
SET(PERL_POSSIBLE_BIN_PATHS ${PERL_POSSIBLE_BIN_PATHS}
|
||||||
"C:/Perl/bin"
|
"C:/Perl/bin"
|
||||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\${ActivePerl_CurrentVersion}]/bin
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\${ActivePerl_CurrentVersion}]/bin
|
||||||
)
|
)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
@ -73,7 +73,7 @@ ENDIF(PERL_EXECUTABLE)
|
||||||
# Deprecated settings for compatibility with CMake1.4
|
# Deprecated settings for compatibility with CMake1.4
|
||||||
SET(PERL ${PERL_EXECUTABLE})
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Perl
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Perl
|
||||||
|
|
|
@ -236,7 +236,7 @@ if (PERL_EXECUTABLE)
|
||||||
|
|
||||||
endif (PERL_EXECUTABLE)
|
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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# correspond to the ./configure --prefix=$PHYSFSDIR
|
# correspond to the ./configure --prefix=$PHYSFSDIR
|
||||||
# used in building PHYSFS.
|
# used in building PHYSFS.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing.
|
# Created by Eric Wing.
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Copyright 2005-2009 Kitware, Inc.
|
# Copyright 2005-2009 Kitware, Inc.
|
||||||
|
@ -36,7 +36,7 @@ FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h
|
||||||
/opt
|
/opt
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(PHYSFS_LIBRARY
|
FIND_LIBRARY(PHYSFS_LIBRARY
|
||||||
NAMES physfs
|
NAMES physfs
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{PHYSFSDIR}
|
$ENV{PHYSFSDIR}
|
||||||
|
|
|
@ -156,7 +156,7 @@ endmacro(_pkgconfig_invoke_dyn)
|
||||||
macro(_pkgconfig_parse_options _result _is_req _is_silent)
|
macro(_pkgconfig_parse_options _result _is_req _is_silent)
|
||||||
set(${_is_req} 0)
|
set(${_is_req} 0)
|
||||||
set(${_is_silent} 0)
|
set(${_is_silent} 0)
|
||||||
|
|
||||||
foreach(_pkg ${ARGN})
|
foreach(_pkg ${ARGN})
|
||||||
if (_pkg STREQUAL "REQUIRED")
|
if (_pkg STREQUAL "REQUIRED")
|
||||||
set(${_is_req} 1)
|
set(${_is_req} 1)
|
||||||
|
@ -207,7 +207,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||||
message(STATUS "checking for modules '${_pkg_check_modules_list}'")
|
message(STATUS "checking for modules '${_pkg_check_modules_list}'")
|
||||||
endif(_pkg_check_modules_cnt EQUAL 1)
|
endif(_pkg_check_modules_cnt EQUAL 1)
|
||||||
endif(NOT ${_is_silent})
|
endif(NOT ${_is_silent})
|
||||||
|
|
||||||
set(_pkg_check_modules_packages)
|
set(_pkg_check_modules_packages)
|
||||||
set(_pkg_check_modules_failed)
|
set(_pkg_check_modules_failed)
|
||||||
|
|
||||||
|
@ -234,14 +234,14 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||||
if (_pkg_check_modules_pkg_op STREQUAL "=")
|
if (_pkg_check_modules_pkg_op STREQUAL "=")
|
||||||
list(APPEND _pkg_check_modules_exist_query --exact-version)
|
list(APPEND _pkg_check_modules_exist_query --exact-version)
|
||||||
endif(_pkg_check_modules_pkg_op STREQUAL "=")
|
endif(_pkg_check_modules_pkg_op STREQUAL "=")
|
||||||
|
|
||||||
if (_pkg_check_modules_pkg_op STREQUAL "<=")
|
if (_pkg_check_modules_pkg_op STREQUAL "<=")
|
||||||
list(APPEND _pkg_check_modules_exist_query --max-version)
|
list(APPEND _pkg_check_modules_exist_query --max-version)
|
||||||
endif(_pkg_check_modules_pkg_op STREQUAL "<=")
|
endif(_pkg_check_modules_pkg_op STREQUAL "<=")
|
||||||
|
|
||||||
# create the final query which is of the format:
|
# create the final query which is of the format:
|
||||||
# * --atleast-version <version> <pkg-name>
|
# * --atleast-version <version> <pkg-name>
|
||||||
# * --exact-version <version> <pkg-name>
|
# * --exact-version <version> <pkg-name>
|
||||||
# * --max-version <version> <pkg-name>
|
# * --max-version <version> <pkg-name>
|
||||||
# * --exists <pkg-name>
|
# * --exists <pkg-name>
|
||||||
if (_pkg_check_modules_pkg_op)
|
if (_pkg_check_modules_pkg_op)
|
||||||
|
@ -281,7 +281,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||||
else(_pkg_check_modules_failed)
|
else(_pkg_check_modules_failed)
|
||||||
# when we are here, we checked whether requested modules
|
# when we are here, we checked whether requested modules
|
||||||
# exist. Now, go through them and set variables
|
# exist. Now, go through them and set variables
|
||||||
|
|
||||||
_pkgconfig_set(${_prefix}_FOUND 1)
|
_pkgconfig_set(${_prefix}_FOUND 1)
|
||||||
list(LENGTH _pkg_check_modules_packages pkg_count)
|
list(LENGTH _pkg_check_modules_packages pkg_count)
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||||
else(pkg_count EQUAL 1)
|
else(pkg_count EQUAL 1)
|
||||||
set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
|
set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
|
||||||
endif(pkg_count EQUAL 1)
|
endif(pkg_count EQUAL 1)
|
||||||
|
|
||||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion )
|
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion )
|
||||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" PREFIX "" --variable=prefix )
|
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" PREFIX "" --variable=prefix )
|
||||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" INCLUDEDIR "" --variable=includedir )
|
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" INCLUDEDIR "" --variable=includedir )
|
||||||
|
@ -363,9 +363,9 @@ macro(pkg_search_module _prefix _module0)
|
||||||
message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
|
message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
|
||||||
endif(${_pkg_is_required})
|
endif(${_pkg_is_required})
|
||||||
endif(NOT ${_prefix}_FOUND)
|
endif(NOT ${_prefix}_FOUND)
|
||||||
|
|
||||||
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
|
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
|
||||||
endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
|
endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
|
||||||
endmacro(pkg_search_module)
|
endmacro(pkg_search_module)
|
||||||
|
|
||||||
### Local Variables:
|
### Local Variables:
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
# Though Producer isn't directly part of OpenSceneGraph, its primary user
|
# Though Producer isn't directly part of OpenSceneGraph, its primary user
|
||||||
# is OSG so I consider this part of the Findosg* suite used to find
|
# is OSG so I consider this part of the Findosg* suite used to find
|
||||||
# OpenSceneGraph components. You'll notice that I accept OSGDIR as an
|
# OpenSceneGraph components. You'll notice that I accept OSGDIR as an
|
||||||
# environment path.
|
# environment path.
|
||||||
#
|
#
|
||||||
# Each component is separate and you must opt in to each module. You must
|
# Each component is separate and you must opt in to each module. You must
|
||||||
# also opt into OpenGL (and OpenThreads?) as these
|
# also opt into OpenGL (and OpenThreads?) as these
|
||||||
# modules won't do it for you. This is to allow you control over your own
|
# modules won't do it for you. This is to allow you control over your own
|
||||||
# system piece by piece in case you need to opt out of certain components
|
# system piece by piece in case you need to opt out of certain components
|
||||||
# or change the Find behavior for a particular module (perhaps because the
|
# or change the Find behavior for a particular module (perhaps because the
|
||||||
# default FindOpenGL.cmake module doesn't work with your system as an
|
# default FindOpenGL.cmake module doesn't work with your system as an
|
||||||
# example).
|
# example).
|
||||||
# If you want to use a more convenient module that includes everything,
|
# If you want to use a more convenient module that includes everything,
|
||||||
# use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
|
# use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
|
||||||
#
|
#
|
||||||
# Locate Producer
|
# Locate Producer
|
||||||
# This module defines
|
# This module defines
|
||||||
# PRODUCER_LIBRARY
|
# PRODUCER_LIBRARY
|
||||||
|
@ -59,7 +59,7 @@ FIND_PATH(PRODUCER_INCLUDE_DIR Producer/CameraGroup
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(PRODUCER_LIBRARY
|
FIND_LIBRARY(PRODUCER_LIBRARY
|
||||||
NAMES Producer
|
NAMES Producer
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{PRODUCER_DIR}
|
$ENV{PRODUCER_DIR}
|
||||||
|
|
|
@ -109,7 +109,7 @@ function(PROTOBUF_GENERATE_CPP SRCS HDRS)
|
||||||
foreach(FIL ${ARGN})
|
foreach(FIL ${ARGN})
|
||||||
get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
|
get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
|
||||||
get_filename_component(FIL_WE ${FIL} NAME_WE)
|
get_filename_component(FIL_WE ${FIL} NAME_WE)
|
||||||
|
|
||||||
list(APPEND ${SRCS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc")
|
list(APPEND ${SRCS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc")
|
||||||
list(APPEND ${HDRS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h")
|
list(APPEND ${HDRS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h")
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
# If multiple versions of QT are found on the machine, then
|
# If multiple versions of QT are found on the machine, then
|
||||||
# The user must set the option DESIRED_QT_VERSION to the version
|
# The user must set the option DESIRED_QT_VERSION to the version
|
||||||
# they want to use. If only one version of qt is found on the machine,
|
# they want to use. If only one version of qt is found on the machine,
|
||||||
# then the DESIRED_QT_VERSION is set to that version and the
|
# then the DESIRED_QT_VERSION is set to that version and the
|
||||||
# matching FindQt3 or FindQt4 module is included.
|
# matching FindQt3 or FindQt4 module is included.
|
||||||
# Once the user sets DESIRED_QT_VERSION, then the FindQt3 or FindQt4 module
|
# Once the user sets DESIRED_QT_VERSION, then the FindQt3 or FindQt4 module
|
||||||
# is included.
|
# is included.
|
||||||
#
|
#
|
||||||
# QT_REQUIRED if this is set to TRUE then if CMake can
|
# QT_REQUIRED if this is set to TRUE then if CMake can
|
||||||
# not find QT4 or QT3 an error is raised
|
# not find QT4 or QT3 an error is raised
|
||||||
# and a message is sent to the user.
|
# and a message is sent to the user.
|
||||||
#
|
#
|
||||||
# DESIRED_QT_VERSION OPTION is created
|
# DESIRED_QT_VERSION OPTION is created
|
||||||
|
@ -72,7 +72,7 @@ ENDIF(QT_QMAKE_EXECUTABLE_FINDQT)
|
||||||
|
|
||||||
IF(QT_QMAKE_EXECUTABLE_FINDQT)
|
IF(QT_QMAKE_EXECUTABLE_FINDQT)
|
||||||
EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE_FINDQT}
|
EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE_FINDQT}
|
||||||
ARGS "-query QT_INSTALL_HEADERS"
|
ARGS "-query QT_INSTALL_HEADERS"
|
||||||
OUTPUT_VARIABLE qt_headers )
|
OUTPUT_VARIABLE qt_headers )
|
||||||
ENDIF(QT_QMAKE_EXECUTABLE_FINDQT)
|
ENDIF(QT_QMAKE_EXECUTABLE_FINDQT)
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ IF(QT4_QGLOBAL_H_FILE)
|
||||||
ENDIF(QT4_QGLOBAL_H_FILE)
|
ENDIF(QT4_QGLOBAL_H_FILE)
|
||||||
|
|
||||||
FIND_FILE( QT3_QGLOBAL_H_FILE qglobal.h
|
FIND_FILE( QT3_QGLOBAL_H_FILE qglobal.h
|
||||||
"${QT_SEARCH_PATH}/Qt/include"
|
"${QT_SEARCH_PATH}/Qt/include"
|
||||||
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
|
||||||
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"
|
||||||
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt"
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt"
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# This module can be used to find Qt4.
|
# This module can be used to find Qt4.
|
||||||
# The most important issue is that the Qt4 qmake is available via the system path.
|
# The most important issue is that the Qt4 qmake is available via the system path.
|
||||||
# This qmake is then used to detect basically everything else.
|
# This qmake is then used to detect basically everything else.
|
||||||
# This module defines a number of key variables and macros.
|
# This module defines a number of key variables and macros.
|
||||||
# The variable QT_USE_FILE is set which is the path to a CMake file that can be included
|
# The variable QT_USE_FILE is set which is the path to a CMake file that can be included
|
||||||
# to compile Qt 4 applications and libraries. It sets up the compilation
|
# to compile Qt 4 applications and libraries. It sets up the compilation
|
||||||
# environment for include directories, preprocessor defines and populates a
|
# environment for include directories, preprocessor defines and populates a
|
||||||
# QT_LIBRARIES variable.
|
# QT_LIBRARIES variable.
|
||||||
|
@ -15,10 +15,10 @@
|
||||||
# target_link_libraries(myexe ${QT_LIBRARIES})
|
# target_link_libraries(myexe ${QT_LIBRARIES})
|
||||||
#
|
#
|
||||||
# The minimum required version can be specified using the standard find_package()-syntax
|
# The minimum required version can be specified using the standard find_package()-syntax
|
||||||
# (see example above).
|
# (see example above).
|
||||||
# For compatibility with older versions of FindQt4.cmake it is also possible to
|
# For compatibility with older versions of FindQt4.cmake it is also possible to
|
||||||
# set the variable QT_MIN_VERSION to the minimum required version of Qt4 before the
|
# set the variable QT_MIN_VERSION to the minimum required version of Qt4 before the
|
||||||
# find_package(Qt4) command.
|
# find_package(Qt4) command.
|
||||||
# If both are used, the version used in the find_package() command overrides the
|
# If both are used, the version used in the find_package() command overrides the
|
||||||
# one from QT_MIN_VERSION.
|
# one from QT_MIN_VERSION.
|
||||||
#
|
#
|
||||||
|
@ -53,26 +53,26 @@
|
||||||
# QT_USE_QTSCRIPTTOOLS
|
# QT_USE_QTSCRIPTTOOLS
|
||||||
# QT_USE_QTDECLARATIVE
|
# QT_USE_QTDECLARATIVE
|
||||||
#
|
#
|
||||||
# QT_USE_IMPORTED_TARGETS
|
# QT_USE_IMPORTED_TARGETS
|
||||||
# If this variable is set to TRUE, FindQt4.cmake will create imported
|
# If this variable is set to TRUE, FindQt4.cmake will create imported
|
||||||
# library targets for the various Qt libraries and set the
|
# library targets for the various Qt libraries and set the
|
||||||
# library variables like QT_QTCORE_LIBRARY to point at these imported
|
# library variables like QT_QTCORE_LIBRARY to point at these imported
|
||||||
# targets instead of the library file on disk. This provides much better
|
# targets instead of the library file on disk. This provides much better
|
||||||
# handling of the release and debug versions of the Qt libraries and is
|
# handling of the release and debug versions of the Qt libraries and is
|
||||||
# also always backwards compatible, except for the case that dependencies
|
# also always backwards compatible, except for the case that dependencies
|
||||||
# of libraries are exported, these will then also list the names of the
|
# of libraries are exported, these will then also list the names of the
|
||||||
# imported targets as dependency and not the file location on disk. This
|
# imported targets as dependency and not the file location on disk. This
|
||||||
# is much more flexible, but requires that FindQt4.cmake is executed before
|
# is much more flexible, but requires that FindQt4.cmake is executed before
|
||||||
# such an exported dependency file is processed.
|
# such an exported dependency file is processed.
|
||||||
#
|
#
|
||||||
# There are also some files that need processing by some Qt tools such as moc
|
# There are also some files that need processing by some Qt tools such as moc
|
||||||
# and uic. Listed below are macros that may be used to process those files.
|
# and uic. Listed below are macros that may be used to process those files.
|
||||||
#
|
#
|
||||||
# macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)
|
# macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)
|
||||||
# create moc code from a list of files containing Qt class with
|
# create moc code from a list of files containing Qt class with
|
||||||
# the Q_OBJECT declaration. Per-directory preprocessor definitions
|
# the Q_OBJECT declaration. Per-directory preprocessor definitions
|
||||||
# are also added. Options may be given to moc, such as those found
|
# are also added. Options may be given to moc, such as those found
|
||||||
# when executing "moc -help".
|
# when executing "moc -help".
|
||||||
#
|
#
|
||||||
# macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)
|
# macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)
|
||||||
# create code from a list of Qt designer ui files.
|
# create code from a list of Qt designer ui files.
|
||||||
|
@ -92,13 +92,13 @@
|
||||||
# macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )
|
# macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )
|
||||||
# This macro is still experimental.
|
# This macro is still experimental.
|
||||||
# It can be used to have moc automatically handled.
|
# It can be used to have moc automatically handled.
|
||||||
# So if you have the files foo.h and foo.cpp, and in foo.h a
|
# So if you have the files foo.h and foo.cpp, and in foo.h a
|
||||||
# a class uses the Q_OBJECT macro, moc has to run on it. If you don't
|
# a class uses the Q_OBJECT macro, moc has to run on it. If you don't
|
||||||
# want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert
|
# want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert
|
||||||
# #include "foo.moc"
|
# #include "foo.moc"
|
||||||
# in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the
|
# in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the
|
||||||
# scan all listed files at cmake-time for such included moc files and if it finds
|
# scan all listed files at cmake-time for such included moc files and if it finds
|
||||||
# them cause a rule to be generated to run moc at build time on the
|
# them cause a rule to be generated to run moc at build time on the
|
||||||
# accompanying header file foo.h.
|
# accompanying header file foo.h.
|
||||||
# If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.
|
# If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.
|
||||||
#
|
#
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
#
|
#
|
||||||
# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
|
# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
|
||||||
# Create a the interface header and implementation files with the
|
# Create a the interface header and implementation files with the
|
||||||
# given basename from the given interface xml file and add it to
|
# given basename from the given interface xml file and add it to
|
||||||
# the list of sources.
|
# the list of sources.
|
||||||
#
|
#
|
||||||
# You can pass additional parameters to the qdbusxml2cpp call by setting
|
# You can pass additional parameters to the qdbusxml2cpp call by setting
|
||||||
|
@ -136,19 +136,19 @@
|
||||||
#
|
#
|
||||||
# macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)
|
# macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)
|
||||||
# generate the xml interface file from the given header.
|
# generate the xml interface file from the given header.
|
||||||
# If the optional argument interfacename is omitted, the name of the
|
# If the optional argument interfacename is omitted, the name of the
|
||||||
# interface file is constructed from the basename of the header with
|
# interface file is constructed from the basename of the header with
|
||||||
# the suffix .xml appended.
|
# the suffix .xml appended.
|
||||||
# Options may be given to qdbuscpp2xml, such as those found when executing "qdbuscpp2xml --help"
|
# Options may be given to qdbuscpp2xml, such as those found when executing "qdbuscpp2xml --help"
|
||||||
#
|
#
|
||||||
# macro QT4_CREATE_TRANSLATION( qm_files directories ... sources ...
|
# macro QT4_CREATE_TRANSLATION( qm_files directories ... sources ...
|
||||||
# ts_files ... OPTIONS ...)
|
# ts_files ... OPTIONS ...)
|
||||||
# out: qm_files
|
# out: qm_files
|
||||||
# in: directories sources ts_files
|
# in: directories sources ts_files
|
||||||
# options: flags to pass to lupdate, such as -extensions to specify
|
# options: flags to pass to lupdate, such as -extensions to specify
|
||||||
# extensions for a directory scan.
|
# extensions for a directory scan.
|
||||||
# generates commands to create .ts (vie lupdate) and .qm
|
# generates commands to create .ts (vie lupdate) and .qm
|
||||||
# (via lrelease) - files from directories and/or sources. The ts files are
|
# (via lrelease) - files from directories and/or sources. The ts files are
|
||||||
# created and/or updated in the source tree (unless given with full paths).
|
# created and/or updated in the source tree (unless given with full paths).
|
||||||
# The qm files are generated in the build tree.
|
# The qm files are generated in the build tree.
|
||||||
# Updating the translations can be done by adding the qm_files
|
# Updating the translations can be done by adding the qm_files
|
||||||
|
@ -211,41 +211,41 @@
|
||||||
# The QT_USE_FILE will also define QT_DEBUG and QT_NO_DEBUG
|
# The QT_USE_FILE will also define QT_DEBUG and QT_NO_DEBUG
|
||||||
# to fit your current build type. Those are not contained
|
# to fit your current build type. Those are not contained
|
||||||
# in QT_DEFINITIONS.
|
# in QT_DEFINITIONS.
|
||||||
#
|
#
|
||||||
# QT_INCLUDES List of paths to all include directories of
|
# QT_INCLUDES List of paths to all include directories of
|
||||||
# Qt4 QT_INCLUDE_DIR and QT_QTCORE_INCLUDE_DIR are
|
# Qt4 QT_INCLUDE_DIR and QT_QTCORE_INCLUDE_DIR are
|
||||||
# always in this variable even if NOTFOUND,
|
# always in this variable even if NOTFOUND,
|
||||||
# all other INCLUDE_DIRS are
|
# all other INCLUDE_DIRS are
|
||||||
# only added if they are found.
|
# only added if they are found.
|
||||||
# You do not need to use this if you include QT_USE_FILE.
|
# You do not need to use this if you include QT_USE_FILE.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Include directories for the Qt modules are listed here.
|
# Include directories for the Qt modules are listed here.
|
||||||
# You do not need to use these variables if you include QT_USE_FILE.
|
# You do not need to use these variables if you include QT_USE_FILE.
|
||||||
#
|
#
|
||||||
# QT_INCLUDE_DIR Path to "include" of Qt4
|
# QT_INCLUDE_DIR Path to "include" of Qt4
|
||||||
# QT_QT3SUPPORT_INCLUDE_DIR Path to "include/Qt3Support"
|
# QT_QT3SUPPORT_INCLUDE_DIR Path to "include/Qt3Support"
|
||||||
# QT_QTASSISTANT_INCLUDE_DIR Path to "include/QtAssistant"
|
# QT_QTASSISTANT_INCLUDE_DIR Path to "include/QtAssistant"
|
||||||
# QT_QTASSISTANTCLIENT_INCLUDE_DIR Path to "include/QtAssistant"
|
# QT_QTASSISTANTCLIENT_INCLUDE_DIR Path to "include/QtAssistant"
|
||||||
# QT_QAXCONTAINER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)
|
# QT_QAXCONTAINER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)
|
||||||
# QT_QAXSERVER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)
|
# QT_QAXSERVER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)
|
||||||
# QT_QTCORE_INCLUDE_DIR Path to "include/QtCore"
|
# QT_QTCORE_INCLUDE_DIR Path to "include/QtCore"
|
||||||
# QT_QTDBUS_INCLUDE_DIR Path to "include/QtDBus"
|
# QT_QTDBUS_INCLUDE_DIR Path to "include/QtDBus"
|
||||||
# QT_QTDESIGNER_INCLUDE_DIR Path to "include/QtDesigner"
|
# QT_QTDESIGNER_INCLUDE_DIR Path to "include/QtDesigner"
|
||||||
# QT_QTDESIGNERCOMPONENTS_INCLUDE_DIR Path to "include/QtDesigner"
|
# QT_QTDESIGNERCOMPONENTS_INCLUDE_DIR Path to "include/QtDesigner"
|
||||||
# QT_QTGUI_INCLUDE_DIR Path to "include/QtGui"
|
# QT_QTGUI_INCLUDE_DIR Path to "include/QtGui"
|
||||||
# QT_QTHELP_INCLUDE_DIR Path to "include/QtHelp"
|
# QT_QTHELP_INCLUDE_DIR Path to "include/QtHelp"
|
||||||
# QT_QTMOTIF_INCLUDE_DIR Path to "include/QtMotif"
|
# QT_QTMOTIF_INCLUDE_DIR Path to "include/QtMotif"
|
||||||
# QT_QTMULTIMEDIA_INCLUDE_DIR Path to "include/QtMultimedia"
|
# QT_QTMULTIMEDIA_INCLUDE_DIR Path to "include/QtMultimedia"
|
||||||
# QT_QTNETWORK_INCLUDE_DIR Path to "include/QtNetwork"
|
# QT_QTNETWORK_INCLUDE_DIR Path to "include/QtNetwork"
|
||||||
# QT_QTNSPLUGIN_INCLUDE_DIR Path to "include/QtNsPlugin"
|
# QT_QTNSPLUGIN_INCLUDE_DIR Path to "include/QtNsPlugin"
|
||||||
# QT_QTOPENGL_INCLUDE_DIR Path to "include/QtOpenGL"
|
# QT_QTOPENGL_INCLUDE_DIR Path to "include/QtOpenGL"
|
||||||
# QT_QTSCRIPT_INCLUDE_DIR Path to "include/QtScript"
|
# QT_QTSCRIPT_INCLUDE_DIR Path to "include/QtScript"
|
||||||
# QT_QTSQL_INCLUDE_DIR Path to "include/QtSql"
|
# QT_QTSQL_INCLUDE_DIR Path to "include/QtSql"
|
||||||
# QT_QTSVG_INCLUDE_DIR Path to "include/QtSvg"
|
# QT_QTSVG_INCLUDE_DIR Path to "include/QtSvg"
|
||||||
# QT_QTTEST_INCLUDE_DIR Path to "include/QtTest"
|
# QT_QTTEST_INCLUDE_DIR Path to "include/QtTest"
|
||||||
# QT_QTWEBKIT_INCLUDE_DIR Path to "include/QtWebKit"
|
# QT_QTWEBKIT_INCLUDE_DIR Path to "include/QtWebKit"
|
||||||
# QT_QTXML_INCLUDE_DIR Path to "include/QtXml"
|
# QT_QTXML_INCLUDE_DIR Path to "include/QtXml"
|
||||||
# QT_QTXMLPATTERNS_INCLUDE_DIR Path to "include/QtXmlPatterns"
|
# QT_QTXMLPATTERNS_INCLUDE_DIR Path to "include/QtXmlPatterns"
|
||||||
# QT_PHONON_INCLUDE_DIR Path to "include/phonon"
|
# QT_PHONON_INCLUDE_DIR Path to "include/phonon"
|
||||||
# QT_QTSCRIPTTOOLS_INCLUDE_DIR Path to "include/QtScriptTools"
|
# QT_QTSCRIPTTOOLS_INCLUDE_DIR Path to "include/QtScriptTools"
|
||||||
|
@ -292,7 +292,7 @@
|
||||||
# QT_QTMAIN_LIBRARY The qtmain library for Windows
|
# QT_QTMAIN_LIBRARY The qtmain library for Windows
|
||||||
# QT_PHONON_LIBRARY The phonon library
|
# QT_PHONON_LIBRARY The phonon library
|
||||||
# QT_QTSCRIPTTOOLS_LIBRARY The QtScriptTools library
|
# QT_QTSCRIPTTOOLS_LIBRARY The QtScriptTools library
|
||||||
#
|
#
|
||||||
# The QtDeclarative library: QT_QTDECLARATIVE_LIBRARY
|
# The QtDeclarative library: QT_QTDECLARATIVE_LIBRARY
|
||||||
#
|
#
|
||||||
# also defined, but NOT for general use are
|
# also defined, but NOT for general use are
|
||||||
|
@ -307,17 +307,17 @@
|
||||||
# QT_QCOLLECTIONGENERATOR_EXECUTABLE Where to find the qcollectiongenerator tool.
|
# QT_QCOLLECTIONGENERATOR_EXECUTABLE Where to find the qcollectiongenerator tool.
|
||||||
# QT_DESIGNER_EXECUTABLE Where to find the Qt designer tool.
|
# QT_DESIGNER_EXECUTABLE Where to find the Qt designer tool.
|
||||||
# QT_LINGUIST_EXECUTABLE Where to find the Qt linguist tool.
|
# QT_LINGUIST_EXECUTABLE Where to find the Qt linguist tool.
|
||||||
#
|
|
||||||
#
|
#
|
||||||
# These are around for backwards compatibility
|
#
|
||||||
|
# These are around for backwards compatibility
|
||||||
# they will be set
|
# they will be set
|
||||||
# QT_WRAP_CPP Set true if QT_MOC_EXECUTABLE is found
|
# QT_WRAP_CPP Set true if QT_MOC_EXECUTABLE is found
|
||||||
# QT_WRAP_UI Set true if QT_UIC_EXECUTABLE is found
|
# QT_WRAP_UI Set true if QT_UIC_EXECUTABLE is found
|
||||||
#
|
#
|
||||||
# These variables do _NOT_ have any effect anymore (compared to FindQt.cmake)
|
# These variables do _NOT_ have any effect anymore (compared to FindQt.cmake)
|
||||||
# QT_MT_REQUIRED Qt4 is now always multithreaded
|
# QT_MT_REQUIRED Qt4 is now always multithreaded
|
||||||
#
|
#
|
||||||
# These variables are set to "" Because Qt structure changed
|
# These variables are set to "" Because Qt structure changed
|
||||||
# (They make no sense in Qt4)
|
# (They make no sense in Qt4)
|
||||||
# QT_QT_LIBRARY Qt-Library is now split
|
# QT_QT_LIBRARY Qt-Library is now split
|
||||||
|
|
||||||
|
@ -340,12 +340,12 @@ IF( Qt4_FIND_COMPONENTS )
|
||||||
STRING( TOUPPER ${component} _COMPONENT )
|
STRING( TOUPPER ${component} _COMPONENT )
|
||||||
SET( QT_USE_${_COMPONENT} 1 )
|
SET( QT_USE_${_COMPONENT} 1 )
|
||||||
ENDFOREACH( component )
|
ENDFOREACH( component )
|
||||||
|
|
||||||
# To make sure we don't use QtCore or QtGui when not in COMPONENTS
|
# To make sure we don't use QtCore or QtGui when not in COMPONENTS
|
||||||
IF(NOT QT_USE_QTCORE)
|
IF(NOT QT_USE_QTCORE)
|
||||||
SET( QT_DONT_USE_QTCORE 1 )
|
SET( QT_DONT_USE_QTCORE 1 )
|
||||||
ENDIF(NOT QT_USE_QTCORE)
|
ENDIF(NOT QT_USE_QTCORE)
|
||||||
|
|
||||||
IF(NOT QT_USE_QTGUI)
|
IF(NOT QT_USE_QTGUI)
|
||||||
SET( QT_DONT_USE_QTGUI 1 )
|
SET( QT_DONT_USE_QTGUI 1 )
|
||||||
ENDIF(NOT QT_USE_QTGUI)
|
ENDIF(NOT QT_USE_QTGUI)
|
||||||
|
@ -765,7 +765,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
QtHelp QtWebKit QtXmlPatterns phonon QtNetwork QtMultimedia
|
QtHelp QtWebKit QtXmlPatterns phonon QtNetwork QtMultimedia
|
||||||
QtNsPlugin QtOpenGL QtSql QtXml QtDesigner QtDBus QtScriptTools
|
QtNsPlugin QtOpenGL QtSql QtXml QtDesigner QtDBus QtScriptTools
|
||||||
QtDeclarative)
|
QtDeclarative)
|
||||||
|
|
||||||
IF(Q_WS_X11)
|
IF(Q_WS_X11)
|
||||||
SET(QT_MODULES ${QT_MODULES} QtMotif)
|
SET(QT_MODULES ${QT_MODULES} QtMotif)
|
||||||
ENDIF(Q_WS_X11)
|
ENDIF(Q_WS_X11)
|
||||||
|
@ -840,7 +840,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
${QT_LIBRARY_DIR}/QtDesigner.framework/Headers
|
${QT_LIBRARY_DIR}/QtDesigner.framework/Headers
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set QT_QTASSISTANT_INCLUDE_DIR
|
# Set QT_QTASSISTANT_INCLUDE_DIR
|
||||||
FIND_PATH(QT_QTASSISTANT_INCLUDE_DIR QtAssistant
|
FIND_PATH(QT_QTASSISTANT_INCLUDE_DIR QtAssistant
|
||||||
PATHS
|
PATHS
|
||||||
|
@ -848,7 +848,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
${QT_LIBRARY_DIR}/QtAssistant.framework/Headers
|
${QT_LIBRARY_DIR}/QtAssistant.framework/Headers
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set QT_QTASSISTANTCLIENT_INCLUDE_DIR
|
# Set QT_QTASSISTANTCLIENT_INCLUDE_DIR
|
||||||
FIND_PATH(QT_QTASSISTANTCLIENT_INCLUDE_DIR QAssistantClient
|
FIND_PATH(QT_QTASSISTANTCLIENT_INCLUDE_DIR QAssistantClient
|
||||||
PATHS
|
PATHS
|
||||||
|
@ -866,11 +866,11 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
# find the libraries
|
# find the libraries
|
||||||
FOREACH(QT_MODULE ${QT_MODULES})
|
FOREACH(QT_MODULE ${QT_MODULES})
|
||||||
STRING(TOUPPER ${QT_MODULE} _upper_qt_module)
|
STRING(TOUPPER ${QT_MODULE} _upper_qt_module)
|
||||||
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_RELEASE
|
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_RELEASE
|
||||||
NAMES ${QT_MODULE}${QT_LIBINFIX} ${QT_MODULE}${QT_LIBINFIX}4
|
NAMES ${QT_MODULE}${QT_LIBINFIX} ${QT_MODULE}${QT_LIBINFIX}4
|
||||||
PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_DEBUG
|
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_DEBUG
|
||||||
NAMES ${QT_MODULE}${QT_LIBINFIX}_debug ${QT_MODULE}${QT_LIBINFIX}d ${QT_MODULE}${QT_LIBINFIX}d4
|
NAMES ${QT_MODULE}${QT_LIBINFIX}_debug ${QT_MODULE}${QT_LIBINFIX}d ${QT_MODULE}${QT_LIBINFIX}d4
|
||||||
PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
@ -891,11 +891,11 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
FIND_LIBRARY(QT_QTMAIN_LIBRARY_RELEASE NAMES qtmain${QT_LIBINFIX} PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTMAIN_LIBRARY_RELEASE NAMES qtmain${QT_LIBINFIX} PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
FIND_LIBRARY(QT_QTMAIN_LIBRARY_DEBUG NAMES qtmain${QT_LIBINFIX}d PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTMAIN_LIBRARY_DEBUG NAMES qtmain${QT_LIBINFIX}d PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
ENDIF(Q_WS_WIN)
|
ENDIF(Q_WS_WIN)
|
||||||
|
|
||||||
# Set QT_QTASSISTANTCLIENT_LIBRARY
|
# Set QT_QTASSISTANTCLIENT_LIBRARY
|
||||||
FIND_LIBRARY(QT_QTASSISTANTCLIENT_LIBRARY_RELEASE NAMES QtAssistantClient${QT_LIBINFIX} QtAssistantClient${QT_LIBINFIX}4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTASSISTANTCLIENT_LIBRARY_RELEASE NAMES QtAssistantClient${QT_LIBINFIX} QtAssistantClient${QT_LIBINFIX}4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
FIND_LIBRARY(QT_QTASSISTANTCLIENT_LIBRARY_DEBUG NAMES QtAssistantClient${QT_LIBINFIX}_debug QtAssistantClient${QT_LIBINFIX}d QtAssistantClient${QT_LIBINFIX}d4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTASSISTANTCLIENT_LIBRARY_DEBUG NAMES QtAssistantClient${QT_LIBINFIX}_debug QtAssistantClient${QT_LIBINFIX}d QtAssistantClient${QT_LIBINFIX}d4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
|
|
||||||
# Set QT_QTASSISTANT_LIBRARY
|
# Set QT_QTASSISTANT_LIBRARY
|
||||||
FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_RELEASE NAMES QtAssistantClient${QT_LIBINFIX} QtAssistantClient${QT_LIBINFIX}4 QtAssistant${QT_LIBINFIX} QtAssistant${QT_LIBINFIX}4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_RELEASE NAMES QtAssistantClient${QT_LIBINFIX} QtAssistantClient${QT_LIBINFIX}4 QtAssistant${QT_LIBINFIX} QtAssistant${QT_LIBINFIX}4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_DEBUG NAMES QtAssistantClient${QT_LIBINFIX}_debug QtAssistantClient${QT_LIBINFIX}d QtAssistantClient${QT_LIBINFIX}d4 QtAssistant${QT_LIBINFIX}_debug QtAssistant${QT_LIBINFIX}d4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_DEBUG NAMES QtAssistantClient${QT_LIBINFIX}_debug QtAssistantClient${QT_LIBINFIX}d QtAssistantClient${QT_LIBINFIX}d4 QtAssistant${QT_LIBINFIX}_debug QtAssistant${QT_LIBINFIX}d4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||||
|
@ -915,7 +915,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
############################################
|
############################################
|
||||||
|
|
||||||
|
|
||||||
# Set QT_xyz_LIBRARY variable and add
|
# Set QT_xyz_LIBRARY variable and add
|
||||||
# library include path to QT_INCLUDES
|
# library include path to QT_INCLUDES
|
||||||
_QT4_ADJUST_LIB_VARS(QtCore)
|
_QT4_ADJUST_LIB_VARS(QtCore)
|
||||||
|
|
||||||
|
@ -938,7 +938,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
#
|
#
|
||||||
# Check the executables of Qt
|
# Check the executables of Qt
|
||||||
# ( moc, uic, rcc )
|
# ( moc, uic, rcc )
|
||||||
#
|
#
|
||||||
#######################################
|
#######################################
|
||||||
|
@ -957,7 +957,7 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
SET(QT_DESIGNER_EXECUTABLE NOTFOUND)
|
SET(QT_DESIGNER_EXECUTABLE NOTFOUND)
|
||||||
SET(QT_LINGUIST_EXECUTABLE NOTFOUND)
|
SET(QT_LINGUIST_EXECUTABLE NOTFOUND)
|
||||||
ENDIF(QT_QMAKE_CHANGED)
|
ENDIF(QT_QMAKE_CHANGED)
|
||||||
|
|
||||||
FIND_PROGRAM(QT_MOC_EXECUTABLE
|
FIND_PROGRAM(QT_MOC_EXECUTABLE
|
||||||
NAMES moc-qt4 moc
|
NAMES moc-qt4 moc
|
||||||
PATHS ${QT_BINARY_DIR}
|
PATHS ${QT_BINARY_DIR}
|
||||||
|
@ -976,19 +976,19 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PROGRAM(QT_RCC_EXECUTABLE
|
FIND_PROGRAM(QT_RCC_EXECUTABLE
|
||||||
NAMES rcc
|
NAMES rcc
|
||||||
PATHS ${QT_BINARY_DIR}
|
PATHS ${QT_BINARY_DIR}
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PROGRAM(QT_DBUSCPP2XML_EXECUTABLE
|
FIND_PROGRAM(QT_DBUSCPP2XML_EXECUTABLE
|
||||||
NAMES qdbuscpp2xml
|
NAMES qdbuscpp2xml
|
||||||
PATHS ${QT_BINARY_DIR}
|
PATHS ${QT_BINARY_DIR}
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PROGRAM(QT_DBUSXML2CPP_EXECUTABLE
|
FIND_PROGRAM(QT_DBUSXML2CPP_EXECUTABLE
|
||||||
NAMES qdbusxml2cpp
|
NAMES qdbusxml2cpp
|
||||||
PATHS ${QT_BINARY_DIR}
|
PATHS ${QT_BINARY_DIR}
|
||||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||||
|
@ -1043,10 +1043,10 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
# get the directory of the current file, used later on in the file
|
# get the directory of the current file, used later on in the file
|
||||||
GET_FILENAME_COMPONENT( _qt4_current_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
GET_FILENAME_COMPONENT( _qt4_current_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
#
|
#
|
||||||
# configuration/system dependent settings
|
# configuration/system dependent settings
|
||||||
#
|
#
|
||||||
###############################################
|
###############################################
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Locate QuickTime
|
# Locate QuickTime
|
||||||
# This module defines
|
# This module defines
|
||||||
# QUICKTIME_LIBRARY
|
# QUICKTIME_LIBRARY
|
||||||
# QUICKTIME_FOUND, if false, do not try to link to gdal
|
# QUICKTIME_FOUND, if false, do not try to link to gdal
|
||||||
# QUICKTIME_INCLUDE_DIR, where to find the headers
|
# QUICKTIME_INCLUDE_DIR, where to find the headers
|
||||||
#
|
#
|
||||||
# $QUICKTIME_DIR is an environment variable that would
|
# $QUICKTIME_DIR is an environment variable that would
|
||||||
# correspond to the ./configure --prefix=$QUICKTIME_DIR
|
# correspond to the ./configure --prefix=$QUICKTIME_DIR
|
||||||
#
|
#
|
||||||
# Created by Eric Wing.
|
# Created by Eric Wing.
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Copyright 2007-2009 Kitware, Inc.
|
# Copyright 2007-2009 Kitware, Inc.
|
||||||
|
|
|
@ -6,22 +6,22 @@
|
||||||
#
|
#
|
||||||
# This module responds to the the flag:
|
# This module responds to the the flag:
|
||||||
# SDL_BUILDING_LIBRARY
|
# SDL_BUILDING_LIBRARY
|
||||||
# If this is defined, then no SDL_main will be linked in because
|
# If this is defined, then no SDL_main will be linked in because
|
||||||
# only applications need main().
|
# only applications need main().
|
||||||
# Otherwise, it is assumed you are building an application and this
|
# Otherwise, it is assumed you are building an application and this
|
||||||
# module will attempt to locate and set the the proper link flags
|
# module will attempt to locate and set the the proper link flags
|
||||||
# as part of the returned SDL_LIBRARY variable.
|
# as part of the returned SDL_LIBRARY variable.
|
||||||
#
|
#
|
||||||
# Don't forget to include SDLmain.h and SDLmain.m your project for the
|
# Don't forget to include SDLmain.h and SDLmain.m your project for the
|
||||||
# OS X framework based version. (Other versions link to -lSDLmain which
|
# OS X framework based version. (Other versions link to -lSDLmain which
|
||||||
# this module will try to find on your behalf.) Also for OS X, this
|
# this module will try to find on your behalf.) Also for OS X, this
|
||||||
# module will automatically add the -framework Cocoa on your behalf.
|
# module will automatically add the -framework Cocoa on your behalf.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration
|
# Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration
|
||||||
# and no SDL_LIBRARY, it means CMake did not find your SDL library
|
# and no SDL_LIBRARY, it means CMake did not find your SDL library
|
||||||
# (SDL.dll, libsdl.so, SDL.framework, etc).
|
# (SDL.dll, libsdl.so, SDL.framework, etc).
|
||||||
# Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again.
|
# Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again.
|
||||||
# Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value
|
# Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value
|
||||||
# as appropriate. These values are used to generate the final SDL_LIBRARY
|
# as appropriate. These values are used to generate the final SDL_LIBRARY
|
||||||
# variable, but when these values are unset, SDL_LIBRARY does not get created.
|
# variable, but when these values are unset, SDL_LIBRARY does not get created.
|
||||||
|
@ -32,18 +32,18 @@
|
||||||
# used in building SDL.
|
# used in building SDL.
|
||||||
# l.e.galup 9-20-02
|
# l.e.galup 9-20-02
|
||||||
#
|
#
|
||||||
# Modified by Eric Wing.
|
# Modified by Eric Wing.
|
||||||
# Added code to assist with automated building by using environmental variables
|
# Added code to assist with automated building by using environmental variables
|
||||||
# and providing a more controlled/consistent search behavior.
|
# and providing a more controlled/consistent search behavior.
|
||||||
# Added new modifications to recognize OS X frameworks and
|
# Added new modifications to recognize OS X frameworks and
|
||||||
# additional Unix paths (FreeBSD, etc).
|
# additional Unix paths (FreeBSD, etc).
|
||||||
# Also corrected the header search path to follow "proper" SDL guidelines.
|
# Also corrected the header search path to follow "proper" SDL guidelines.
|
||||||
# Added a search for SDLmain which is needed by some platforms.
|
# Added a search for SDLmain which is needed by some platforms.
|
||||||
# Added a search for threads which is needed by some platforms.
|
# Added a search for threads which is needed by some platforms.
|
||||||
# Added needed compile switches for MinGW.
|
# Added needed compile switches for MinGW.
|
||||||
#
|
#
|
||||||
# On OSX, this will prefer the Framework version (if found) over others.
|
# On OSX, this will prefer the Framework version (if found) over others.
|
||||||
# People will have to manually change the cache values of
|
# People will have to manually change the cache values of
|
||||||
# SDL_LIBRARY to override this selection or set the CMake environment
|
# SDL_LIBRARY to override this selection or set the CMake environment
|
||||||
# CMAKE_INCLUDE_PATH to modify the search paths.
|
# CMAKE_INCLUDE_PATH to modify the search paths.
|
||||||
#
|
#
|
||||||
|
@ -84,7 +84,7 @@ FIND_PATH(SDL_INCLUDE_DIR SDL.h
|
||||||
|
|
||||||
# SDL-1.1 is the name used by FreeBSD ports...
|
# SDL-1.1 is the name used by FreeBSD ports...
|
||||||
# don't confuse it for the version number.
|
# don't confuse it for the version number.
|
||||||
FIND_LIBRARY(SDL_LIBRARY_TEMP
|
FIND_LIBRARY(SDL_LIBRARY_TEMP
|
||||||
NAMES SDL SDL-1.1
|
NAMES SDL SDL-1.1
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDLDIR}
|
$ENV{SDLDIR}
|
||||||
|
@ -98,11 +98,11 @@ FIND_LIBRARY(SDL_LIBRARY_TEMP
|
||||||
|
|
||||||
IF(NOT SDL_BUILDING_LIBRARY)
|
IF(NOT SDL_BUILDING_LIBRARY)
|
||||||
IF(NOT ${SDL_INCLUDE_DIR} MATCHES ".framework")
|
IF(NOT ${SDL_INCLUDE_DIR} MATCHES ".framework")
|
||||||
# Non-OS X framework versions expect you to also dynamically link to
|
# Non-OS X framework versions expect you to also dynamically link to
|
||||||
# SDLmain. This is mainly for Windows and OS X. Other (Unix) platforms
|
# SDLmain. This is mainly for Windows and OS X. Other (Unix) platforms
|
||||||
# seem to provide SDLmain for compatibility even though they don't
|
# seem to provide SDLmain for compatibility even though they don't
|
||||||
# necessarily need it.
|
# necessarily need it.
|
||||||
FIND_LIBRARY(SDLMAIN_LIBRARY
|
FIND_LIBRARY(SDLMAIN_LIBRARY
|
||||||
NAMES SDLmain SDLmain-1.1
|
NAMES SDLmain SDLmain-1.1
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDLDIR}
|
$ENV{SDLDIR}
|
||||||
|
@ -117,8 +117,8 @@ IF(NOT SDL_BUILDING_LIBRARY)
|
||||||
ENDIF(NOT SDL_BUILDING_LIBRARY)
|
ENDIF(NOT SDL_BUILDING_LIBRARY)
|
||||||
|
|
||||||
# SDL may require threads on your system.
|
# SDL may require threads on your system.
|
||||||
# The Apple build may not need an explicit flag because one of the
|
# The Apple build may not need an explicit flag because one of the
|
||||||
# frameworks may already provide it.
|
# frameworks may already provide it.
|
||||||
# But for non-OSX systems, I will use the CMake Threads package.
|
# But for non-OSX systems, I will use the CMake Threads package.
|
||||||
IF(NOT APPLE)
|
IF(NOT APPLE)
|
||||||
FIND_PACKAGE(Threads)
|
FIND_PACKAGE(Threads)
|
||||||
|
@ -140,15 +140,15 @@ IF(SDL_LIBRARY_TEMP)
|
||||||
ENDIF(NOT SDL_BUILDING_LIBRARY)
|
ENDIF(NOT SDL_BUILDING_LIBRARY)
|
||||||
|
|
||||||
# For OS X, SDL uses Cocoa as a backend so it must link to Cocoa.
|
# For OS X, SDL uses Cocoa as a backend so it must link to Cocoa.
|
||||||
# CMake doesn't display the -framework Cocoa string in the UI even
|
# CMake doesn't display the -framework Cocoa string in the UI even
|
||||||
# though it actually is there if I modify a pre-used variable.
|
# though it actually is there if I modify a pre-used variable.
|
||||||
# I think it has something to do with the CACHE STRING.
|
# I think it has something to do with the CACHE STRING.
|
||||||
# So I use a temporary variable until the end so I can set the
|
# So I use a temporary variable until the end so I can set the
|
||||||
# "real" variable in one-shot.
|
# "real" variable in one-shot.
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
SET(SDL_LIBRARY_TEMP ${SDL_LIBRARY_TEMP} "-framework Cocoa")
|
SET(SDL_LIBRARY_TEMP ${SDL_LIBRARY_TEMP} "-framework Cocoa")
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
# For threads, as mentioned Apple doesn't need this.
|
# For threads, as mentioned Apple doesn't need this.
|
||||||
# In fact, there seems to be a problem if I used the Threads package
|
# In fact, there seems to be a problem if I used the Threads package
|
||||||
# and try using this line, so I'm just skipping it entirely for OS X.
|
# and try using this line, so I'm just skipping it entirely for OS X.
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
# correspond to the ./configure --prefix=$SDLDIR
|
# correspond to the ./configure --prefix=$SDLDIR
|
||||||
# used in building SDL.
|
# used in building SDL.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
||||||
# module, but with modifications to recognize OS X frameworks and
|
# module, but with modifications to recognize OS X frameworks and
|
||||||
# additional Unix paths (FreeBSD, etc).
|
# additional Unix paths (FreeBSD, etc).
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -44,12 +44,12 @@ FIND_PATH(SDLIMAGE_INCLUDE_DIR SDL_image.h
|
||||||
/opt/local/include/SDL # DarwinPorts
|
/opt/local/include/SDL # DarwinPorts
|
||||||
/opt/local/include
|
/opt/local/include
|
||||||
/opt/csw/include/SDL # Blastwave
|
/opt/csw/include/SDL # Blastwave
|
||||||
/opt/csw/include
|
/opt/csw/include
|
||||||
/opt/include/SDL
|
/opt/include/SDL
|
||||||
/opt/include
|
/opt/include
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(SDLIMAGE_LIBRARY
|
FIND_LIBRARY(SDLIMAGE_LIBRARY
|
||||||
NAMES SDL_image
|
NAMES SDL_image
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDLIMAGEDIR}
|
$ENV{SDLIMAGEDIR}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
# correspond to the ./configure --prefix=$SDLDIR
|
# correspond to the ./configure --prefix=$SDLDIR
|
||||||
# used in building SDL.
|
# used in building SDL.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
||||||
# module, but with modifications to recognize OS X frameworks and
|
# module, but with modifications to recognize OS X frameworks and
|
||||||
# additional Unix paths (FreeBSD, etc).
|
# additional Unix paths (FreeBSD, etc).
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -44,12 +44,12 @@ FIND_PATH(SDLMIXER_INCLUDE_DIR SDL_mixer.h
|
||||||
/opt/local/include/SDL # DarwinPorts
|
/opt/local/include/SDL # DarwinPorts
|
||||||
/opt/local/include
|
/opt/local/include
|
||||||
/opt/csw/include/SDL # Blastwave
|
/opt/csw/include/SDL # Blastwave
|
||||||
/opt/csw/include
|
/opt/csw/include
|
||||||
/opt/include/SDL
|
/opt/include/SDL
|
||||||
/opt/include
|
/opt/include
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(SDLMIXER_LIBRARY
|
FIND_LIBRARY(SDLMIXER_LIBRARY
|
||||||
NAMES SDL_mixer
|
NAMES SDL_mixer
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDLMIXERDIR}
|
$ENV{SDLMIXERDIR}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
# correspond to the ./configure --prefix=$SDLDIR
|
# correspond to the ./configure --prefix=$SDLDIR
|
||||||
# used in building SDL.
|
# used in building SDL.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
# Created by Eric Wing. This was influenced by the FindSDL.cmake
|
||||||
# module, but with modifications to recognize OS X frameworks and
|
# module, but with modifications to recognize OS X frameworks and
|
||||||
# additional Unix paths (FreeBSD, etc).
|
# additional Unix paths (FreeBSD, etc).
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -44,11 +44,11 @@ FIND_PATH(SDLNET_INCLUDE_DIR SDL_net.h
|
||||||
/opt/local/include/SDL # DarwinPorts
|
/opt/local/include/SDL # DarwinPorts
|
||||||
/opt/local/include
|
/opt/local/include
|
||||||
/opt/csw/include/SDL # Blastwave
|
/opt/csw/include/SDL # Blastwave
|
||||||
/opt/csw/include
|
/opt/csw/include
|
||||||
/opt/include/SDL
|
/opt/include/SDL
|
||||||
/opt/include
|
/opt/include
|
||||||
)
|
)
|
||||||
FIND_LIBRARY(SDLNET_LIBRARY
|
FIND_LIBRARY(SDLNET_LIBRARY
|
||||||
NAMES SDL_net
|
NAMES SDL_net
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDLNETDIR}
|
$ENV{SDLNETDIR}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue