ConfigInkscapeDepends.cmake revision e652143fdccf6d691397f1fdc8ec122a56603762
6408N/ASET(INKSCAPE_DEPENDS
6408N/A gtk+-2.0
6408N/A gtkmm-2.4
6408N/A cairo
6408N/A cairomm-1.0
6408N/A sigc++-2.0
6408N/A lcms
6408N/A libgc1c2
6408N/A libpng
6408N/A glib-2.0
6408N/A glibmm-2.4
6408N/A libxml-2.0
6408N/A libxslt
6408N/A ImageMagick++
6408N/A libpopt
6408N/A freetype2)
6408N/ASET(INKSCAPE_OPTIONAL
6408N/A gnome-vfs-2.0
6408N/A libwpg-0.1
6408N/A libssl)
6408N/A
6408N/Ainclude(UsePkgConfig)
6408N/A
6408N/A# Dependencies Packages
6408N/Amessage(STATUS "")
6408N/Amessage(STATUS "")
6408N/Amessage(STATUS "Checking For REQUIRED Libraries for Building Inkscape.")
6408N/AFOREACH(dep ${INKSCAPE_DEPENDS})
6408N/A # This is a hack due to a bug in Cmake vars system, Uncomment if using a version older than 2.4 //verbalshadow
6408N/A# IF("${dep}" MATCHES "gtk\\+-2.0")
6408N/A# SET(dep_name "GTK2")
6408N/A# ELSE("${dep}" MATCHES "gtk\\+-2.0")
6408N/A SET(dep_name "${dep}")
6408N/A# ENDIF("${dep}" MATCHES "gtk\\+-2.0")
6408N/A
6408N/A PKGCONFIG_FOUND(${dep} "${dep}_FOUND")
6408N/A PKGCONFIG(${dep} "${dep_name}_INCLUDE_DIR" "${dep_name}_LINK_DIR" "${dep_name}_LINK_FLAGS" "${dep_name}_CFLAGS")
6408N/A# PKGCONFIG_VERSION(${dep} "${dep}_VERSION")
6408N/A IF("${dep}_FOUND")
6408N/A message(STATUS "${dep}: FOUND")
6408N/A # Set Compiler Flags
6408N/A SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${dep_name}_CFLAGS}")
6408N/A ELSE("${dep}_FOUND")
6408N/A message(STATUS "${dep}: NOT FOUND")
6408N/A ENDIF("${dep}_FOUND")
6408N/AENDFOREACH(dep)
6408N/A# Include non pkg-config dependencies:
6408N/AINCLUDE(FindBoost)
6408N/AINCLUDE(FindGC)
6408N/A# end Dependencies
6408N/A
6408N/A# Optional Dependencies Packages
6408N/Amessage(STATUS "")
6408N/Amessage(STATUS "")
6408N/Amessage(STATUS "Checking For OPTIONAL Libraries for Building Inkscape.")
6408N/Amessage(STATUS "These add additional functionality to Inkscape.")
FOREACH(opt ${INKSCAPE_OPTIONAL})
SET(opt_name "${opt}")
PKGCONFIG_FOUND(${opt} "${opt}_FOUND")
PKGCONFIG(${opt} "${opt_name}_INCLUDE_DIR" "${opt_name}_LINK_DIR" "${opt_name}_LINK_FLAGS" "${opt_name}_CFLAGS")
# PKGCONFIG_VERSION(${opt} "${opt}_VERSION")
IF("${opt}_FOUND")
message(STATUS "${opt}: FOUND")
ELSE("${opt}_FOUND")
message(STATUS "${opt}: NOT FOUND")
ENDIF("${opt}_FOUND")
ENDFOREACH(opt)
# end Optional Dependencies
message(STATUS "")
message(STATUS "")
SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
INCLUDE (CheckIncludeFiles)
# usage: CHECK_INCLUDE_FILES (<header> <RESULT_VARIABLE> )
CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
CHECK_INCLUDE_FILES (boost/concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP)
CHECK_INCLUDE_FILES (gc/gc.h HAVE_GC_GC_H)
CHECK_INCLUDE_FILES (gc.h HAVE_GC_H)
CHECK_INCLUDE_FILES (getopt.h HAVE_GETOPT_H)
CHECK_INCLUDE_FILES (ieeefp.h HAVE_IEEEFP_H)
CHECK_INCLUDE_FILES (inttypes.h HAVE_INTTYPES_H)
CHECK_INCLUDE_FILES (locale.h HAVE_LC_MESSAGES)
CHECK_INCLUDE_FILES (locale.h HAVE_LOCALE_H)
CHECK_INCLUDE_FILES (libintl.h HAVE_LIBINTL_H)
CHECK_INCLUDE_FILES (fcntl.h HAVE_FCNTL_H)
CHECK_INCLUDE_FILES (memory.h HAVE_MEMORY_H)
CHECK_INCLUDE_FILES (stddef.h HAVE_STDDEF_H)
CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H)
CHECK_INCLUDE_FILES (stdlib.h HAVE_STDLIB_H)
CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H)
CHECK_INCLUDE_FILES (string.h HAVE_STRING_H)
CHECK_INCLUDE_FILES (sys/filio.h HAVE_SYS_FILIO_H)
CHECK_INCLUDE_FILES (sys/stat.h HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILES (sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
# Create File inkscape_version.h
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")