DefineDependsandFlags.cmake revision 5f8360890e4758752936c5eda4524b7ffad91360
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_LIBS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS_SYS "")
b3ee2e647c9b62254ce35e5d8e830441b2368096brycelist(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${PROJECT_SOURCE_DIR}/src
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton # generated includes
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton ${CMAKE_BINARY_DIR}/include
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# Files we include
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(GSL REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${GSL_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lintl.dll") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0.dll") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0.dll") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangowin32-1.0.dll") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lgthread-2.0.dll") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suvelseif(APPLE)
5f8360890e4758752936c5eda4524b7ffad91360~suv if(DEFINED ENV{CMAKE_PREFIX_PATH})
5f8360890e4758752936c5eda4524b7ffad91360~suv # Adding the library search path explicitly seems not required
5f8360890e4758752936c5eda4524b7ffad91360~suv # if MacPorts is installed in default prefix ('/opt/local') -
5f8360890e4758752936c5eda4524b7ffad91360~suv # Cmake then can rely on the hard-coded paths in its modules.
5f8360890e4758752936c5eda4524b7ffad91360~suv # Only prepend search path if $CMAKE_PREFIX_PATH is defined:
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-L$ENV{CMAKE_PREFIX_PATH}/lib") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv # TODO: verify whether linking the next two libs explicitly is always
5f8360890e4758752936c5eda4524b7ffad91360~suv # required, or only if MacPorts is installed in custom prefix:
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-liconv") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lintl") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv # GTK+ backend
5f8360890e4758752936c5eda4524b7ffad91360~suv if(${GTK+_2.0_TARGET} MATCHES "x11")
5f8360890e4758752936c5eda4524b7ffad91360~suv # only link X11 if using X11 backend of GTK2
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suv elseif(${GTK+_2.0_TARGET} MATCHES "quartz")
5f8360890e4758752936c5eda4524b7ffad91360~suv # TODO: gtk-mac-integration (currently only useful for osxmenu branch)
5f8360890e4758752936c5eda4524b7ffad91360~suv # 1) add configure option (ON/OFF) for gtk-mac-integration
5f8360890e4758752936c5eda4524b7ffad91360~suv # 2) add checks (GTK+ backend must be "quartz")
5f8360890e4758752936c5eda4524b7ffad91360~suv # 3) link relevant lib(s)
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-ldl") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
5f8360890e4758752936c5eda4524b7ffad91360~suvif(NOT APPLE)
5f8360890e4758752936c5eda4524b7ffad91360~suv # FIXME: should depend on availability of OpenMP support (see below) (?)
5f8360890e4758752936c5eda4524b7ffad91360~suv list(APPEND INKSCAPE_LIBS "-lgomp") # FIXME
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Bartonif(WITH_GNOME_VFS)
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Barton find_package(GnomeVFS2)
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Barton if(GNOMEVFS2_FOUND)
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Barton list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Barton list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
7e14cb7b914c462b0bc1069cedb30c8e064ec43eCampbell Barton set(WITH_GNOME_VFS OFF)
cdc60c622d70859a52693bd71ab473c5dad37eefCampbell Bartonif(ENABLE_LCMS)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish find_package(LCMS2)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish if(LCMS2_FOUND)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish add_definitions(${LCMS2_DEFINITIONS})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish set (HAVE_LIBLCMS2 1)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish find_package(LCMS)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish if(LCMS_FOUND)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish add_definitions(${LCMS_DEFINITIONS})
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish set (HAVE_LIBLCMS1 1)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish set(ENABLE_LCMS OFF)
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(BoehmGC REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${BOEHMGC_DEFINITIONS})
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Bartonif(ENABLE_POPPLER)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton find_package(PopplerCairo)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_FOUND)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(HAVE_POPPLER ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(ENABLE_POPPLER_CAIRO)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_CAIRO_FOUND AND POPPLER_GLIB_FOUND)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(HAVE_POPPLER_CAIRO ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(HAVE_POPPLER_GLIB ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.8.3" OR
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.8.3")
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(POPPLER_NEW_GFXFONT ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.12.2" OR
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.12.2")
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(POPPLER_NEW_COLOR_SPACE_API ON)
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish POPPLER_VERSION VERSION_EQUAL "0.26.0")
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.15.1")
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(POPPLER_NEW_GFXPATCH ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton if(POPPLER_VERSION VERSION_GREATER "0.20.0" OR
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton POPPLER_VERSION VERSION_EQUAL "0.20.0")
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(POPPLER_NEW_ERRORAPI ON)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(ENABLE_POPPLER_CAIRO OFF)
c0a46f99514c9c7fda075f62ed4c86eeda2f4743Campbell Barton set(HAVE_POPPLER OFF)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton set(ENABLE_POPPLER_CAIRO OFF)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonlist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonadd_definitions(${POPPLER_DEFINITIONS})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonif(WITH_LIBWPG)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton find_package(LibWPG)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton if(LIBWPG_FOUND)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton set(WITH_LIBWPG01 ${LIBWPG01_FOUND})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton set(WITH_LIBWPG02 ${LIBWPG02_FOUND})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton add_definitions(${LIBWPG_DEFINITIONS})
099c4fb891bff5187b622510630ed3362b2fb123Campbell Barton set(WITH_LIBWPG OFF)
b3ee2e647c9b62254ce35e5d8e830441b2368096bryceFIND_PACKAGE(JPEG REQUIRED)
b3ee2e647c9b62254ce35e5d8e830441b2368096bryce#IF(JPEG_FOUND)
b3ee2e647c9b62254ce35e5d8e830441b2368096bryce #INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
b3ee2e647c9b62254ce35e5d8e830441b2368096bryce #TARGET_LINK_LIBRARIES(mpo ${JPEG_LIBRARIES})
b3ee2e647c9b62254ce35e5d8e830441b2368096brycelist(APPEND INKSCAPE_INCS_SYS ${JPEG_INCLUDE_DIR})
b3ee2e647c9b62254ce35e5d8e830441b2368096brycelist(APPEND INKSCAPE_LIBS ${JPEG_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(PNG REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(Popt REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${POPT_DEFINITIONS})
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton find_package(DBus REQUIRED)
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton if(DBUS_FOUND)
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
a9364748fcbe81592d380ffa00b8ec000e308c5fCampbell Barton set(WITH_DBUS OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# CMake's builtin
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton# Include dependencies:
f47b2b3d3ec4743574380b7cf46d1c75cf6d252eCampbell Barton# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
4666b23d22584eff7fc4e22649fe8172b4f0bd61Campbell Bartonfind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDK_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDKMM_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDKCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIB_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIBCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIBMM_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GTK_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GTKMM_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_ATK_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_ATKMM_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_PANGO_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_PANGOMM_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_CAIRO_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_CAIROMM_INCLUDE_DIR}
f47b2b3d3ec4743574380b7cf46d1c75cf6d252eCampbell Barton ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GIOMM_INCLUDE_DIR}
5ad07d9f8a12d76d24a6a8f60f4caa29f2265555Shlomi Fish ${GTK2_GIOMMCONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_SIGC++_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDK_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDKMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GDK_PIXBUF_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIB_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GLIBMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GTK_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GTKMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_ATK_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_ATKMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_PANGO_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_PANGOMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_CAIRO_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_CAIROMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_GIOMM_LIBRARY}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${GTK2_SIGC++_LIBRARY}
d8c8be7181ee60a1161641c60c946ed17b80fec7Campbell Barton ${GTK2_GOBJECT_LIBRARY}
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Bartonfind_package(Freetype REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Bartonlist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(Boost REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(ASPELL)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonif(ASPELL_FOUND)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton add_definitions(${ASPELL_DEFINITIONS})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton set(HAVE_ASPELL TRUE)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Bartonif(WITH_GTKSPELL)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton find_package(GtkSpell)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton if(GTKSPELL_FOUND)
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton add_definitions(${GTKSPELL_DEFINITIONS})
c43e8c459ef8a48adf6b336c1a8a13cfe0415065Campbell Barton set(WITH_GTKSPELL ${GTKSPELL_FOUND})
1b4e05608c403a2f2b769fe4823d035cf89111dfbryce#find_package(OpenSSL)
1b4e05608c403a2f2b769fe4823d035cf89111dfbryce#list(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
1b4e05608c403a2f2b769fe4823d035cf89111dfbryce#list(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(LibXslt REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${LIBXSLT_DEFINITIONS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(LibXml2 REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${LIBXML2_DEFINITIONS})
e661c64a3dee1421ca5f20d596766d6e5ea5816bCampbell Bartonfind_package(OpenMP)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzif(OpenMP_FOUND)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz mark_as_advanced(OpenMP_C_FLAGS)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz mark_as_advanced(OpenMP_CXX_FLAGS)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonfind_package(ZLIB REQUIRED)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzfind_package(ImageMagick COMPONENTS MagickCore Magick++)
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruzif(ImageMagick_FOUND)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_MagickCore_INCLUDE_DIR})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz list(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
f80e1179eb1764d39518dc458f0e9d1188fc9417Campbell Bartoninclude(${CMAKE_CURRENT_LIST_DIR}/IncludeJava.cmake)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton# end Dependencies
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartoninclude_directories(${INKSCAPE_INCS})
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartoninclude_directories(SYSTEM ${INKSCAPE_INCS_SYS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonunset(INKSCAPE_INCS)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonunset(INKSCAPE_INCS_SYS)
f80e1179eb1764d39518dc458f0e9d1188fc9417Campbell Bartoninclude(${CMAKE_CURRENT_LIST_DIR}/ConfigChecks.cmake)