DefineDependsandFlags.cmake revision f3f2b5271c51317a23df919fc903a5ec7f2c9df6
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonset(INKSCAPE_INCS
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${CMAKE_BINARY_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${PROJECT_SOURCE_DIR}
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton ${PROJECT_SOURCE_DIR}/src
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonset(INKSCAPE_LIBS "")
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# Files we include
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton# ----------------------------------------------------------------------------
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(GSL REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${GSL_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(GnomeVFS2)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${GNOMEVFS2_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(BoehmGC REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${BOEHMGC_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${BOEHMGC_DEFINITIONS})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(LibWPG)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(PNG REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${PNG_PNG_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(Popt REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${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:
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonfind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS
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}
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)
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Bartonlist(APPEND INKSCAPE_INCS ${FREETYPE_INCLUDE_DIRS})
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Bartonlist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(Boost REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${Boost_INCLUDE_DIRS})
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(ASPELL)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${ASPELL_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${ASPELL_DEFINITIONS})
26127d370fcaac55880cfde4598d5dcf3febef54verbalshadowfind_package(OpenSSL)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${OPENSSL_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(LibXslt REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${LIBXSLT_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${LIBXSLT_DEFINITIONS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(LibXml2 REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${LIBXML2_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonadd_definitions(${LIBXML2_DEFINITIONS})
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonfind_package(OpenMP REQUIRED) # cmake's
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonset(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonset(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonif(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Barton set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonmark_as_advanced(OpenMP_C_FLAGS)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartonmark_as_advanced(OpenMP_CXX_FLAGS)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonfind_package(ZLIB REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${ZLIB_INCLUDE_DIRS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonfind_package(ImageMagick COMPONENTS MagickCore Magick++ REQUIRED)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_INCS ${ImageMagick_MagickCore_INCLUDE_DIR})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonlist(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartoninclude(IncludeJava)
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Barton# end Dependencies
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton# message(FATAL_ERROR "Whee: ${INKSCAPE_INCS}")
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton# message(FATAL_ERROR "Whee: ${INKSCAPE_LIBS}")
f3f2b5271c51317a23df919fc903a5ec7f2c9df6Campbell Barton# message(FATAL_ERROR "Whee: ${INKSCAPE_LINK_DIRS}")
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartoninclude_directories(${INKSCAPE_INCS})
71ea20454af9348248ee3726f4fb8edb69e07677Campbell Bartonunset(INKSCAPE_INCS)
874cad03a8450ed3464f6dfae2eb16108bec5bbdCampbell Bartoninclude(ConfigChecks)