DefineDependsandFlags.cmake revision 03872de2909772bb7a3df623f780e4ebb41eef37
8N/A
8N/Aset(INKSCAPE_LIBS "")
8N/Aset(INKSCAPE_INCS "")
8N/Aset(INKSCAPE_INCS_SYS "")
8N/A
8N/Alist(APPEND INKSCAPE_INCS
8N/A ${PROJECT_SOURCE_DIR}
8N/A ${PROJECT_SOURCE_DIR}/src
8N/A
8N/A # generated includes
8N/A ${CMAKE_BINARY_DIR}/include
8N/A)
8N/A
8N/A# ----------------------------------------------------------------------------
8N/A# Files we include
8N/A# ----------------------------------------------------------------------------
8N/A
8N/Afind_package(GSL REQUIRED)
8N/Alist(APPEND INKSCAPE_INCS_SYS ${GSL_INCLUDE_DIRS})
8N/Alist(APPEND INKSCAPE_LIBS ${GSL_LIBRARIES})
65N/Aif (WIN32)
8N/A list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-lgobject-2.0") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-lintl.dll") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0.dll") # FIXME
65N/A list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0.dll") # FIXME
65N/A list(APPEND INKSCAPE_LIBS "-lpangowin32-1.0.dll") # FIXME
65N/A list(APPEND INKSCAPE_LIBS "-lgthread-2.0.dll") # FIXME
262N/Aendif()
8N/Alist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
24N/A
8N/Aif(WITH_GNOME_VFS)
65N/A find_package(GnomeVFS2)
58N/A if(GNOMEVFS2_FOUND)
516N/A list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
416N/A list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
95N/A else()
95N/A set(WITH_GNOME_VFS OFF)
416N/A endif()
516N/Aendif()
8N/A
8N/Aif(ENABLE_LCMS)
65N/A find_package(GnomeVFS2)
574N/A if(LCMS_FOUND)
8N/A list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
290N/A list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
815N/A add_definitions(${LCMS_DEFINITIONS})
635N/A else()
635N/A set(ENABLE_LCMS OFF)
714N/A endif()
635N/Aendif()
635N/A
635N/Afind_package(BoehmGC REQUIRED)
574N/Alist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
435N/Alist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
435N/Aadd_definitions(${BOEHMGC_DEFINITIONS})
435N/A
24N/Afind_package(PopplerCairo)
65N/Aif(POPPLER_FOUND)
75N/A set(HAVE_POPPLER ON)
75N/A if(ENABLE_POPPLER_CAIRO)
75N/A if(POPPLER_CAIRO_FOUND AND POPPLER_GLIB_FOUND)
778N/A set(HAVE_POPPLER_CAIRO ON)
314N/A endif()
75N/A if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
574N/A set(HAVE_POPPLER_GLIB ON)
664N/A endif()
664N/A endif()
749N/A if(POPPLER_VERSION VERSION_GREATER "0.8.3" OR
664N/A POPPLER_VERSION VERSION_EQUAL "0.8.3")
664N/A set(POPPLER_NEW_GFXFONT ON)
574N/A endif()
574N/A if(POPPLER_VERSION VERSION_GREATER "0.12.2" OR
574N/A POPPLER_VERSION VERSION_EQUAL "0.12.2")
574N/A set(POPPLER_NEW_COLOR_SPACE_API ON)
574N/A endif()
792N/A if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
792N/A POPPLER_VERSION VERSION_EQUAL "0.15.1")
574N/A set(POPPLER_NEW_GFXPATCH ON)
574N/A endif()
792N/Aelse()
1016N/A set(ENABLE_POPPLER_CAIRO OFF)
792N/Aendif()
1016N/A
58N/Alist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
50N/Alist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
50N/Aadd_definitions(${POPPLER_DEFINITIONS})
50N/A
24N/Aif(WITH_LIBWPG)
574N/A find_package(LibWPG)
574N/A if(LIBWPG_FOUND)
574N/A set(WITH_LIBWPG01 ${LIBWPG01_FOUND})
822N/A set(WITH_LIBWPG02 ${LIBWPG02_FOUND})
792N/A list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
792N/A list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
792N/A add_definitions(${LIBWPG_DEFINITIONS})
792N/A else()
792N/A set(WITH_LIBWPG OFF)
792N/A endif()
792N/Aendif()
792N/A
792N/Afind_package(PNG REQUIRED)
792N/Alist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
792N/Alist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
822N/A
792N/Afind_package(Popt REQUIRED)
574N/Alist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
635N/Alist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
574N/Aadd_definitions(${POPT_DEFINITIONS})
574N/A
664N/Aif(WITH_DBUS)
71N/A find_package(DBus REQUIRED)
24N/A if(DBUS_FOUND)
815N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
8N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
65N/A list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
65N/A else()
232N/A set(WITH_DBUS OFF)
232N/A endif()
71N/Aendif()
355N/A
575N/A# ----------------------------------------------------------------------------
575N/A# CMake's builtin
575N/A# ----------------------------------------------------------------------------
575N/A
575N/A# Include dependencies:
58N/A# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
1016N/Afind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
575N/Alist(APPEND INKSCAPE_INCS_SYS
71N/A ${GTK2_GDK_INCLUDE_DIR}
24N/A ${GTK2_GDKMM_INCLUDE_DIR}
262N/A ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
262N/A ${GTK2_GDKCONFIG_INCLUDE_DIR}
355N/A ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
262N/A ${GTK2_GLIB_INCLUDE_DIR}
262N/A ${GTK2_GLIBCONFIG_INCLUDE_DIR}
262N/A ${GTK2_GLIBMM_INCLUDE_DIR}
262N/A ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
262N/A ${GTK2_GTK_INCLUDE_DIR}
262N/A ${GTK2_GTKMM_INCLUDE_DIR}
65N/A ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
65N/A ${GTK2_ATK_INCLUDE_DIR}
262N/A ${GTK2_ATKMM_INCLUDE_DIR}
58N/A ${GTK2_PANGO_INCLUDE_DIR}
416N/A ${GTK2_PANGOMM_INCLUDE_DIR}
71N/A ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
355N/A ${GTK2_CAIRO_INCLUDE_DIR}
355N/A ${GTK2_CAIROMM_INCLUDE_DIR}
355N/A ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
355N/A ${GTK2_GIOMM_INCLUDE_DIR}
508N/A ${GTK2_SIGC++_INCLUDE_DIR}
355N/A ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
355N/A)
71N/A
71N/Alist(APPEND INKSCAPE_LIBS
71N/A ${GTK2_GDK_LIBRARY}
71N/A ${GTK2_GDKMM_LIBRARY}
75N/A ${GTK2_GDK_PIXBUF_LIBRARY}
71N/A ${GTK2_GLIB_LIBRARY}
71N/A ${GTK2_GLIBMM_LIBRARY}
71N/A ${GTK2_GTK_LIBRARY}
71N/A ${GTK2_GTKMM_LIBRARY}
24N/A ${GTK2_ATK_LIBRARY}
24N/A ${GTK2_ATKMM_LIBRARY}
8N/A ${GTK2_PANGO_LIBRARY}
8N/A ${GTK2_PANGOMM_LIBRARY}
212N/A ${GTK2_CAIRO_LIBRARY}
95N/A ${GTK2_CAIROMM_LIBRARY}
95N/A ${GTK2_GIOMM_LIBRARY}
95N/A ${GTK2_SIGC++_LIBRARY}
95N/A
95N/A)
95N/A
95N/A
95N/Afind_package(Freetype REQUIRED)
95N/Alist(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
95N/Alist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
95N/A
815N/Afind_package(Boost REQUIRED)
459N/Alist(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
95N/A# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
314N/A
95N/Afind_package(ASPELL)
95N/Aif(ASPELL_FOUND)
95N/A list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
95N/A list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
95N/A add_definitions(${ASPELL_DEFINITIONS})
95N/A set(HAVE_ASPELL TRUE)
579N/Aendif()
579N/A
579N/Aif(WITH_GTKSPELL)
575N/A find_package(GtkSpell)
575N/A if(GTKSPELL_FOUND)
95N/A list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
95N/A list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
95N/A add_definitions(${GTKSPELL_DEFINITIONS})
95N/A endif()
355N/A set(WITH_GTKSPELL ${GTKSPELL_FOUND})
355N/Aendif()
355N/A
95N/Afind_package(OpenSSL)
355N/Alist(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
355N/Alist(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
355N/A
347N/Afind_package(LibXslt REQUIRED)
347N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
347N/Alist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
347N/Aadd_definitions(${LIBXSLT_DEFINITIONS})
347N/A
347N/Afind_package(LibXml2 REQUIRED)
347N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
878N/Alist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
878N/Aadd_definitions(${LIBXML2_DEFINITIONS})
347N/A
416N/Afind_package(OpenMP)
416N/Aif(OpenMP_FOUND)
99N/A set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
878N/A set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
95N/A if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
355N/A set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
355N/A endif()
355N/A mark_as_advanced(OpenMP_C_FLAGS)
355N/A mark_as_advanced(OpenMP_CXX_FLAGS)
508N/Aendif()
355N/A
355N/Afind_package(ZLIB REQUIRED)
355N/Alist(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
355N/Alist(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
355N/A
355N/Afind_package(ImageMagick COMPONENTS MagickCore Magick++)
355N/Aif(ImageMagick_FOUND)
355N/A list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_MagickCore_INCLUDE_DIR})
355N/A list(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
95N/Aendif()
95N/A
355N/Ainclude(${CMAKE_CURRENT_LIST_DIR}/IncludeJava.cmake)
95N/A# end Dependencies
95N/A
815N/A
298N/A# C/C++ Flags
176N/Ainclude_directories(${INKSCAPE_INCS})
176N/Ainclude_directories(SYSTEM ${INKSCAPE_INCS_SYS})
176N/A
815N/Aunset(INKSCAPE_INCS)
459N/Aunset(INKSCAPE_INCS_SYS)
664N/A
516N/Ainclude(${CMAKE_CURRENT_LIST_DIR}/ConfigChecks.cmake)
516N/A