DefineDependsandFlags.cmake revision a9364748fcbe81592d380ffa00b8ec000e308c5f
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncset(INKSCAPE_LIBS "")
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsyncset(INKSCAPE_INCS "")
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncset(INKSCAPE_INCS_SYS "")
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${PROJECT_SOURCE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${PROJECT_SOURCE_DIR}/src
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync # generated includes
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${CMAKE_BINARY_DIR}/include
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync# ----------------------------------------------------------------------------
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync# Files we include
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync# ----------------------------------------------------------------------------
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(GSL REQUIRED)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS_SYS ${GSL_INCLUDE_DIRS})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(GnomeVFS2)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(BoehmGC REQUIRED)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncadd_definitions(${BOEHMGC_DEFINITIONS})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(LibWPG)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(PNG REQUIRED)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
62bc7e45f3a27d814eae7013b2d85eb84f282f93vboxsynclist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
62bc7e45f3a27d814eae7013b2d85eb84f282f93vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(Popt REQUIRED)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
62bc7e45f3a27d814eae7013b2d85eb84f282f93vboxsynclist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncadd_definitions(${POPT_DEFINITIONS})
62bc7e45f3a27d814eae7013b2d85eb84f282f93vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncif(WITH_DBUS)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync find_package(DBus REQUIRED)
5eda82e218d35ae0691febd531e1bfc0324cc4a6vboxsync if(DBUS_FOUND)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
60df112706fc1f8b76ff0a642271071b6c7c1d8cvboxsync else()
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync set(WITH_DBUS OFF)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync endif()
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsyncendif()
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync# ----------------------------------------------------------------------------
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync# CMake's builtin
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync# ----------------------------------------------------------------------------
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync# Include dependencies:
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsync# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsyncfind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
25c97a3e3ce2710f95faa6d181486df26b518e74vboxsynclist(APPEND INKSCAPE_INCS_SYS
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDK_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDKMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
5eda82e218d35ae0691febd531e1bfc0324cc4a6vboxsync ${GTK2_GDKCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIB_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIBCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIBMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GTK_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GTKMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_ATK_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_ATKMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_PANGO_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_PANGOMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_CAIRO_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_CAIROMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GIOMM_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_SIGC++_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynclist(APPEND INKSCAPE_LIBS
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDK_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDKMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GDK_PIXBUF_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIB_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GLIBMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GTK_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GTKMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_ATK_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_ATKMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_PANGO_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_PANGOMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_CAIRO_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_CAIROMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_GIOMM_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync ${GTK2_SIGC++_LIBRARY}
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncfind_package(Freetype REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
find_package(Boost REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
find_package(ASPELL)
list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
add_definitions(${ASPELL_DEFINITIONS})
find_package(OpenSSL)
list(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
find_package(LibXslt REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
add_definitions(${LIBXSLT_DEFINITIONS})
find_package(LibXml2 REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
add_definitions(${LIBXML2_DEFINITIONS})
find_package(OpenMP)
if(OpenMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
endif()
mark_as_advanced(OpenMP_C_FLAGS)
mark_as_advanced(OpenMP_CXX_FLAGS)
endif()
find_package(ZLIB REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
find_package(ImageMagick COMPONENTS MagickCore Magick++)
if(ImageMagick_FOUND)
list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_MagickCore_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
endif()
include(${CMAKE_CURRENT_LIST_DIR}/IncludeJava.cmake)
# end Dependencies
# C/C++ Flags
include_directories(${INKSCAPE_INCS})
include_directories(SYSTEM ${INKSCAPE_INCS_SYS})
unset(INKSCAPE_INCS)
unset(INKSCAPE_INCS_SYS)
include(${CMAKE_CURRENT_LIST_DIR}/ConfigChecks.cmake)