DefineDependsandFlags.cmake revision 5ad07d9f8a12d76d24a6a8f60f4caa29f2265555
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_LIBS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonset(INKSCAPE_INCS_SYS "")
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${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})
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
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
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
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 set(WITH_GNOME_VFS OFF)
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 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 set(ENABLE_LCMS OFF)
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 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 if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(HAVE_POPPLER_GLIB ON)
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 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 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 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 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)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(ENABLE_POPPLER_CAIRO OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(HAVE_POPPLER OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(ENABLE_POPPLER_CAIRO OFF)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonlist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${POPPLER_DEFINITIONS})
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})
62d49bd575c4bfb0dba9e697f333c2bd2a615f93Jon A. Cruz set(WITH_LIBWPG OFF)
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})
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})
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})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton set(WITH_DBUS OFF)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Barton# CMake's builtin
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
include(${CMAKE_CURRENT_LIST_DIR}/IncludeJava.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/ConfigChecks.cmake)