summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff062a2)
raw | patch | inline | side by side (parent: ff062a2)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 7 Apr 2008 19:48:38 +0000 (19:48 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 7 Apr 2008 19:48:38 +0000 (19:48 +0000) |
CMakeScripts/ConfigInkscapeDepends.cmake | patch | blob | history |
index 8059cd66356d80dbea8f4044479450247ce07a51..e573b914b8ab212982b341093a0c816ac0dd18f3 100644 (file)
-SET(INKSCAPE_DEPENDS
- gtk+-2.0
- gtkmm-2.4
- cairo
- cairomm-1.0
- sigc++-2.0
- lcms
- libgc1c2
- libpng
- glib-2.0
- glibmm-2.4
- libxml-2.0
- libxslt
- ImageMagick++
- libpopt
- freetype2)
-SET(INKSCAPE_OPTIONAL
- gnome-vfs-2.0
- libwpg-0.1
- libssl)
-
-include(UsePkgConfig)
-
-# Dependencies Packages
-message(STATUS "")
-message(STATUS "")
-message(STATUS "Checking For REQUIRED Libraries for Building Inkscape.")
-SET(INKSCAPE_LINK_FLAGS "")
-FOREACH(dep ${INKSCAPE_DEPENDS})
- # This is a hack due to a bug in Cmake vars system, Uncomment if using a version older than 2.4 //verbalshadow
-# IF("${dep}" MATCHES "gtk\\+-2.0")
-# SET(dep_name "GTK2")
-# ELSE("${dep}" MATCHES "gtk\\+-2.0")
- SET(dep_name "${dep}")
-# ENDIF("${dep}" MATCHES "gtk\\+-2.0")
-
- PKGCONFIG_FOUND(${dep} "${dep}_FOUND")
- PKGCONFIG(${dep} "${dep_name}_INCLUDE_DIR" "${dep_name}_LINK_DIR" "${dep_name}_LINK_FLAGS" "${dep_name}_CFLAGS")
-# PKGCONFIG_VERSION(${dep} "${dep}_VERSION")
- IF("${dep}_FOUND")
- message(STATUS "${dep}: FOUND")
+SET(INKSCAPE_DEPENDS\r
+ gtk+-2.0\r
+ gtkmm-2.4\r
+ cairo\r
+ cairomm-1.0\r
+ sigc++-2.0\r
+ lcms\r
+ libgc1c2\r
+ libpng\r
+ glib-2.0\r
+ glibmm-2.4\r
+ libxml-2.0\r
+ libxslt\r
+ ImageMagick++\r
+ libpopt\r
+ freetype2)\r
+SET(INKSCAPE_OPTIONAL\r
+ gnome-vfs-2.0\r
+ libwpg-0.1\r
+ libssl)\r
+\r
+include(UsePkgConfig)\r
+\r
+# Dependencies Packages\r
+message(STATUS "")\r
+message(STATUS "")\r
+message(STATUS "Checking For REQUIRED Libraries for Building Inkscape.")\r
+SET(INKSCAPE_LINK_FLAGS "")\r
+FOREACH(dep ${INKSCAPE_DEPENDS})\r
+ # This is a hack due to a bug in Cmake vars system, Uncomment if using a version older than 2.4 //verbalshadow\r
+# IF("${dep}" MATCHES "gtk\\+-2.0")\r
+# SET(dep_name "GTK2")\r
+# ELSE("${dep}" MATCHES "gtk\\+-2.0")\r
+ SET(dep_name "${dep}")\r
+# ENDIF("${dep}" MATCHES "gtk\\+-2.0")\r
+\r
+ PKGCONFIG_FOUND(${dep} "${dep}_FOUND")\r
+ PKGCONFIG(${dep} "${dep_name}_INCLUDE_DIR" "${dep_name}_LINK_DIR" "${dep_name}_LINK_FLAGS" "${dep_name}_CFLAGS")\r
+# PKGCONFIG_VERSION(${dep} "${dep}_VERSION")\r
+ IF("${dep}_FOUND")\r
+ message(STATUS "${dep}: FOUND")\r
# Set Compiler Flags\r
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${dep_name}_CFLAGS}")\r
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${dep_name}_CFLAGS}")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${dep_name}_CFLAGS}")\r
SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")\r
- ELSE("${dep}_FOUND")
- message(STATUS "${dep}: NOT FOUND")
- ENDIF("${dep}_FOUND")
-ENDFOREACH(dep)
-# Include non pkg-config dependencies:
-INCLUDE(FindBoost)
-INCLUDE(FindGC)
-# end Dependencies
-
-# Optional Dependencies Packages
-message(STATUS "")
-message(STATUS "")
-message(STATUS "Checking For OPTIONAL Libraries for Building Inkscape.")
-message(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("${dep}_FOUND")\r
+ message(STATUS "${dep}: NOT FOUND")\r
+ ENDIF("${dep}_FOUND")\r
+ENDFOREACH(dep)\r
+# Include non pkg-config dependencies:\r
+INCLUDE(FindBoost)\r
+INCLUDE(FindGC)\r
+# end Dependencies\r
+\r
+# Optional Dependencies Packages\r
+message(STATUS "")\r
+message(STATUS "")\r
+message(STATUS "Checking For OPTIONAL Libraries for Building Inkscape.")\r
+message(STATUS "These add additional functionality to Inkscape.")\r
+FOREACH(opt ${INKSCAPE_OPTIONAL})\r
+ SET(opt_name "${opt}")\r
+ PKGCONFIG_FOUND(${opt} "${opt}_FOUND")\r
+ PKGCONFIG(${opt} "${opt_name}_INCLUDE_DIR" "${opt_name}_LINK_DIR" "${opt_name}_LINK_FLAGS" "${opt_name}_CFLAGS")\r
+# PKGCONFIG_VERSION(${opt} "${opt}_VERSION")\r
+ IF("${opt}_FOUND")\r
+ message(STATUS "${opt}: FOUND")\r
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${dep_name}_CFLAGS}")\r
SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")\r
- 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 ("cairo-pdf.h" HAVE_CAIRO_PDF)
-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)
-
-# Enable pango defines, necessary for compilation on Win32, how about Linux?
-SET(PANGO_ENABLE_ENGINE TRUE)
-SET(RENDER_WITH_PANGO_CAIRO TRUE)
-
-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")
-INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_BINARY_DIR}") # Include base dir, so other files can refer to the generated files.
+ ELSE("${opt}_FOUND")\r
+ message(STATUS "${opt}: NOT FOUND")\r
+ ENDIF("${opt}_FOUND")\r
+ENDFOREACH(opt)\r
+# end Optional Dependencies\r
+message(STATUS "")\r
+message(STATUS "")\r
+\r
+SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")\r
+\r
+INCLUDE (CheckIncludeFiles)\r
+# usage: CHECK_INCLUDE_FILES (<header> <RESULT_VARIABLE> )\r
+\r
+CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)\r
+CHECK_INCLUDE_FILES (boost/concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP)\r
+CHECK_INCLUDE_FILES ("cairo-pdf.h" HAVE_CAIRO_PDF)\r
+CHECK_INCLUDE_FILES (gc/gc.h HAVE_GC_GC_H)\r
+CHECK_INCLUDE_FILES (gc.h HAVE_GC_H)\r
+CHECK_INCLUDE_FILES (getopt.h HAVE_GETOPT_H)\r
+CHECK_INCLUDE_FILES (ieeefp.h HAVE_IEEEFP_H)\r
+CHECK_INCLUDE_FILES (inttypes.h HAVE_INTTYPES_H)\r
+CHECK_INCLUDE_FILES (locale.h HAVE_LC_MESSAGES)\r
+CHECK_INCLUDE_FILES (locale.h HAVE_LOCALE_H)\r
+CHECK_INCLUDE_FILES (libintl.h HAVE_LIBINTL_H)\r
+CHECK_INCLUDE_FILES (fcntl.h HAVE_FCNTL_H)\r
+CHECK_INCLUDE_FILES (memory.h HAVE_MEMORY_H)\r
+CHECK_INCLUDE_FILES (stddef.h HAVE_STDDEF_H)\r
+CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H)\r
+CHECK_INCLUDE_FILES (stdlib.h HAVE_STDLIB_H)\r
+CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H)\r
+CHECK_INCLUDE_FILES (string.h HAVE_STRING_H)\r
+CHECK_INCLUDE_FILES (sys/filio.h HAVE_SYS_FILIO_H)\r
+CHECK_INCLUDE_FILES (sys/stat.h HAVE_SYS_STAT_H)\r
+CHECK_INCLUDE_FILES (sys/time.h HAVE_SYS_TIME_H)\r
+CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H)\r
+CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H)\r
+CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H)\r
+\r
+# Enable pango defines, necessary for compilation on Win32, how about Linux?\r
+SET(PANGO_ENABLE_ENGINE TRUE)\r
+SET(RENDER_WITH_PANGO_CAIRO TRUE)\r
+\r
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)\r
+\r
+# Create File inkscape_version.h\r
+FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")\r
+INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_BINARY_DIR}") # Include base dir, so other files can refer to the generated files.\r
# CMAKE_INCLUDE_CURRENT_DIR is not enough as it only includes the current dir and not the basedir with config.h in it
\ No newline at end of file