From 0586e948b7fc1e97fa7cdddf926e4ec768a40392 Mon Sep 17 00:00:00 2001 From: verbalshadow Date: Thu, 22 May 2008 04:22:54 +0000 Subject: [PATCH] Cmake: Find Dependencies rebuilt --- CMakeLists.txt | 22 +- CMakeScripts/COPYING-CMAKE-SCRIPTS | 22 ++ CMakeScripts/ConfigChecks.cmake | 2 +- CMakeScripts/ConfigPaths.cmake | 2 +- CMakeScripts/DefineDependsandFlags.cmake | 48 +++ CMakeScripts/FindBoehmGC.cmake | 76 +++++ CMakeScripts/FindBoost.cmake | 415 +++++++++++++++++++++-- CMakeScripts/FindFreetype2.cmake | 89 +++++ CMakeScripts/FindGSL.cmake | 89 +++++ CMakeScripts/FindGTK2.cmake | 387 +++++++++++++++++++++ CMakeScripts/FindGnomeVFS2.cmake | 89 +++++ CMakeScripts/FindGtkMM.cmake | 89 +++++ CMakeScripts/FindImageMagick++.cmake | 89 +++++ CMakeScripts/FindLCMS.cmake | 89 +++++ CMakeScripts/FindLibWPG.cmake | 89 +++++ CMakeScripts/FindPopt.cmake | 89 +++++ CMakeScripts/FindSigC++.cmake | 89 +++++ CMakeScripts/FindXML2.cmake | 89 +++++ CMakeScripts/FindXSLT.cmake | 89 +++++ config.h.cmake | 2 +- 20 files changed, 1915 insertions(+), 40 deletions(-) create mode 100644 CMakeScripts/COPYING-CMAKE-SCRIPTS create mode 100644 CMakeScripts/DefineDependsandFlags.cmake create mode 100644 CMakeScripts/FindBoehmGC.cmake create mode 100644 CMakeScripts/FindFreetype2.cmake create mode 100644 CMakeScripts/FindGSL.cmake create mode 100644 CMakeScripts/FindGTK2.cmake create mode 100644 CMakeScripts/FindGnomeVFS2.cmake create mode 100644 CMakeScripts/FindGtkMM.cmake create mode 100644 CMakeScripts/FindImageMagick++.cmake create mode 100644 CMakeScripts/FindLCMS.cmake create mode 100644 CMakeScripts/FindLibWPG.cmake create mode 100644 CMakeScripts/FindPopt.cmake create mode 100644 CMakeScripts/FindSigC++.cmake create mode 100644 CMakeScripts/FindXML2.cmake create mode 100644 CMakeScripts/FindXSLT.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 608ac6a9c..23ced3364 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,28 +1,16 @@ -PROJECT(inkscape CXX C) +PROJECT(inkscape) SET(INKSCAPE_VERSION 0.46+devel) SET(PROJECT_NAME inkscape) -SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4) +CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6) SET(CMAKE_INCLUDE_CURRENT_DIR TRUE) -# Set to true if compiler/linker should enable profiling: -#SET(ENABLE_PROFILING TRUE) - -#Pretty colors -SET(CMAKE_COLOR_MAKEFILE ON) -#Choose verbosity level -SET(CMAKE_VERBOSE_MAKEFILE OFF) - SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) INCLUDE(ConfigPaths) -INCLUDE(ConfigInkscapeDepends) +INCLUDE(DefineDependsandFlags) INCLUDE(HelperMacros) - -#SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}") -#IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2") -# SET(CMAKE_AR "ar") -# SET(CMAKE_RANLIB "ranlib") -#ENDIF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2") + # Set to true if compiler/linker should enable profiling: +#SET(ENABLE_PROFILING TRUE) #make dist target SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}") diff --git a/CMakeScripts/COPYING-CMAKE-SCRIPTS b/CMakeScripts/COPYING-CMAKE-SCRIPTS new file mode 100644 index 000000000..4b417765f --- /dev/null +++ b/CMakeScripts/COPYING-CMAKE-SCRIPTS @@ -0,0 +1,22 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/CMakeScripts/ConfigChecks.cmake b/CMakeScripts/ConfigChecks.cmake index 184239cd8..82dbce88c 100644 --- a/CMakeScripts/ConfigChecks.cmake +++ b/CMakeScripts/ConfigChecks.cmake @@ -9,7 +9,7 @@ INCLUDE (CheckStructMember) # usage: CHECK_FUNCTION_EXISTS ( ) # usage: CHECK_STRUCT_MEMBER (
) -CHECK_INCLUDE_FILES(boost/concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP) +CHECK_INCLUDE_FILES(concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP) CHECK_INCLUDE_FILES(cairo-pdf.h HAVE_CAIRO_PDF) CHECK_FUNCTION_EXISTS(floor HAVE_FLOOR) CHECK_FUNCTION_EXISTS(fpsetmask HAVE_FPSETMASK) diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake index aac3fc00b..7e73a761b 100644 --- a/CMakeScripts/ConfigPaths.cmake +++ b/CMakeScripts/ConfigPaths.cmake @@ -12,7 +12,7 @@ SET(CMAKE_SKIP_RPATH:BOOL OFF) # Include base dir, so other files can refer to the generated files. # CMAKE_INCLUDE_CURRENT_DIR is not enough as it only includes the current dir and not the basedir with config.h in it -INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/) +#INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/) LINK_DIRECTORIES ("${LINK_DIRECTORIES}" "${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}" src/) #INSTALL(TARGETS INKSCAPE diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake new file mode 100644 index 000000000..d73554a5d --- /dev/null +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -0,0 +1,48 @@ + +# Include dependencies: +find_package(GTK2 REQUIRED) +find_package(GtkMM REQUIRED) +find_package(SigC++ REQUIRED) +find_package(XML2 REQUIRED) +find_package(XSLT REQUIRED) +find_package(GSL REQUIRED) +find_package(ImageMagick++ REQUIRED) +find_package(Freetype2 REQUIRED) +find_package(GnomeVFS2) +find_package(Boost REQUIRED) +find_package(BoehmGC REQUIRED) +find_package(LibWPG) +find_package(PNG REQUIRED) +find_package(Popt REQUIRED) +find_package(OpenSSL) +INCLUDE(IncludeJava) +# end Dependencies + +#Includes + +INCLUDE_DIRECTORIES( +"${GTK2_INCLUDE_DIRS}" +"${GtkMM_INCLUDE_DIRS}" +"${SigC++_INCLUDE_DIRS}" +"${XML2_INCLUDE_DIRS}" +"${XSLT_INCLUDE_DIRS}" +"${ImageMagick++_INCLUDE_DIRS}" +"${Freetype2_INCLUDE_DIRS}" +"${GnomeVFS2_INCLUDE_DIRS}" +"${Boost_INCLUDE_DIRS}" +"${BoehmGC_INCLUDE_DIRS}" +"${PNG_INCLUDE_DIRS}" +"${Popt_INCLUDE_DIRS}" +"${OpenSSL_INCLUDE_DIRS}" +"${CMAKE_BINARY_DIR}" +"${PROJECT_SOURCE_DIR}" + src/ +) + +#C/C++ Flags +#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${BOOST_INCLUDE_DIR} ") +#Defines +#SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2") + +#INCLUDE(ConfigCompileFlags) +INCLUDE(ConfigChecks) diff --git a/CMakeScripts/FindBoehmGC.cmake b/CMakeScripts/FindBoehmGC.cmake new file mode 100644 index 000000000..9429655e3 --- /dev/null +++ b/CMakeScripts/FindBoehmGC.cmake @@ -0,0 +1,76 @@ +# - Try to find BoehmGC +# Once done this will define +# +# BOEHMGC_FOUND - system has BoehmGC +# BOEHMGC_INCLUDE_DIRS - the BoehmGC include directory +# BOEHMGC_LIBRARIES - Link these to use BoehmGC +# BOEHMGC_DEFINITIONS - Compiler switches required for using BoehmGC +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS) + # in cache already + set(BOEHMGC_FOUND TRUE) +else (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS) + find_path(BOEHMGC_INCLUDE_DIR + NAMES + gc.h + PATHS + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + gc + ) + + find_library(GC_LIBRARY + NAMES + gc + PATHS + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (GC_LIBRARY) + set(GC_FOUND TRUE) + endif (GC_LIBRARY) + + set(BOEHMGC_INCLUDE_DIRS + ${BOEHMGC_INCLUDE_DIR} + ) + + if (GC_FOUND) + set(BOEHMGC_LIBRARIES + ${BOEHMGC_LIBRARIES} + ${GC_LIBRARY} + ) + endif (GC_FOUND) + + if (BOEHMGC_INCLUDE_DIRS AND BOEHMGC_LIBRARIES) + set(BOEHMGC_FOUND TRUE) + endif (BOEHMGC_INCLUDE_DIRS AND BOEHMGC_LIBRARIES) + + if (BOEHMGC_FOUND) + if (NOT BoehmGC_FIND_QUIETLY) + message(STATUS "Found BoehmGC: ${BOEHMGC_LIBRARIES}") + endif (NOT BoehmGC_FIND_QUIETLY) + else (BOEHMGC_FOUND) + if (BoehmGC_FIND_REQUIRED) + message(FATAL_ERROR "Could not find BoehmGC") + endif (BoehmGC_FIND_REQUIRED) + endif (BOEHMGC_FOUND) + + # show the BOEHMGC_INCLUDE_DIRS and BOEHMGC_LIBRARIES variables only in the advanced view + mark_as_advanced(BOEHMGC_INCLUDE_DIRS BOEHMGC_LIBRARIES) + +endif (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindBoost.cmake b/CMakeScripts/FindBoost.cmake index c0cf6f361..20bf27ab8 100644 --- a/CMakeScripts/FindBoost.cmake +++ b/CMakeScripts/FindBoost.cmake @@ -1,28 +1,403 @@ -# - Find Boost libraries -# Go hunting for boost compoments -# Defines: -# BOOST_INCLUDE_DIR +# - Try to find Boost include dirs and libraries +# Usage of this module as follows: +# +# FIND_PACKAGE( Boost COMPONENTS date_time filesystem iostreams ... ) +# +# The Boost_ADDITIONAL_VERSIONS variable can be used to specify a list of +# boost version numbers that should be taken into account when searching +# for the libraries. Unfortunately boost puts the version number into the +# actual filename for the libraries, so this might be needed in the future +# when new boost versions are released. +# +# Currently this module searches for the following version numbers: +# 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1 +# +# The components list needs to be the actual names of boost libraries, that is +# the part of the actual library files that differ on different libraries. So +# its "date_time" for "libboost_date_time...". Anything else will result in +# errors +# +# Variables used by this module, they can change the default behaviour: +# Boost_USE_NONMULTITHREAD Can be set to TRUE to use the non-multithreaded +# boost libraries. +# Boost_ADDITIONAL_VERSIONS A list of version numbers to use for searching +# the boost include directory. The default list +# of version numbers is: +# 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1 +# If you want to look for an older or newer +# version set this variable to a list of +# strings, where each string contains a number, i.e. +# SET(Boost_ADDITIONAL_VERSIONS "0.99.0" "1.35.0") +# Boost_ROOT Preferred installation prefix for searching for Boost, +# set this if the module has problems finding the proper Boost installation +# Boost_INCLUDEDIR Set this to the include directory of Boost, if the +# module has problems finding the proper Boost installation +# Boost_LIBRARYDIR Set this to the lib directory of Boost, if the +# module has problems finding the proper Boost installation +# +# The last three variables are available also as environment variables +# +# +# Variables defined by this module: +# +# Boost_FOUND System has Boost, this means the include dir was found, +# as well as all the libraries specified in the COMPONENTS list +# Boost_INCLUDE_DIRS Boost include directories, not cached +# Boost_INCLUDE_DIR This is almost the same as above, but this one is cached and may be +# modified by advanced users +# Boost_LIBRARIES Link these to use the Boost libraries that you specified, not cached +# Boost_LIBRARY_DIRS The path to where the Boost library files are. +# Boost_VERSION The version number of the boost libraries that have been found, +# same as in version.hpp from Boost +# Boost_LIB_VERSION The version number in filename form as its appended to the library filenames +# Boost_MAJOR_VERSION major version number of boost +# Boost_MINOR_VERSION minor version number of boost +# Boost_SUBMINOR_VERSION subminor version number of boost +# For each component you list the following variables are set. +# ATTENTION: The component names need to be in lower case, just as the boost +# library names however the cmake variables use upper case for the component +# part. So you'd get Boost_SERIALIZATION_FOUND for example. +# +# Boost_${COMPONENT}_FOUND True IF the Boost library "component" was found. +# Boost_${COMPONENT}_LIBRARY The absolute path of the Boost library "component". +# Boost_${COMPONENT}_LIBRARY_DEBUG The absolute path of the debug version of the +# Boost library "component". +# Boost_${COMPONENT}_LIBRARY_RELEASE The absolute path of the release version of the +# Boost library "component" +# +# Copyright (c) 2006-2008 Andreas Schneider +# Copyright (c) 2007 Wengo +# Copyright (c) 2007 Mike Jackson +# Copyright (c) 2008 Andreas Pakulat +# +# Redistribution AND use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# -# To find boost on Windows, use DEVLIBS_PATH variable set by mingwenv.bat +# MESSAGE(STATUS "Finding Boost libraries.... ") -FIND_PATH(BOOST_INCLUDE_DIR boost/weak_ptr.hpp - /usr/include/boost - /usr/include - /usr/local/include/boost - /usr/local/include - $ENV{DEVLIBS_PATH}//include ) +SET( _boost_TEST_VERSIONS ${Boost_ADDITIONAL_VERSIONS} "1.33" "1.33.0" "1.33.1" "1.34" "1.34.0" "1.34.1" ) +############################################ +# +# Check the existence of the libraries. +# +############################################ +# This macro was taken directly from the FindQt4.cmake file that is included +# with the CMake distribution. This is NOT my work. All work was done by the +# original authors of the FindQt4.cmake file. Only minor modifications were +# made to remove references to Qt and make this file more generally applicable +######################################################################### -IF (BOOST_INCLUDE_DIR) - SET(BOOST_FOUND TRUE) -ENDIF (BOOST_INCLUDE_DIR) +MACRO (_Boost_ADJUST_LIB_VARS basename) + IF (Boost_INCLUDE_DIR ) + #MESSAGE(STATUS "Adjusting ${basename} ") -IF (BOOST_FOUND) - MESSAGE(STATUS "boost: FOUND ( ${BOOST_INCLUDE_DIR} )") -ELSE(BOOST_FOUND) - MESSAGE(FATAL_ERROR "boost: NOT FOUND") -ENDIF (BOOST_FOUND) + IF (Boost_${basename}_LIBRARY_DEBUG AND Boost_${basename}_LIBRARY_RELEASE) + # if the generator supports configuration types then set + # optimized and debug libraries, or if the CMAKE_BUILD_TYPE has a value + IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + SET(Boost_${basename}_LIBRARY optimized ${Boost_${basename}_LIBRARY_RELEASE} debug ${Boost_${basename}_LIBRARY_DEBUG}) + ELSE(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + # if there are no configuration types and CMAKE_BUILD_TYPE has no value + # then just use the release libraries + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_RELEASE} ) + ENDIF(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + SET(Boost_${basename}_LIBRARIES optimized ${Boost_${basename}_LIBRARY_RELEASE} debug ${Boost_${basename}_LIBRARY_DEBUG}) + ENDIF (Boost_${basename}_LIBRARY_DEBUG AND Boost_${basename}_LIBRARY_RELEASE) + + # if only the release version was found, set the debug variable also to the release version + IF (Boost_${basename}_LIBRARY_RELEASE AND NOT Boost_${basename}_LIBRARY_DEBUG) + SET(Boost_${basename}_LIBRARY_DEBUG ${Boost_${basename}_LIBRARY_RELEASE}) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_RELEASE}) + SET(Boost_${basename}_LIBRARIES ${Boost_${basename}_LIBRARY_RELEASE}) + ENDIF (Boost_${basename}_LIBRARY_RELEASE AND NOT Boost_${basename}_LIBRARY_DEBUG) + + # if only the debug version was found, set the release variable also to the debug version + IF (Boost_${basename}_LIBRARY_DEBUG AND NOT Boost_${basename}_LIBRARY_RELEASE) + SET(Boost_${basename}_LIBRARY_RELEASE ${Boost_${basename}_LIBRARY_DEBUG}) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_DEBUG}) + SET(Boost_${basename}_LIBRARIES ${Boost_${basename}_LIBRARY_DEBUG}) + ENDIF (Boost_${basename}_LIBRARY_DEBUG AND NOT Boost_${basename}_LIBRARY_RELEASE) + + IF (Boost_${basename}_LIBRARY) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library") + GET_FILENAME_COMPONENT(Boost_LIBRARY_DIRS "${Boost_${basename}_LIBRARY}" PATH) + SET(Boost_${basename}_FOUND 1) + ENDIF (Boost_${basename}_LIBRARY) + + ENDIF (Boost_INCLUDE_DIR ) + # Make variables changeble to the advanced user + MARK_AS_ADVANCED( + Boost_${basename}_LIBRARY + Boost_${basename}_LIBRARY_RELEASE + Boost_${basename}_LIBRARY_DEBUG + ) +ENDMACRO (_Boost_ADJUST_LIB_VARS) + +#------------------------------------------------------------------------------- + + +SET( _boost_IN_CACHE TRUE) + +IF(Boost_INCLUDE_DIR) + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} COMPONENT) + IF(NOT Boost_${COMPONENT}_FOUND) + SET( _boost_IN_CACHE FALSE) + ENDIF(NOT Boost_${COMPONENT}_FOUND) + ENDFOREACH(COMPONENT) +ELSE(Boost_INCLUDE_DIR) + SET( _boost_IN_CACHE FALSE) +ENDIF(Boost_INCLUDE_DIR) + +IF (_boost_IN_CACHE) + # in cache already + SET(Boost_FOUND TRUE) + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} COMPONENT) + _Boost_ADJUST_LIB_VARS( ${COMPONENT} ) + FOREACH(COMPONENT) + SET(Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIR}) +ELSE (_boost_IN_CACHE) + # Need to search for boost + + SET(_boost_INCLUDE_SEARCH_DIRS + C:/boost/include + "C:/Program Files/boost/boost_${Boost_REQUIRED_VERSION}" + # D: is very often the cdrom drive, IF you don't have a + # cdrom inserted it will popup a very annoying dialog + #D:/boost/include + /sw/local/include + ) + + SET(_boost_LIBRARIES_SEARCH_DIRS + C:/boost/lib + "C:/Program Files/boost/boost_${Boost_REQUIRED_VERSION}/lib" + /sw/local/lib + ) + + IF( NOT $ENV{Boost_ROOT} STREQUAL "" ) + SET(_boost_INCLUDE_SEARCH_DIRS $ENV{Boost_ROOT}/include ${_boost_INCLUDE_SEARCH_DIRS}) + SET(_boost_LIBRARIES_SEARCH_DIRS $ENV{Boost_ROOT}/lib ${_boost_INCLUDE_SEARCH_DIRS}) + ENDIF( NOT $ENV{Boost_ROOT} STREQUAL "" ) + + IF( NOT $ENV{Boost_INCLUDEDIR} STREQUAL "" ) + SET(_boost_INCLUDE_SEARCH_DIRS $ENV{Boost_INCLUDEDIR} ${_boost_INCLUDE_SEARCH_DIRS}) + ENDIF( NOT $ENV{Boost_INCLUDEDIR} STREQUAL "" ) + + IF( NOT $ENV{Boost_LIBRARYDIR} STREQUAL "" ) + SET(_boost_LIBRARIES_SEARCH_DIRS $ENV{Boost_LIBRARYDIR} ${_boost_INCLUDE_SEARCH_DIRS}) + ENDIF( NOT $ENV{Boost_LIBRARYDIR} STREQUAL "" ) + + IF( Boost_ROOT ) + SET(_boost_INCLUDE_SEARCH_DIRS ${Boost_ROOT}/include ${_boost_INCLUDE_SEARCH_DIRS}) + SET(_boost_LIBRARIES_SEARCH_DIRS ${Boost_ROOT}/lib ${_boost_LIBRARIES_SEARCH_DIRS}) + ENDIF( Boost_ROOT ) + + IF( Boost_INCLUDEDIR ) + SET(_boost_INCLUDE_SEARCH_DIRS ${Boost_INCLUDEDIR}/include ${_boost_INCLUDE_SEARCH_DIRS}) + ENDIF( Boost_INCLUDEDIR ) + + IF( Boost_LIBRARYDIR ) + SET(_boost_LIBRARIES_SEARCH_DIRS ${Boost_LIBRARYDIR}/include ${_boost_LIBRARIES_SEARCH_DIRS}) + ENDIF( Boost_LIBRARYDIR ) + + FOREACH(_boost_VER ${_boost_TEST_VERSIONS}) + IF( NOT Boost_INCLUDE_DIR ) + + # Add in a path suffix, based on the required version, ideally we could + # read this from version.hpp, but for that to work we'd need to know the include + # dir already + SET(_boost_PATH_SUFFIX + boost-${_boost_VER} + ) + STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3" _boost_PATH_SUFFIX ${_boost_PATH_SUFFIX}) + + + FIND_PATH(Boost_INCLUDE_DIR + NAMES boost/config.hpp + PATHS ${_boost_INCLUDE_SEARCH_DIRS} + PATH_SUFFIXES ${_boost_PATH_SUFFIX} + ) + + # Extract Boost_VERSION and Boost_LIB_VERSION from version.hpp + # Read the whole file: + # + SET(BOOST_VERSION 0) + SET(BOOST_LIB_VERSION "") + FILE(READ "${Boost_INCLUDE_DIR}/boost/version.hpp" _boost_VERSION_HPP_CONTENTS) + + STRING(REGEX REPLACE ".*#define BOOST_VERSION ([0-9]+).*" "\\1" Boost_VERSION "${_boost_VERSION_HPP_CONTENTS}") + STRING(REGEX REPLACE ".*#define BOOST_LIB_VERSION \"([0-9_]+)\".*" "\\1" Boost_LIB_VERSION "${_boost_VERSION_HPP_CONTENTS}") + + SET(Boost_LIB_VERSION ${Boost_LIB_VERSION} CACHE STRING "The library version string for boost libraries") + SET(Boost_VERSION ${Boost_VERSION} CACHE STRING "The version number for boost libraries") + + IF(NOT "${Boost_VERSION}" STREQUAL "0") + MATH(EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000") + MATH(EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000") + MATH(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") + ENDIF(NOT "${Boost_VERSION}" STREQUAL "0") + + + ENDIF( NOT Boost_INCLUDE_DIR ) + ENDFOREACH(_boost_VER) + + #Setting some more suffixes for the library + SET (Boost_LIB_PREFIX "") + IF ( WIN32 ) + SET (Boost_LIB_PREFIX "lib") + ENDIF ( WIN32 ) + SET (_boost_COMPILER "-gcc") + IF (MSVC71) + SET (_boost_COMPILER "-vc71") + ENDIF(MSVC71) + IF (MSVC80) + SET (_boost_COMPILER "-vc80") + ENDIF(MSVC80) + IF (MINGW) + SET (_boost_COMPILER "-mgw") + ENDIF(MINGW) + IF (CYGWIN) + SET (_boost_COMPILER "-gcc") + ENDIF (CYGWIN) + IF (UNIX) + IF (APPLE) + SET (_boost_COMPILER "") + ELSE (APPLE) + IF (NOT CMAKE_COMPILER_IS_GNUCC) + # This is for the intel compiler + SET (_boost_COMPILER "-il") + ELSE (NOT CMAKE_COMPILER_IS_GNUCC) + #find out the version of gcc being used. + EXEC_PROGRAM(${CMAKE_CXX_COMPILER} + ARGS --version + OUTPUT_VARIABLE _boost_COMPILER_VERSION + ) + STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9] .*" "\\1\\2" + _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) + SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}") + ENDIF (NOT CMAKE_COMPILER_IS_GNUCC) + ENDIF (APPLE) + ENDIF(UNIX) + + SET (_boost_MULTITHREADED "-mt") + + IF( Boost_USE_NONMULTITHREADED ) + SET (_boost_MULTITHREADED "") + ENDIF( Boost_USE_NONMULTITHREADED ) + + SET( _boost_STATIC_TAG "") + IF (WIN32) + SET (_boost_ABI_TAG "g") + SET( _boost_STATIC_TAG "-s") + ENDIF(WIN32) + SET (_boost_ABI_TAG "${_boost_ABI_TAG}d") + + # ------------------------------------------------------------------------ + # Begin finding boost libraries + # ------------------------------------------------------------------------ + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT) + SET( Boost_{UPPERCOMPONENT}_LIBRARY FALSE) + SET( Boost_{UPPERCOMPONENT}_LIBRARY_RELEASE FALSE) + SET( Boost_{UPPERCOMPONENT}_LIBRARY_DEBUG FALSE) + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT} + PATHS ${_boost_LIBRARIES_SEARCH_DIRS} + NO_DEFAULT_PATH + ) + + IF( NOT ${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE} ) + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT} + ) + ENDIF( NOT ${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE} ) + + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_boost_ABI_TAG} + PATHS ${_boost_LIBRARIES_SEARCH_DIRS} + NO_DEFAULT_PATH + ) + + IF( NOT ${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG} ) + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_boost_ABI_TAG} + ) + ENDIF( NOT ${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG} ) + _Boost_ADJUST_LIB_VARS(${UPPERCOMPONENT}) + ENDFOREACH(COMPONENT) + # ------------------------------------------------------------------------ + # End finding boost libraries + # ------------------------------------------------------------------------ + + SET(Boost_INCLUDE_DIRS + ${Boost_INCLUDE_DIR} + ) + + # MESSAGE(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}") + # MESSAGE(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}") + + SET(Boost_FOUND FALSE) + IF(Boost_INCLUDE_DIR) + SET( Boost_FOUND TRUE ) + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} COMPONENT) + IF(NOT Boost_${COMPONENT}_FOUND) + SET( Boost_FOUND FALSE) + ENDIF(NOT Boost_${COMPONENT}_FOUND) + ENDFOREACH(COMPONENT) + ELSE(Boost_INCLUDE_DIR) + SET( Boost_FOUND FALSE) + ENDIF(Boost_INCLUDE_DIR) + + IF (Boost_FOUND) + IF (NOT Boost_FIND_QUIETLY) + MESSAGE(STATUS "Found The Following Boost Libraries:") + FOREACH ( COMPONENT ${Boost_FIND_COMPONENTS} ) + STRING( TOUPPER ${COMPONENT} UPPERCOMPONENT ) + IF ( Boost_${UPPERCOMPONENT}_FOUND ) + MESSAGE (STATUS " ${COMPONENT}") + SET(Boost_LIBRARIES ${Boost_LIBRARIES} ${Boost_${UPPERCOMPONENT}_LIBRARY}) + ENDIF ( Boost_${UPPERCOMPONENT}_FOUND ) + ENDFOREACH(COMPONENT) + MESSAGE(STATUS "Boost Version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}") + ENDIF(NOT Boost_FIND_QUIETLY) + ELSE (Boost_FOUND) + IF (Boost_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Please install the Boost libraries AND development packages") + ENDIF(Boost_FIND_REQUIRED) + ENDIF(Boost_FOUND) + + # Under Windows, automatic linking is performed, so no need to specify the libraries. + IF (WIN32) + SET(Boost_LIBRARIES "") + ENDIF(WIN32) + + # show the Boost_INCLUDE_DIRS AND Boost_LIBRARIES variables only in the advanced view + MARK_AS_ADVANCED(Boost_INCLUDE_DIRS + Boost_LIBRARIES + Boost_LIBRARY_DIRS + ) +ENDIF(_boost_IN_CACHE) -INCLUDE_DIRECTORIES( ${BOOST_INCLUDE_DIR} ) diff --git a/CMakeScripts/FindFreetype2.cmake b/CMakeScripts/FindFreetype2.cmake new file mode 100644 index 000000000..159b0a1c7 --- /dev/null +++ b/CMakeScripts/FindFreetype2.cmake @@ -0,0 +1,89 @@ +# - Try to find FREETYPE2 +# Once done this will define +# +# FREETYPE2_FOUND - system has FREETYPE2 +# FREETYPE2_INCLUDE_DIRS - the FREETYPE2 include directory +# FREETYPE2_LIBRARIES - Link these to use FREETYPE2 +# FREETYPE2_DEFINITIONS - Compiler switches required for using FREETYPE2 +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (FREETYPE2_LIBRARIES AND FREETYPE2_INCLUDE_DIRS) + # in cache already + set(FREETYPE2_FOUND TRUE) +else (FREETYPE2_LIBRARIES AND FREETYPE2_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(freetype2 _FREETYPE2_INCLUDEDIR _FREETYPE2_LIBDIR _FREETYPE2_LDFLAGS _FREETYPE2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_FREETYPE2 freetype2) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(FREETYPE2_INCLUDE_DIR + NAMES + freetype/freetype.h + PATHS + ${_FREETYPE2_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + freetype2 + ) + + find_library(FREETYPE_LIBRARY + NAMES + freetype + PATHS + ${_FREETYPE2_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (FREETYPE_LIBRARY) + set(FREETYPE_FOUND TRUE) + endif (FREETYPE_LIBRARY) + + set(FREETYPE2_INCLUDE_DIRS + ${FREETYPE2_INCLUDE_DIR} + ) + + if (FREETYPE_FOUND) + set(FREETYPE2_LIBRARIES + ${FREETYPE2_LIBRARIES} + ${FREETYPE_LIBRARY} + ) + endif (FREETYPE_FOUND) + + if (FREETYPE2_INCLUDE_DIRS AND FREETYPE2_LIBRARIES) + set(FREETYPE2_FOUND TRUE) + endif (FREETYPE2_INCLUDE_DIRS AND FREETYPE2_LIBRARIES) + + if (FREETYPE2_FOUND) + if (NOT FREETYPE2_FIND_QUIETLY) + message(STATUS "Found FREETYPE2: ${FREETYPE2_LIBRARIES}") + endif (NOT FREETYPE2_FIND_QUIETLY) + else (FREETYPE2_FOUND) + if (FREETYPE2_FIND_REQUIRED) + message(FATAL_ERROR "Could not find FREETYPE2") + endif (FREETYPE2_FIND_REQUIRED) + endif (FREETYPE2_FOUND) + + # show the FREETYPE2_INCLUDE_DIRS and FREETYPE2_LIBRARIES variables only in the advanced view + mark_as_advanced(FREETYPE2_INCLUDE_DIRS FREETYPE2_LIBRARIES) + +endif (FREETYPE2_LIBRARIES AND FREETYPE2_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindGSL.cmake b/CMakeScripts/FindGSL.cmake new file mode 100644 index 000000000..edadc52bd --- /dev/null +++ b/CMakeScripts/FindGSL.cmake @@ -0,0 +1,89 @@ +# - Try to find GSL +# Once done this will define +# +# GSL_FOUND - system has GSL +# GSL_INCLUDE_DIRS - the GSL include directory +# GSL_LIBRARIES - Link these to use GSL +# GSL_DEFINITIONS - Compiler switches required for using GSL +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) + # in cache already + set(GSL_FOUND TRUE) +else (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(gsl _GSL_INCLUDEDIR _GSL_LIBDIR _GSL_LDFLAGS _GSL_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GSL gsl) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(GSL_INCLUDE_DIR + NAMES + gsl_matrix.h + PATHS + ${_GSL_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + gsl + ) + + find_library(GSL_LIBRARY + NAMES + gsl + PATHS + ${_GSL_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (GSL_LIBRARY) + set(GSL_FOUND TRUE) + endif (GSL_LIBRARY) + + set(GSL_INCLUDE_DIRS + ${GSL_INCLUDE_DIR} + ) + + if (GSL_FOUND) + set(GSL_LIBRARIES + ${GSL_LIBRARIES} + ${GSL_LIBRARY} + ) + endif (GSL_FOUND) + + if (GSL_INCLUDE_DIRS AND GSL_LIBRARIES) + set(GSL_FOUND TRUE) + endif (GSL_INCLUDE_DIRS AND GSL_LIBRARIES) + + if (GSL_FOUND) + if (NOT GSL_FIND_QUIETLY) + message(STATUS "Found GSL: ${GSL_LIBRARIES}") + endif (NOT GSL_FIND_QUIETLY) + else (GSL_FOUND) + if (GSL_FIND_REQUIRED) + message(FATAL_ERROR "Could not find GSL") + endif (GSL_FIND_REQUIRED) + endif (GSL_FOUND) + + # show the GSL_INCLUDE_DIRS and GSL_LIBRARIES variables only in the advanced view + mark_as_advanced(GSL_INCLUDE_DIRS GSL_LIBRARIES) + +endif (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindGTK2.cmake b/CMakeScripts/FindGTK2.cmake new file mode 100644 index 000000000..d3e22ef73 --- /dev/null +++ b/CMakeScripts/FindGTK2.cmake @@ -0,0 +1,387 @@ +# +# try to find GTK2 (and glib) and GTK2GLArea +# +# GTK2_INCLUDE_DIRS - Directories to include to use GTK2 +# GTK2_LIBRARIES - Files to link against to use GTK2 +# GTK2_FOUND - If false, don't try to use GTK2 +# GTK2_GL_FOUND - If false, don't try to use GTK2's GL features +# +################################################################### +# +# Copyright (c) 2004 Jan Woetzel +# Copyright (c) 2006 Andreas Schneider +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +################################################################### +# +# Copyright (c) 2004 Jan Woetzel +# Copyright (c) 2006 Andreas Schneider +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# * Neither the name of the nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +IF (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS) + # in cache already + SET(GTK2_FOUND TRUE) +ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS) + + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + INCLUDE(UsePkgConfig) + + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(gtk+-2.0 _GTK2_INCLUDEDIR _GTK2_LIBDIR _GTK2_LDFLAGS _GTK2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GTK2 gtk+-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + FIND_PATH(GTK2_GTK_INCLUDE_PATH gtk/gtk.h + $ENV{GTK2_HOME} + ${_GTK2_INCLUDEDIR} + /usr/include/gtk-2.0 + /usr/local/include/gtk-2.0 + /opt/gnome/include/gtk-2.0 + ) + + # Some Linux distributions (e.g. Red Hat) have glibconfig.h + # and glib.h in different directories, so we need to look + # for both. + # - Atanas Georgiev + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(glib-2.0 _GLIB2_INCLUDEDIR _GLIB2inkDir _GLIB2_LDFLAGS _GLIB2_CFLAGS) + pkgconfig(gmodule-2.0 _GMODULE2_INCLUDEDIR _GMODULE2inkDir _GMODULE2_LDFLAGS _GMODULE2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GLIB2 glib-2.0) + pkg_check_modules(_GMODULE2 gmodule-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + SET(GDIR /opt/gnome/lib/glib-2.0/include) + FIND_PATH(GTK2_GLIBCONFIG_INCLUDE_PATH glibconfig.h + ${_GLIB2_INCLUDEDIR} + /opt/gnome/lib64/glib-2.0/include + /opt/gnome/lib/glib-2.0/include + /usr/lib64/glib-2.0/include + /usr/lib/glib-2.0/include + ) + #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}") + + FIND_PATH(GTK2_GLIB_INCLUDE_PATH glib.h + ${_GLIB2_INCLUDEDIR} + /opt/gnome/include/glib-2.0 + /usr/include/glib-2.0 + ) + #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}") + + FIND_PATH(GTK2_GTKGL_INCLUDE_PATH gtkgl/gtkglarea.h + ${_GLIB2_INCLUDEDIR} + /usr/include + /usr/local/include + /usr/openwin/share/include + /opt/gnome/include + ) + + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(pango _PANGO_INCLUDEDIR _PANGOinkDir _PANGO_LDFLAGS _PANGO_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_PANGO pango) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + FIND_PATH(GTK2_PANGO_INCLUDE_PATH pango/pango.h + ${_PANGO_INCLUDEDIR} + /opt/gnome/include/pango-1.0 + /usr/include/pango-1.0 + ) + + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(gdk-2.0 _GDK2_INCLUDEDIR _GDK2inkDir _GDK2_LDFLAGS _GDK2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GDK2 gdk-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + FIND_PATH(GTK2_GDKCONFIG_INCLUDE_PATH gdkconfig.h + ${_GDK2_INCLUDEDIR} + /opt/gnome/lib/gtk-2.0/include + /opt/gnome/lib64/gtk-2.0/include + /usr/lib/gtk-2.0/include + /usr/lib64/gtk-2.0/include + ) + + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(cairo _CAIRO_INCLUDEDIR _CAIROinkDir _CAIRO_LDFLAGS _CAIRO_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_CAIRO cairo) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + FIND_PATH(GTK2_CAIRO_INCLUDE_PATH cairo.h + ${_CAIRO_INCLUDEDIR} + /opt/gnome/include/cairo + /usr/include + /usr/include/cairo + ) + #MESSAGE(STATUS "DEBUG: GTK2_CAIRO_INCLUDE_PATH = ${GTK2_CAIRO_INCLUDE_PATH}") + + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + pkgconfig(atk _ATK_INCLUDEDIR _ATKinkDir _ATK_LDFLAGS _ATK_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_ATK atk) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + + FIND_PATH(GTK2_ATK_INCLUDE_PATH atk/atk.h + ${_ATK_INCLUDEDIR} + /opt/gnome/include/atk-1.0 + /usr/include/atk-1.0 + ) + #MESSAGE(STATUS "DEBUG: GTK2_ATK_INCLUDE_PATH = ${GTK2_ATK_INCLUDE_PATH}") + + FIND_LIBRARY(GTK2_GTKGL_LIBRARY + NAMES + gtkgl + PATHS + ${_GTK2_INCLUDEDIR} + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_GTK_LIBRARY + NAMES + gtk-x11-2.0 + PATHS + ${_GTK2_LIBDIR} + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_GDK_LIBRARY + NAMES + gdk-x11-2.0 + PATHS + ${_GDK2_LIBDIR} + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_GMODULE_LIBRARY + NAMES + gmodule-2.0 + PATHS + ${_GMODULE2_LIBDIR} + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_GLIB_LIBRARY + NAMES + glib-2.0 + PATHS + ${_GLIB2_LIBDIR} + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_Xi_LIBRARY + NAMES + Xi + PATHS + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + FIND_LIBRARY(GTK2_GTHREAD_LIBRARY + NAMES + gthread-2.0 + PATHS + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + + FIND_LIBRARY(GTK2_GOBJECT_LIBRARY + NAMES + gobject-2.0 + PATHS + /usr/lib + /usr/local/lib + /usr/openwin/lib + /usr/X11R6/lib + /opt/gnome/lib + ) + + IF(GTK2_GTK_INCLUDE_PATH) + IF(GTK2_GLIBCONFIG_INCLUDE_PATH) + IF(GTK2_GLIB_INCLUDE_PATH) + IF(GTK2_GTK_LIBRARY) + IF(GTK2_GLIB_LIBRARY) + IF(GTK2_PANGO_INCLUDE_PATH) + IF(GTK2_ATK_INCLUDE_PATH) + IF(GTK2_CAIRO_INCLUDE_PATH) + # Assume that if gtk and glib were found, the other + # supporting libraries have also been found. + + SET(GTK2_FOUND TRUE) + + SET(GTK2_INCLUDE_DIRS + ${GTK2_GTK_INCLUDE_PATH} + ${GTK2_GLIBCONFIG_INCLUDE_PATH} + ${GTK2_GLIB_INCLUDE_PATH} + ${GTK2_PANGO_INCLUDE_PATH} + ${GTK2_GDKCONFIG_INCLUDE_PATH} + ${GTK2_ATK_INCLUDE_PATH} + ${GTK2_CAIRO_INCLUDE_PATH} + ) + + SET(GTK2_LIBRARIES + ${GTK2_GTK_LIBRARY} + ${GTK2_GDK_LIBRARY} + ${GTK2_GLIB_LIBRARY} + ) + #${GTK2_GOBJECT_LIBRARY}) + + IF(GTK2_GMODULE_LIBRARY) + SET(GTK2_LIBRARIES + ${GTK2_LIBRARIES} + ${GTK2_GMODULE_LIBRARY} + ) + ENDIF(GTK2_GMODULE_LIBRARY) + + IF(GTK2_GTHREAD_LIBRARY) + SET(GTK2_LIBRARIES + ${GTK2_LIBRARIES} + ${GTK2_GTHREAD_LIBRARY} + ) + SET(GTK2_LIBRARIES ${GTK2_LIBRARIES}) + ENDIF(GTK2_GTHREAD_LIBRARY) + ELSE(GTK2_CAIRO_INCLUDE_PATH) + MESSAGE(STATUS "Can not find cairo") + ENDIF(GTK2_CAIRO_INCLUDE_PATH) + ELSE(GTK2_ATK_INCLUDE_PATH) + MESSAGE(STATUS "Can not find atk") + ENDIF(GTK2_ATK_INCLUDE_PATH) + ELSE(GTK2_PANGO_INCLUDE_PATH) + MESSAGE(STATUS "Can not find pango includes") + ENDIF(GTK2_PANGO_INCLUDE_PATH) + ELSE(GTK2_GLIB_LIBRARY) + MESSAGE(STATUS "Can not find glib lib") + ENDIF(GTK2_GLIB_LIBRARY) + ELSE(GTK2_GTK_LIBRARY) + MESSAGE(STATUS "Can not find gtk lib") + ENDIF(GTK2_GTK_LIBRARY) + ELSE(GTK2_GLIB_INCLUDE_PATH) + MESSAGE(STATUS "Can not find glib includes") + ENDIF(GTK2_GLIB_INCLUDE_PATH) + ELSE(GTK2_GLIBCONFIG_INCLUDE_PATH) + MESSAGE(STATUS "Can not find glibconfig") + ENDIF(GTK2_GLIBCONFIG_INCLUDE_PATH) + ELSE (GTK2_GTK_INCLUDE_PATH) + MESSAGE(STATUS "Can not find gtk includes") + ENDIF (GTK2_GTK_INCLUDE_PATH) + + IF (GTK2_FOUND) + IF (NOT GTK2_FIND_QUIETLY) + MESSAGE(STATUS "Found GTK2: ${GTK2_LIBRARIES}") + ENDIF (NOT GTK2_FIND_QUIETLY) + ELSE (GTK2_FOUND) + IF (GTK2_FIND_REQUIRED) + MESSAGE(SEND_ERROR "Could NOT find GTK2") + ENDIF (GTK2_FIND_REQUIRED) + ENDIF (GTK2_FOUND) + + MARK_AS_ADVANCED( + GTK2_GDK_LIBRARY + GTK2_GLIB_INCLUDE_PATH + GTK2_GLIB_LIBRARY + GTK2_GLIBCONFIG_INCLUDE_PATH + GTK2_GMODULE_LIBRARY + GTK2_GTHREAD_LIBRARY + GTK2_Xi_LIBRARY + GTK2_GTK_INCLUDE_PATH + GTK2_GTK_LIBRARY + GTK2_GTKGL_INCLUDE_PATH + GTK2_GTKGL_LIBRARY + GTK2_ATK_INCLUDE_PATH + GTK2_GDKCONFIG_INCLUDE_PATH + #GTK2_GOBJECT_LIBRARY + GTK2_PANGO_INCLUDE_PATH + ) +ENDIF (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS) + +# vim:et ts=2 sw=2 comments=\:\# diff --git a/CMakeScripts/FindGnomeVFS2.cmake b/CMakeScripts/FindGnomeVFS2.cmake new file mode 100644 index 000000000..5c575001a --- /dev/null +++ b/CMakeScripts/FindGnomeVFS2.cmake @@ -0,0 +1,89 @@ +# - Try to find GnomeVFS2 +# Once done this will define +# +# GNOMEVFS2_FOUND - system has GnomeVFS2 +# GNOMEVFS2_INCLUDE_DIRS - the GnomeVFS2 include directory +# GNOMEVFS2_LIBRARIES - Link these to use GnomeVFS2 +# GNOMEVFS2_DEFINITIONS - Compiler switches required for using GnomeVFS2 +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (GNOMEVFS2_LIBRARIES AND GNOMEVFS2_INCLUDE_DIRS) + # in cache already + set(GNOMEVFS2_FOUND TRUE) +else (GNOMEVFS2_LIBRARIES AND GNOMEVFS2_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(gnome-vfs-2.0 _GNOMEVFS2_INCLUDEDIR _GNOMEVFS2_LIBDIR _GNOMEVFS2_LDFLAGS _GNOMEVFS2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GNOMEVFS2 gnome-vfs-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(GNOMEVFS2_INCLUDE_DIR + NAMES + libgnomevfs/gnome-vfs.h + PATHS + ${_GNOMEVFS2_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + gnome-vfs-2.0 + ) + + find_library(GNOMEVFS-2_LIBRARY + NAMES + gnomevfs-2 + PATHS + ${_GNOMEVFS2_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (GNOMEVFS-2_LIBRARY) + set(GNOMEVFS-2_FOUND TRUE) + endif (GNOMEVFS-2_LIBRARY) + + set(GNOMEVFS2_INCLUDE_DIRS + ${GNOMEVFS2_INCLUDE_DIR} + ) + + if (GNOMEVFS-2_FOUND) + set(GNOMEVFS2_LIBRARIES + ${GNOMEVFS2_LIBRARIES} + ${GNOMEVFS-2_LIBRARY} + ) + endif (GNOMEVFS-2_FOUND) + + if (GNOMEVFS2_INCLUDE_DIRS AND GNOMEVFS2_LIBRARIES) + set(GNOMEVFS2_FOUND TRUE) + endif (GNOMEVFS2_INCLUDE_DIRS AND GNOMEVFS2_LIBRARIES) + + if (GNOMEVFS2_FOUND) + if (NOT GnomeVFS2_FIND_QUIETLY) + message(STATUS "Found GnomeVFS2: ${GNOMEVFS2_LIBRARIES}") + endif (NOT GnomeVFS2_FIND_QUIETLY) + else (GNOMEVFS2_FOUND) + if (GnomeVFS2_FIND_REQUIRED) + message(FATAL_ERROR "Could not find GnomeVFS2") + endif (GnomeVFS2_FIND_REQUIRED) + endif (GNOMEVFS2_FOUND) + + # show the GNOMEVFS2_INCLUDE_DIRS and GNOMEVFS2_LIBRARIES variables only in the advanced view + mark_as_advanced(GNOMEVFS2_INCLUDE_DIRS GNOMEVFS2_LIBRARIES) + +endif (GNOMEVFS2_LIBRARIES AND GNOMEVFS2_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindGtkMM.cmake b/CMakeScripts/FindGtkMM.cmake new file mode 100644 index 000000000..2b3f71d35 --- /dev/null +++ b/CMakeScripts/FindGtkMM.cmake @@ -0,0 +1,89 @@ +# - Try to find GtkMM +# Once done this will define +# +# GTKMM_FOUND - system has GtkMM +# GTKMM_INCLUDE_DIRS - the GtkMM include directory +# GTKMM_LIBRARIES - Link these to use GtkMM +# GTKMM_DEFINITIONS - Compiler switches required for using GtkMM +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (GTKMM_LIBRARIES AND GTKMM_INCLUDE_DIRS) + # in cache already + set(GTKMM_FOUND TRUE) +else (GTKMM_LIBRARIES AND GTKMM_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(gtkmm-2.4 _GTKMM_INCLUDEDIR _GTKMM_LIBDIR _GTKMM_LDFLAGS _GTKMM_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_GTKMM gtkmm-2.4) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(GTKMM_INCLUDE_DIR + NAMES + gtkmm.h + PATHS + ${_GTKMM_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + gtkmm-2.4 + ) + + find_library(GTKMM-2.4_LIBRARY + NAMES + gtkmm-2.4 + PATHS + ${_GTKMM_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (GTKMM-2.4_LIBRARY) + set(GTKMM-2.4_FOUND TRUE) + endif (GTKMM-2.4_LIBRARY) + + set(GTKMM_INCLUDE_DIRS + ${GTKMM_INCLUDE_DIR} + ) + + if (GTKMM-2.4_FOUND) + set(GTKMM_LIBRARIES + ${GTKMM_LIBRARIES} + ${GTKMM-2.4_LIBRARY} + ) + endif (GTKMM-2.4_FOUND) + + if (GTKMM_INCLUDE_DIRS AND GTKMM_LIBRARIES) + set(GTKMM_FOUND TRUE) + endif (GTKMM_INCLUDE_DIRS AND GTKMM_LIBRARIES) + + if (GTKMM_FOUND) + if (NOT GtkMM_FIND_QUIETLY) + message(STATUS "Found GtkMM: ${GTKMM_LIBRARIES}") + endif (NOT GtkMM_FIND_QUIETLY) + else (GTKMM_FOUND) + if (GtkMM_FIND_REQUIRED) + message(FATAL_ERROR "Could not find GtkMM") + endif (GtkMM_FIND_REQUIRED) + endif (GTKMM_FOUND) + + # show the GTKMM_INCLUDE_DIRS and GTKMM_LIBRARIES variables only in the advanced view + mark_as_advanced(GTKMM_INCLUDE_DIRS GTKMM_LIBRARIES) + +endif (GTKMM_LIBRARIES AND GTKMM_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindImageMagick++.cmake b/CMakeScripts/FindImageMagick++.cmake new file mode 100644 index 000000000..57cac14d3 --- /dev/null +++ b/CMakeScripts/FindImageMagick++.cmake @@ -0,0 +1,89 @@ +# - Try to find ImageMagick++ +# Once done this will define +# +# IMAGEMAGICK++_FOUND - system has ImageMagick++ +# IMAGEMAGICK++_INCLUDE_DIRS - the ImageMagick++ include directory +# IMAGEMAGICK++_LIBRARIES - Link these to use ImageMagick++ +# IMAGEMAGICK++_DEFINITIONS - Compiler switches required for using ImageMagick++ +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (IMAGEMAGICK++_LIBRARIES AND IMAGEMAGICK++_INCLUDE_DIRS) + # in cache already + set(IMAGEMAGICK++_FOUND TRUE) +else (IMAGEMAGICK++_LIBRARIES AND IMAGEMAGICK++_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(ImageMagick++ _IMAGEMAGICK++_INCLUDEDIR _IMAGEMAGICK++_LIBDIR _IMAGEMAGICK++_LDFLAGS _IMAGEMAGICK++_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_IMAGEMAGICK++ ImageMagick++) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(IMAGEMAGICK++_INCLUDE_DIR + NAMES + Image.h + PATHS + ${_IMAGEMAGICK++_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + Magick++ + ) + + find_library(MAGICK++_LIBRARY + NAMES + Magick++ + PATHS + ${_IMAGEMAGICK++_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (MAGICK++_LIBRARY) + set(MAGICK++_FOUND TRUE) + endif (MAGICK++_LIBRARY) + + set(IMAGEMAGICK++_INCLUDE_DIRS + ${IMAGEMAGICK++_INCLUDE_DIR} + ) + + if (MAGICK++_FOUND) + set(IMAGEMAGICK++_LIBRARIES + ${IMAGEMAGICK++_LIBRARIES} + ${MAGICK++_LIBRARY} + ) + endif (MAGICK++_FOUND) + + if (IMAGEMAGICK++_INCLUDE_DIRS AND IMAGEMAGICK++_LIBRARIES) + set(IMAGEMAGICK++_FOUND TRUE) + endif (IMAGEMAGICK++_INCLUDE_DIRS AND IMAGEMAGICK++_LIBRARIES) + + if (IMAGEMAGICK++_FOUND) + if (NOT ImageMagick++_FIND_QUIETLY) + message(STATUS "Found ImageMagick++: ${IMAGEMAGICK++_LIBRARIES}") + endif (NOT ImageMagick++_FIND_QUIETLY) + else (IMAGEMAGICK++_FOUND) + if (ImageMagick++_FIND_REQUIRED) + message(FATAL_ERROR "Could not find ImageMagick++") + endif (ImageMagick++_FIND_REQUIRED) + endif (IMAGEMAGICK++_FOUND) + + # show the IMAGEMAGICK++_INCLUDE_DIRS and IMAGEMAGICK++_LIBRARIES variables only in the advanced view + mark_as_advanced(IMAGEMAGICK++_INCLUDE_DIRS IMAGEMAGICK++_LIBRARIES) + +endif (IMAGEMAGICK++_LIBRARIES AND IMAGEMAGICK++_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindLCMS.cmake b/CMakeScripts/FindLCMS.cmake new file mode 100644 index 000000000..7285d0a36 --- /dev/null +++ b/CMakeScripts/FindLCMS.cmake @@ -0,0 +1,89 @@ +# - Try to find LCMS +# Once done this will define +# +# LCMS_FOUND - system has LCMS +# LCMS_INCLUDE_DIRS - the LCMS include directory +# LCMS_LIBRARIES - Link these to use LCMS +# LCMS_DEFINITIONS - Compiler switches required for using LCMS +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS) + # in cache already + set(LCMS_FOUND TRUE) +else (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(lcms _LCMS_INCLUDEDIR _LCMS_LIBDIR _LCMS_LDFLAGS _LCMS_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_LCMS lcms) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(LCMS_INCLUDE_DIR + NAMES + lcms.h + PATHS + ${_LCMS_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + lcms + ) + + find_library(LCMS_LIBRARY + NAMES + lcms + PATHS + ${_LCMS_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (LCMS_LIBRARY) + set(LCMS_FOUND TRUE) + endif (LCMS_LIBRARY) + + set(LCMS_INCLUDE_DIRS + ${LCMS_INCLUDE_DIR} + ) + + if (LCMS_FOUND) + set(LCMS_LIBRARIES + ${LCMS_LIBRARIES} + ${LCMS_LIBRARY} + ) + endif (LCMS_FOUND) + + if (LCMS_INCLUDE_DIRS AND LCMS_LIBRARIES) + set(LCMS_FOUND TRUE) + endif (LCMS_INCLUDE_DIRS AND LCMS_LIBRARIES) + + if (LCMS_FOUND) + if (NOT LCMS_FIND_QUIETLY) + message(STATUS "Found LCMS: ${LCMS_LIBRARIES}") + endif (NOT LCMS_FIND_QUIETLY) + else (LCMS_FOUND) + if (LCMS_FIND_REQUIRED) + message(FATAL_ERROR "Could not find LCMS") + endif (LCMS_FIND_REQUIRED) + endif (LCMS_FOUND) + + # show the LCMS_INCLUDE_DIRS and LCMS_LIBRARIES variables only in the advanced view + mark_as_advanced(LCMS_INCLUDE_DIRS LCMS_LIBRARIES) + +endif (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindLibWPG.cmake b/CMakeScripts/FindLibWPG.cmake new file mode 100644 index 000000000..5d02f36ac --- /dev/null +++ b/CMakeScripts/FindLibWPG.cmake @@ -0,0 +1,89 @@ +# - Try to find LibWPG +# Once done this will define +# +# LIBWPG_FOUND - system has LibWPG +# LIBWPG_INCLUDE_DIRS - the LibWPG include directory +# LIBWPG_LIBRARIES - Link these to use LibWPG +# LIBWPG_DEFINITIONS - Compiler switches required for using LibWPG +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (LIBWPG_LIBRARIES AND LIBWPG_INCLUDE_DIRS) + # in cache already + set(LIBWPG_FOUND TRUE) +else (LIBWPG_LIBRARIES AND LIBWPG_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(libwpg-0.1 _LIBWPG_INCLUDEDIR _LIBWPG_LIBDIR _LIBWPG_LDFLAGS _LIBWPG_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_LIBWPG libwpg-0.1) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(LIBWPG_INCLUDE_DIR + NAMES + libwpg/libwpg.h + PATHS + ${_LIBWPG_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + libwpg-0.1 + ) + + find_library(LIBWPG-0.1_LIBRARY + NAMES + wpg-0.1 + PATHS + ${_LIBWPG_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (LIBWPG-0.1_LIBRARY) + set(LIBWPG-0.1_FOUND TRUE) + endif (LIBWPG-0.1_LIBRARY) + + set(LIBWPG_INCLUDE_DIRS + ${LIBWPG_INCLUDE_DIR} + ) + + if (LIBWPG-0.1_FOUND) + set(LIBWPG_LIBRARIES + ${LIBWPG_LIBRARIES} + ${LIBWPG-0.1_LIBRARY} + ) + endif (LIBWPG-0.1_FOUND) + + if (LIBWPG_INCLUDE_DIRS AND LIBWPG_LIBRARIES) + set(LIBWPG_FOUND TRUE) + endif (LIBWPG_INCLUDE_DIRS AND LIBWPG_LIBRARIES) + + if (LIBWPG_FOUND) + if (NOT LibWPG_FIND_QUIETLY) + message(STATUS "Found LibWPG: ${LIBWPG_LIBRARIES}") + endif (NOT LibWPG_FIND_QUIETLY) + else (LIBWPG_FOUND) + if (LibWPG_FIND_REQUIRED) + message(FATAL_ERROR "Could not find LibWPG") + endif (LibWPG_FIND_REQUIRED) + endif (LIBWPG_FOUND) + + # show the LIBWPG_INCLUDE_DIRS and LIBWPG_LIBRARIES variables only in the advanced view + mark_as_advanced(LIBWPG_INCLUDE_DIRS LIBWPG_LIBRARIES) + +endif (LIBWPG_LIBRARIES AND LIBWPG_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindPopt.cmake b/CMakeScripts/FindPopt.cmake new file mode 100644 index 000000000..5068bbfa9 --- /dev/null +++ b/CMakeScripts/FindPopt.cmake @@ -0,0 +1,89 @@ +# - Try to find Popt +# Once done this will define +# +# POPT_FOUND - system has Popt +# POPT_INCLUDE_DIRS - the Popt include directory +# POPT_LIBRARIES - Link these to use Popt +# POPT_DEFINITIONS - Compiler switches required for using Popt +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (POPT_LIBRARIES AND POPT_INCLUDE_DIRS) + # in cache already + set(POPT_FOUND TRUE) +else (POPT_LIBRARIES AND POPT_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(popt _POPT_INCLUDEDIR _POPT_LIBDIR _POPT_LDFLAGS _POPT_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_POPT popt) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(POPT_INCLUDE_DIR + NAMES + popt.h + PATHS + ${_POPT_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + popt + ) + + find_library(POPT_LIBRARY + NAMES + popt + PATHS + ${_POPT_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (POPT_LIBRARY) + set(POPT_FOUND TRUE) + endif (POPT_LIBRARY) + + set(POPT_INCLUDE_DIRS + ${POPT_INCLUDE_DIR} + ) + + if (POPT_FOUND) + set(POPT_LIBRARIES + ${POPT_LIBRARIES} + ${POPT_LIBRARY} + ) + endif (POPT_FOUND) + + if (POPT_INCLUDE_DIRS AND POPT_LIBRARIES) + set(POPT_FOUND TRUE) + endif (POPT_INCLUDE_DIRS AND POPT_LIBRARIES) + + if (POPT_FOUND) + if (NOT Popt_FIND_QUIETLY) + message(STATUS "Found Popt: ${POPT_LIBRARIES}") + endif (NOT Popt_FIND_QUIETLY) + else (POPT_FOUND) + if (Popt_FIND_REQUIRED) + message(FATAL_ERROR "Could not find Popt") + endif (Popt_FIND_REQUIRED) + endif (POPT_FOUND) + + # show the POPT_INCLUDE_DIRS and POPT_LIBRARIES variables only in the advanced view + mark_as_advanced(POPT_INCLUDE_DIRS POPT_LIBRARIES) + +endif (POPT_LIBRARIES AND POPT_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindSigC++.cmake b/CMakeScripts/FindSigC++.cmake new file mode 100644 index 000000000..ab0c37b4b --- /dev/null +++ b/CMakeScripts/FindSigC++.cmake @@ -0,0 +1,89 @@ +# - Try to find SIGC++ +# Once done this will define +# +# SIGC++_FOUND - system has SIGC++ +# SIGC++_INCLUDE_DIRS - the SIGC++ include directory +# SIGC++_LIBRARIES - Link these to use SIGC++ +# SIGC++_DEFINITIONS - Compiler switches required for using SIGC++ +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS) + # in cache already + set(SIGC++_FOUND TRUE) +else (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(sigc++-2.0 _SIGC++_INCLUDEDIR _SIGC++_LIBDIR _SIGC++_LDFLAGS _SIGC++_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_SIGC++ sigc++-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(SIGC++_INCLUDE_DIR + NAMES + sigc++/sigc++.h + PATHS + ${_SIGC++_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + sigc++-2.0 + ) + + find_library(SIGC-2.0_LIBRARY + NAMES + sigc-2.0 + PATHS + ${_SIGC++_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (SIGC-2.0_LIBRARY) + set(SIGC-2.0_FOUND TRUE) + endif (SIGC-2.0_LIBRARY) + + set(SIGC++_INCLUDE_DIRS + ${SIGC++_INCLUDE_DIR} + ) + + if (SIGC-2.0_FOUND) + set(SIGC++_LIBRARIES + ${SIGC++_LIBRARIES} + ${SIGC-2.0_LIBRARY} + ) + endif (SIGC-2.0_FOUND) + + if (SIGC++_INCLUDE_DIRS AND SIGC++_LIBRARIES) + set(SIGC++_FOUND TRUE) + endif (SIGC++_INCLUDE_DIRS AND SIGC++_LIBRARIES) + + if (SIGC++_FOUND) + if (NOT SIGC++_FIND_QUIETLY) + message(STATUS "Found SIGC++: ${SIGC++_LIBRARIES}") + endif (NOT SIGC++_FIND_QUIETLY) + else (SIGC++_FOUND) + if (SIGC++_FIND_REQUIRED) + message(FATAL_ERROR "Could not find SIGC++") + endif (SIGC++_FIND_REQUIRED) + endif (SIGC++_FOUND) + + # show the SIGC++_INCLUDE_DIRS and SIGC++_LIBRARIES variables only in the advanced view + mark_as_advanced(SIGC++_INCLUDE_DIRS SIGC++_LIBRARIES) + +endif (SIGC++_LIBRARIES AND SIGC++_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindXML2.cmake b/CMakeScripts/FindXML2.cmake new file mode 100644 index 000000000..f7dfe9e7f --- /dev/null +++ b/CMakeScripts/FindXML2.cmake @@ -0,0 +1,89 @@ +# - Try to find XML2 +# Once done this will define +# +# XML2_FOUND - system has XML2 +# XML2_INCLUDE_DIRS - the XML2 include directory +# XML2_LIBRARIES - Link these to use XML2 +# XML2_DEFINITIONS - Compiler switches required for using XML2 +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (XML2_LIBRARIES AND XML2_INCLUDE_DIRS) + # in cache already + set(XML2_FOUND TRUE) +else (XML2_LIBRARIES AND XML2_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(libxml-2.0 _XML2_INCLUDEDIR _XML2_LIBDIR _XML2_LDFLAGS _XML2_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_XML2 libxml-2.0) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(XML2_INCLUDE_DIR + NAMES + libxml/xmlunicode.h + PATHS + ${_XML2_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + libxml2 + ) + + find_library(XML2_LIBRARY + NAMES + xml2 + PATHS + ${_XML2_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (XML2_LIBRARY) + set(XML2_FOUND TRUE) + endif (XML2_LIBRARY) + + set(XML2_INCLUDE_DIRS + ${XML2_INCLUDE_DIR} + ) + + if (XML2_FOUND) + set(XML2_LIBRARIES + ${XML2_LIBRARIES} + ${XML2_LIBRARY} + ) + endif (XML2_FOUND) + + if (XML2_INCLUDE_DIRS AND XML2_LIBRARIES) + set(XML2_FOUND TRUE) + endif (XML2_INCLUDE_DIRS AND XML2_LIBRARIES) + + if (XML2_FOUND) + if (NOT XML2_FIND_QUIETLY) + message(STATUS "Found XML2: ${XML2_LIBRARIES}") + endif (NOT XML2_FIND_QUIETLY) + else (XML2_FOUND) + if (XML2_FIND_REQUIRED) + message(FATAL_ERROR "Could not find XML2") + endif (XML2_FIND_REQUIRED) + endif (XML2_FOUND) + + # show the XML2_INCLUDE_DIRS and XML2_LIBRARIES variables only in the advanced view + mark_as_advanced(XML2_INCLUDE_DIRS XML2_LIBRARIES) + +endif (XML2_LIBRARIES AND XML2_INCLUDE_DIRS) + diff --git a/CMakeScripts/FindXSLT.cmake b/CMakeScripts/FindXSLT.cmake new file mode 100644 index 000000000..0bce409cd --- /dev/null +++ b/CMakeScripts/FindXSLT.cmake @@ -0,0 +1,89 @@ +# - Try to find XSLT +# Once done this will define +# +# XSLT_FOUND - system has XSLT +# XSLT_INCLUDE_DIRS - the XSLT include directory +# XSLT_LIBRARIES - Link these to use XSLT +# XSLT_DEFINITIONS - Compiler switches required for using XSLT +# +# Copyright (c) 2008 Joshua L. Blocher +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + + +if (XSLT_LIBRARIES AND XSLT_INCLUDE_DIRS) + # in cache already + set(XSLT_FOUND TRUE) +else (XSLT_LIBRARIES AND XSLT_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + include(UsePkgConfig) + pkgconfig(libxslt _XSLT_INCLUDEDIR _XSLT_LIBDIR _XSLT_LDFLAGS _XSLT_CFLAGS) + else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + pkg_check_modules(_XSLT libxslt) + endif (PKG_CONFIG_FOUND) + endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) + find_path(XSLT_INCLUDE_DIR + NAMES + xslt.h + PATHS + ${_XSLT_INCLUDEDIR} + /usr/include + /usr/local/include + /opt/local/include + /sw/include + PATH_SUFFIXES + libxslt + ) + + find_library(XSLT_LIBRARY + NAMES + xslt + PATHS + ${_XSLT_LIBDIR} + /usr/lib + /usr/local/lib + /opt/local/lib + /sw/lib + ) + + if (XSLT_LIBRARY) + set(XSLT_FOUND TRUE) + endif (XSLT_LIBRARY) + + set(XSLT_INCLUDE_DIRS + ${XSLT_INCLUDE_DIR} + ) + + if (XSLT_FOUND) + set(XSLT_LIBRARIES + ${XSLT_LIBRARIES} + ${XSLT_LIBRARY} + ) + endif (XSLT_FOUND) + + if (XSLT_INCLUDE_DIRS AND XSLT_LIBRARIES) + set(XSLT_FOUND TRUE) + endif (XSLT_INCLUDE_DIRS AND XSLT_LIBRARIES) + + if (XSLT_FOUND) + if (NOT XSLT_FIND_QUIETLY) + message(STATUS "Found XSLT: ${XSLT_LIBRARIES}") + endif (NOT XSLT_FIND_QUIETLY) + else (XSLT_FOUND) + if (XSLT_FIND_REQUIRED) + message(FATAL_ERROR "Could not find XSLT") + endif (XSLT_FIND_REQUIRED) + endif (XSLT_FOUND) + + # show the XSLT_INCLUDE_DIRS and XSLT_LIBRARIES variables only in the advanced view + mark_as_advanced(XSLT_INCLUDE_DIRS XSLT_LIBRARIES) + +endif (XSLT_LIBRARIES AND XSLT_INCLUDE_DIRS) + diff --git a/config.h.cmake b/config.h.cmake index 8c888726b..e7b2437f9 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -30,7 +30,7 @@ /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #cmakedefine HAVE_BIND_TEXTDOMAIN_CODESET 1 -/* Define to 1 if you have the header file. */ +/* Define to 1 if you have the header file. */ #cmakedefine HAVE_BOOST_CONCEPT_CHECK_HPP 1 /* Whether the Cairo PDF backend is available */ -- 2.30.2