DefineDependsandFlags.cmake revision b3ee2e647c9b62254ce35e5d8e830441b2368096
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenset(INKSCAPE_LIBS "")
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenbergerset(INKSCAPE_INCS "")
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainenset(INKSCAPE_INCS_SYS "")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${PROJECT_SOURCE_DIR}/src
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo Sirainen # generated includes
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${CMAKE_BINARY_DIR}/include
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# ----------------------------------------------------------------------------
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# Files we include
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# ----------------------------------------------------------------------------
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenfind_package(GSL REQUIRED)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${GSL_INCLUDE_DIRS})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainen list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainen list(APPEND INKSCAPE_LIBS "-lintl.dll") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0.dll") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0.dll") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lpangowin32-1.0.dll") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lgthread-2.0.dll") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-ldl") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
3a7113e3e2dac0e333e1a3f62af7d682896f59c6Timo Sirainen list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo Sirainen list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainenlist(APPEND INKSCAPE_LIBS "-lgomp") # FIXME
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif(WITH_GNOME_VFS)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen find_package(GnomeVFS2)
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75Timo Sirainen if(GNOMEVFS2_FOUND)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen set(WITH_GNOME_VFS OFF)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif(ENABLE_LCMS)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen find_package(LCMS2)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen if(LCMS2_FOUND)
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen add_definitions(${LCMS2_DEFINITIONS})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen set (HAVE_LIBLCMS2 1)
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen find_package(LCMS)
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen if(LCMS_FOUND)
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen add_definitions(${LCMS_DEFINITIONS})
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen set (HAVE_LIBLCMS1 1)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(ENABLE_LCMS OFF)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenfind_package(BoehmGC REQUIRED)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainenlist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainenadd_definitions(${BOEHMGC_DEFINITIONS})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenif(ENABLE_POPPLER)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen find_package(PopplerCairo)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(POPPLER_FOUND)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(HAVE_POPPLER ON)
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen if(ENABLE_POPPLER_CAIRO)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(POPPLER_CAIRO_FOUND AND POPPLER_GLIB_FOUND)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(HAVE_POPPLER_CAIRO ON)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen set(HAVE_POPPLER_GLIB ON)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(POPPLER_VERSION VERSION_GREATER "0.8.3" OR
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen POPPLER_VERSION VERSION_EQUAL "0.8.3")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(POPPLER_NEW_GFXFONT ON)
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen if(POPPLER_VERSION VERSION_GREATER "0.12.2" OR
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen POPPLER_VERSION VERSION_EQUAL "0.12.2")
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen set(POPPLER_NEW_COLOR_SPACE_API ON)
7569ab8537418b7fc369265f26595b0ef9e4cb35Timo Sirainen if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen POPPLER_VERSION VERSION_EQUAL "0.26.0")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen POPPLER_VERSION VERSION_EQUAL "0.15.1")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(POPPLER_NEW_GFXPATCH ON)
798cfe56c9871262770384da1239162b3800cce1Timo Sirainen if(POPPLER_VERSION VERSION_GREATER "0.20.0" OR
798cfe56c9871262770384da1239162b3800cce1Timo Sirainen POPPLER_VERSION VERSION_EQUAL "0.20.0")
3a7113e3e2dac0e333e1a3f62af7d682896f59c6Timo Sirainen set(POPPLER_NEW_ERRORAPI ON)
798cfe56c9871262770384da1239162b3800cce1Timo Sirainen set(ENABLE_POPPLER_CAIRO OFF)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(HAVE_POPPLER OFF)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(ENABLE_POPPLER_CAIRO OFF)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
47bb4a7615c85f212f061499f04f121d6d625387Timo Sirainenadd_definitions(${POPPLER_DEFINITIONS})
47bb4a7615c85f212f061499f04f121d6d625387Timo Sirainenif(WITH_LIBWPG)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen find_package(LibWPG)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen if(LIBWPG_FOUND)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(WITH_LIBWPG01 ${LIBWPG01_FOUND})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen set(WITH_LIBWPG02 ${LIBWPG02_FOUND})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
fc8d5f0ac909cca77840538e8beef98a8d40c21cTimo Sirainen list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen add_definitions(${LIBWPG_DEFINITIONS})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen set(WITH_LIBWPG OFF)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo SirainenFIND_PACKAGE(JPEG REQUIRED)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen#IF(JPEG_FOUND)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen #INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
fc8d5f0ac909cca77840538e8beef98a8d40c21cTimo Sirainen #TARGET_LINK_LIBRARIES(mpo ${JPEG_LIBRARIES})
fc8d5f0ac909cca77840538e8beef98a8d40c21cTimo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${JPEG_INCLUDE_DIR})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenlist(APPEND INKSCAPE_LIBS ${JPEG_LIBRARIES})
33dd58ab84a020c4f061d2f6031eb6d4c168df1bTimo Sirainenfind_package(PNG REQUIRED)
33dd58ab84a020c4f061d2f6031eb6d4c168df1bTimo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
33dd58ab84a020c4f061d2f6031eb6d4c168df1bTimo Sirainenlist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
33dd58ab84a020c4f061d2f6031eb6d4c168df1bTimo Sirainenfind_package(Popt REQUIRED)
5d4855d7b4dcffb6975ed8e3c9c376dac74e5c8aTimo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenlist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenadd_definitions(${POPT_DEFINITIONS})
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen find_package(DBus REQUIRED)
82f53ea81671bcc7b9bf24a34b04a4ba2752efd3Timo Sirainen if(DBUS_FOUND)
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(WITH_DBUS OFF)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# ----------------------------------------------------------------------------
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen# CMake's builtin
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# ----------------------------------------------------------------------------
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen# Include dependencies:
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
9261dbf0675204898c6557591c7aa376e23a52b2Timo Sirainenfind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainen ${GTK2_GDK_INCLUDE_DIR}
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen ${GTK2_GDKMM_INCLUDE_DIR}
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GDKCONFIG_INCLUDE_DIR}
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GLIB_INCLUDE_DIR}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GLIBCONFIG_INCLUDE_DIR}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GLIBMM_INCLUDE_DIR}
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen ${GTK2_GTK_INCLUDE_DIR}
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen ${GTK2_GTKMM_INCLUDE_DIR}
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainen ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen ${GTK2_ATK_INCLUDE_DIR}
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen ${GTK2_ATKMM_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_PANGO_INCLUDE_DIR}
3cf67672fdc87583cb23ce088c95bb5dee60e74dTimo Sirainen ${GTK2_PANGOMM_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_CAIRO_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_CAIROMM_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen ${GTK2_GIOMM_INCLUDE_DIR}
3cf67672fdc87583cb23ce088c95bb5dee60e74dTimo Sirainen ${GTK2_GIOMMCONFIG_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_SIGC++_INCLUDE_DIR}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainenlist(APPEND INKSCAPE_LIBS
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainen ${GTK2_GDK_LIBRARY}
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen ${GTK2_GDKMM_LIBRARY}
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen ${GTK2_GDK_PIXBUF_LIBRARY}
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen ${GTK2_GLIB_LIBRARY}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_GLIBMM_LIBRARY}
adc409a7ac9689d3baf811712ad5a5432cab2d87Timo Sirainen ${GTK2_GTK_LIBRARY}
b321df9603081896b70ec44635af96d674a9839aTimo Sirainen ${GTK2_GTKMM_LIBRARY}
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainen ${GTK2_ATK_LIBRARY}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_ATKMM_LIBRARY}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_PANGO_LIBRARY}
f968e62caa52a8924bd05ebf76ff515b5c18e17bTimo Sirainen ${GTK2_PANGOMM_LIBRARY}
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainen ${GTK2_CAIRO_LIBRARY}
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainen ${GTK2_CAIROMM_LIBRARY}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GIOMM_LIBRARY}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_SIGC++_LIBRARY}
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen ${GTK2_GOBJECT_LIBRARY}
47bb4a7615c85f212f061499f04f121d6d625387Timo Sirainenfind_package(Freetype REQUIRED)
47bb4a7615c85f212f061499f04f121d6d625387Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
47bb4a7615c85f212f061499f04f121d6d625387Timo Sirainenlist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenfind_package(Boost REQUIRED)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenfind_package(ASPELL)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenif(ASPELL_FOUND)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen add_definitions(${ASPELL_DEFINITIONS})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen set(HAVE_ASPELL TRUE)
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainenif(WITH_GTKSPELL)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen find_package(GtkSpell)
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen if(GTKSPELL_FOUND)
137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainen list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen add_definitions(${GTKSPELL_DEFINITIONS})
4376643cd2c7110e752c09f838f2c4eee6ed8ac6Timo Sirainen set(WITH_GTKSPELL ${GTKSPELL_FOUND})
938835576b218f6bb9498d829cef9514f8609c6fTimo Sirainen#find_package(OpenSSL)
938835576b218f6bb9498d829cef9514f8609c6fTimo Sirainen#list(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
938835576b218f6bb9498d829cef9514f8609c6fTimo Sirainen#list(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainenfind_package(LibXslt REQUIRED)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
798cfe56c9871262770384da1239162b3800cce1Timo Sirainenlist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
82f53ea81671bcc7b9bf24a34b04a4ba2752efd3Timo Sirainenadd_definitions(${LIBXSLT_DEFINITIONS})
82f53ea81671bcc7b9bf24a34b04a4ba2752efd3Timo Sirainenfind_package(LibXml2 REQUIRED)
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenlist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenadd_definitions(${LIBXML2_DEFINITIONS})
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenfind_package(OpenMP)
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainenif(OpenMP_FOUND)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
a8e132559a7ebe54c8269d79ce29fa3338c76199Timo Sirainen set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen mark_as_advanced(OpenMP_C_FLAGS)
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainen mark_as_advanced(OpenMP_CXX_FLAGS)
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainenfind_package(ZLIB REQUIRED)
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainenlist(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainenlist(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo Sirainenfind_package(ImageMagick COMPONENTS MagickCore Magick++)
a8e132559a7ebe54c8269d79ce29fa3338c76199Timo Sirainenif(ImageMagick_FOUND)
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainen list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_MagickCore_INCLUDE_DIR})
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen list(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Siraineninclude(${CMAKE_CURRENT_LIST_DIR}/IncludeJava.cmake)
70c181da837ed85fc5b0426c010b65609bda5329Timo Sirainen# end Dependencies
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Siraineninclude_directories(${INKSCAPE_INCS})
e2a700d0628e395d64cbcef4b5b4510816bf51c4Timo Siraineninclude_directories(SYSTEM ${INKSCAPE_INCS_SYS})
ce6b6093957885a74fd6e85c18801dbb727d61ecTimo Sirainenunset(INKSCAPE_INCS)
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Sirainenunset(INKSCAPE_INCS_SYS)
e9503210d3521a6833ed62dc332fc42ffb0e7a13Timo Siraineninclude(${CMAKE_CURRENT_LIST_DIR}/ConfigChecks.cmake)