DefineDependsandFlags.cmake revision f47b2b3d3ec4743574380b7cf46d1c75cf6d252e
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 Bartonlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(GnomeVFS2)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
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})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(LibWPG)
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})
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
f47b2b3d3ec4743574380b7cf46d1c75cf6d252eCampbell Bartonfind_package(GTK2_patched 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}
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}
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)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${ASPELL_DEFINITIONS})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(OpenSSL)
2464c7b8a032adea93b775d732db2eedf19f6098Campbell Bartonlist(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(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})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartoninclude(IncludeJava)
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)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartoninclude(ConfigChecks)