DefineDependsandFlags.cmake revision 5ad07d9f8a12d76d24a6a8f60f4caa29f2265555
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadow
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_LIBS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS_SYS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${PROJECT_SOURCE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${PROJECT_SOURCE_DIR}/src
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton # generated includes
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton ${CMAKE_BINARY_DIR}/include
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# Files we include
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(GSL REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${GSL_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonif (WIN32)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadow list(APPEND INKSCAPE_LIBS "-lintl.dll") # FIXME
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0.dll") # FIXME
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0.dll") # FIXME
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_LIBS "-lpangowin32-1.0.dll") # FIXME
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadow list(APPEND INKSCAPE_LIBS "-lgthread-2.0.dll") # FIXME
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonelse()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS "-ldl") # FIXME
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadow list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonendif()
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowif(WITH_GNOME_VFS)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton find_package(GnomeVFS2)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(GNOMEVFS2_FOUND)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton else()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(WITH_GNOME_VFS OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton endif()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonendif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonif(ENABLE_LCMS)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton find_package(LCMS2)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(LCMS2_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton add_definitions(${LCMS2_DEFINITIONS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set (HAVE_LIBLCMS2 1)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton else()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton find_package(LCMS)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(LCMS_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton add_definitions(${LCMS_DEFINITIONS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set (HAVE_LIBLCMS1 1)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton else()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(ENABLE_LCMS OFF)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonendif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonfind_package(BoehmGC REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonadd_definitions(${BOEHMGC_DEFINITIONS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonif(ENABLE_POPPLER)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton find_package(PopplerCairo)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(POPPLER_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(HAVE_POPPLER ON)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(ENABLE_POPPLER_CAIRO)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(POPPLER_CAIRO_FOUND AND POPPLER_GLIB_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(HAVE_POPPLER_CAIRO ON)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(HAVE_POPPLER_GLIB ON)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.8.3" OR
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.8.3")
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(POPPLER_NEW_GFXFONT ON)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.12.2" OR
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.12.2")
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(POPPLER_NEW_COLOR_SPACE_API ON)
277d64e3473489ba670163810e709eb4bc7cdcdcCampbell Barton endif()
277d64e3473489ba670163810e709eb4bc7cdcdcCampbell Barton if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.26.0")
277d64e3473489ba670163810e709eb4bc7cdcdcCampbell Barton set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
277d64e3473489ba670163810e709eb4bc7cdcdcCampbell Barton endif()
277d64e3473489ba670163810e709eb4bc7cdcdcCampbell Barton if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.15.1")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton set(POPPLER_NEW_GFXPATCH ON)
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton endif()
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.20.0" OR
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton POPPLER_VERSION VERSION_EQUAL "0.20.0")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton set(POPPLER_NEW_ERRORAPI ON)
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton endif()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton else()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(ENABLE_POPPLER_CAIRO OFF)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton endif()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonelse()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(HAVE_POPPLER OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(ENABLE_POPPLER_CAIRO OFF)
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowendif()
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonlist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${POPPLER_DEFINITIONS})
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonif(WITH_LIBWPG)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton find_package(LibWPG)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton if(LIBWPG_FOUND)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(WITH_LIBWPG01 ${LIBWPG01_FOUND})
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton set(WITH_LIBWPG02 ${LIBWPG02_FOUND})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton add_definitions(${LIBWPG_DEFINITIONS})
e661c64a3dee1421ca5f20d596766d6e5ea5816bCampbell Barton else()
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz set(WITH_LIBWPG OFF)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz endif()
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzendif()
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzfind_package(PNG REQUIRED)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzlist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzlist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz
e661c64a3dee1421ca5f20d596766d6e5ea5816bCampbell Bartonfind_package(Popt REQUIRED)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonadd_definitions(${POPT_DEFINITIONS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowif(WITH_DBUS)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz find_package(DBus REQUIRED)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz if(DBUS_FOUND)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
e661c64a3dee1421ca5f20d596766d6e5ea5816bCampbell Barton list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton else()
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(WITH_DBUS OFF)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton endif()
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonendif()
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadow
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton# CMake's builtin
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton# ----------------------------------------------------------------------------
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton# Include dependencies:
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonlist(APPEND INKSCAPE_INCS_SYS
${GTK2_GDK_INCLUDE_DIR}
${GTK2_GDKMM_INCLUDE_DIR}
${GTK2_GDK_PIXBUF_INCLUDE_DIR}
${GTK2_GDKCONFIG_INCLUDE_DIR}
${GTK2_GDKMMCONFIG_INCLUDE_DIR}
${GTK2_GLIB_INCLUDE_DIR}
${GTK2_GLIBCONFIG_INCLUDE_DIR}
${GTK2_GLIBMM_INCLUDE_DIR}
${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
${GTK2_GTK_INCLUDE_DIR}
${GTK2_GTKMM_INCLUDE_DIR}
${GTK2_GTKMMCONFIG_INCLUDE_DIR}
${GTK2_ATK_INCLUDE_DIR}
${GTK2_ATKMM_INCLUDE_DIR}
${GTK2_PANGO_INCLUDE_DIR}
${GTK2_PANGOMM_INCLUDE_DIR}
${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
${GTK2_CAIRO_INCLUDE_DIR}
${GTK2_CAIROMM_INCLUDE_DIR}
${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
${GTK2_GIOMM_INCLUDE_DIR}
${GTK2_GIOMMCONFIG_INCLUDE_DIR}
${GTK2_SIGC++_INCLUDE_DIR}
${GTK2_SIGC++CONFIG_INCLUDE_DIR}
)
list(APPEND INKSCAPE_LIBS
${GTK2_GDK_LIBRARY}
${GTK2_GDKMM_LIBRARY}
${GTK2_GDK_PIXBUF_LIBRARY}
${GTK2_GLIB_LIBRARY}
${GTK2_GLIBMM_LIBRARY}
${GTK2_GTK_LIBRARY}
${GTK2_GTKMM_LIBRARY}
${GTK2_ATK_LIBRARY}
${GTK2_ATKMM_LIBRARY}
${GTK2_PANGO_LIBRARY}
${GTK2_PANGOMM_LIBRARY}
${GTK2_CAIRO_LIBRARY}
${GTK2_CAIROMM_LIBRARY}
${GTK2_GIOMM_LIBRARY}
${GTK2_SIGC++_LIBRARY}
${GTK2_GOBJECT_LIBRARY}
)
find_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)
if(ASPELL_FOUND)
list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
add_definitions(${ASPELL_DEFINITIONS})
set(HAVE_ASPELL TRUE)
endif()
if(WITH_GTKSPELL)
find_package(GtkSpell)
if(GTKSPELL_FOUND)
list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
add_definitions(${GTKSPELL_DEFINITIONS})
endif()
set(WITH_GTKSPELL ${GTKSPELL_FOUND})
endif()
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)