8N/Aset(INKSCAPE_LIBS "")
8N/Aset(INKSCAPE_INCS "")
8N/Aset(INKSCAPE_INCS_SYS "")
8N/Alist(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR}
8N/A ${PROJECT_SOURCE_DIR}/src
8N/A # generated includes
8N/A ${CMAKE_BINARY_DIR}/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/A list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
65N/A if(DEFINED ENV{CMAKE_PREFIX_PATH})
262N/A # Adding the library search path explicitly seems not required
24N/A # Cmake then can rely on the hard-coded paths in its modules.
8N/A # Only prepend search path if $CMAKE_PREFIX_PATH is defined:
65N/A list(APPEND INKSCAPE_LIBS "-L$ENV{CMAKE_PREFIX_PATH}/lib") # FIXME
516N/A list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
416N/A list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
95N/A list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
95N/A if(${GTK+_2.0_TARGET} MATCHES "x11")
1183N/A # only link X11 if using X11 backend of GTK2
416N/A list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-ldl") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
65N/A list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
574N/A list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
8N/A list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
1182N/A # FIXME: should depend on availability of OpenMP support (see below) (?)
1190N/A list(APPEND INKSCAPE_LIBS "-lgomp") # FIXME
1182N/Alist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
1182N/A list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
1182N/A list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
635N/A list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
1190N/A list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
1182N/A add_definitions(${LCMS2_DEFINITIONS})
664N/A list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
664N/A list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
574N/A add_definitions(${LCMS_DEFINITIONS})
574N/Afind_package(Iconv REQUIRED)
792N/Alist(APPEND INKSCAPE_INCS_SYS ${ICONV_INCLUDE_DIRS})
1016N/Alist(APPEND INKSCAPE_LIBS ${ICONV_LIBRARIES})
792N/Aadd_definitions(${ICONV_DEFINITIONS})
58N/Afind_package(Intl REQUIRED)
50N/Alist(APPEND INKSCAPE_INCS_SYS ${Intl_INCLUDE_DIRS})
50N/Alist(APPEND INKSCAPE_LIBS ${Intl_LIBRARIES})
50N/Aadd_definitions(${Intl_DEFINITIONS})
574N/Afind_package(BoehmGC REQUIRED)
1182N/Alist(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
1182N/Alist(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
574N/Aadd_definitions(${BOEHMGC_DEFINITIONS})
792N/A find_package(PopplerCairo)
792N/A if(ENABLE_POPPLER_CAIRO)
792N/A if(POPPLER_CAIRO_FOUND AND POPPLER_GLIB_FOUND)
792N/A set(HAVE_POPPLER_CAIRO ON)
792N/A if(POPPLER_GLIB_FOUND AND CAIRO_SVG_FOUND)
792N/A set(HAVE_POPPLER_GLIB ON)
792N/A if(POPPLER_VERSION VERSION_GREATER "0.8.3" OR
574N/A POPPLER_VERSION VERSION_EQUAL "0.8.3")
635N/A set(POPPLER_NEW_GFXFONT ON)
1190N/A if(POPPLER_VERSION VERSION_GREATER "0.12.2" OR
664N/A POPPLER_VERSION VERSION_EQUAL "0.12.2")
1190N/A set(POPPLER_NEW_COLOR_SPACE_API ON)
815N/A if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
1183N/A POPPLER_VERSION VERSION_EQUAL "0.26.0")
1183N/A set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
65N/A if(POPPLER_VERSION VERSION_GREATER "0.29.0" OR
232N/A POPPLER_VERSION VERSION_EQUAL "0.29.0")
232N/A set(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API ON)
355N/A if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
575N/A POPPLER_VERSION VERSION_EQUAL "0.15.1")
575N/A set(POPPLER_NEW_GFXPATCH ON)
575N/A if(POPPLER_VERSION VERSION_GREATER "0.20.0" OR
575N/A POPPLER_VERSION VERSION_EQUAL "0.20.0")
58N/A set(POPPLER_NEW_ERRORAPI ON)
1182N/A set(ENABLE_POPPLER_CAIRO OFF)
262N/A set(ENABLE_POPPLER_CAIRO OFF)
262N/Alist(APPEND INKSCAPE_INCS_SYS ${POPPLER_INCLUDE_DIRS})
1190N/Alist(APPEND INKSCAPE_LIBS ${POPPLER_LIBRARIES})
262N/Aadd_definitions(${POPPLER_DEFINITIONS})
1190N/A set(WITH_LIBWPG01 ${LIBWPG-0.1_FOUND})
1182N/A set(WITH_LIBWPG02 ${LIBWPG-0.2_FOUND})
58N/A set(WITH_LIBWPG03 ${LIBWPG-0.3_FOUND})
1190N/A list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
1183N/A list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
71N/A add_definitions(${LIBWPG_DEFINITIONS})
71N/A set(WITH_LIBWPG OFF)
71N/A find_package(LibVisio)
71N/A set(WITH_LIBVISIO00 ${LIBVISIO-0.0_FOUND})
71N/A set(WITH_LIBVISIO01 ${LIBVISIO-0.1_FOUND})
24N/A list(APPEND INKSCAPE_INCS_SYS ${LIBVISIO_INCLUDE_DIRS})
1190N/A list(APPEND INKSCAPE_LIBS ${LIBVISIO_LIBRARIES})
8N/A add_definitions(${LIBVISIO_DEFINITIONS})
95N/A find_package(LibCDR)
95N/A set(WITH_LIBCDR00 ${LIBCDR-0.0_FOUND})
95N/A set(WITH_LIBCDR01 ${LIBCDR-0.1_FOUND})
95N/A list(APPEND INKSCAPE_INCS_SYS ${LIBCDR_INCLUDE_DIRS})
95N/A list(APPEND INKSCAPE_LIBS ${LIBCDR_LIBRARIES})
95N/A add_definitions(${LIBCDR_DEFINITIONS})
95N/AFIND_PACKAGE(JPEG REQUIRED)
95N/A #INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
95N/A #TARGET_LINK_LIBRARIES(mpo ${JPEG_LIBRARIES})
95N/Alist(APPEND INKSCAPE_INCS_SYS ${JPEG_INCLUDE_DIR})
579N/Alist(APPEND INKSCAPE_LIBS ${JPEG_LIBRARIES})
579N/Afind_package(PNG REQUIRED)
575N/Alist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
575N/Alist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
95N/Afind_package(Popt REQUIRED)
95N/Alist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
95N/Alist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
355N/Aadd_definitions(${POPT_DEFINITIONS})
95N/A find_package(DBus REQUIRED)
355N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
355N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
347N/A list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
347N/A if(EXISTS "${GMOCK_DIR}" AND IS_DIRECTORY "${GMOCK_DIR}")
99N/A# ----------------------------------------------------------------------------
95N/A# ----------------------------------------------------------------------------
355N/A# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
355N/Afind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
355N/Alist(APPEND INKSCAPE_INCS_SYS
355N/A ${GTK2_GDK_INCLUDE_DIR}
355N/A ${GTK2_GDKMM_INCLUDE_DIR}
355N/A ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
95N/A ${GTK2_GDKCONFIG_INCLUDE_DIR}
95N/A ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
355N/A ${GTK2_GLIB_INCLUDE_DIR}
95N/A ${GTK2_GLIBCONFIG_INCLUDE_DIR}
95N/A ${GTK2_GLIBMM_INCLUDE_DIR}
815N/A ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
298N/A ${GTK2_GTK_INCLUDE_DIR}
176N/A ${GTK2_GTKMM_INCLUDE_DIR}
176N/A ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
176N/A ${GTK2_ATK_INCLUDE_DIR}
815N/A ${GTK2_ATKMM_INCLUDE_DIR}
459N/A ${GTK2_PANGO_INCLUDE_DIR}
664N/A ${GTK2_PANGOMM_INCLUDE_DIR}
516N/A ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
516N/A ${GTK2_CAIRO_INCLUDE_DIR}
1182N/A ${GTK2_CAIROMM_INCLUDE_DIR}
1182N/A ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
516N/A ${GTK2_GIOMM_INCLUDE_DIR}
516N/A ${GTK2_GIOMMCONFIG_INCLUDE_DIR}
516N/A ${GTK2_SIGC++_INCLUDE_DIR}
516N/A ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
516N/Alist(APPEND INKSCAPE_LIBS
516N/A ${GTK2_GDK_PIXBUF_LIBRARY}
212N/A ${GTK2_PANGOMM_LIBRARY}
212N/A ${GTK2_CAIROMM_LIBRARY}
212N/A ${GTK2_GOBJECT_LIBRARY}
1190N/Afind_package(Freetype REQUIRED)
314N/Alist(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
314N/Alist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
314N/Afind_package(Boost REQUIRED)
314N/Alist(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
1183N/A# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
314N/A list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
314N/A list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
1183N/A add_definitions(${ASPELL_DEFINITIONS})
592N/A list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
1182N/A list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
1182N/A add_definitions(${GTKSPELL_DEFINITIONS})
765N/A#list(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
765N/A#list(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
765N/Afind_package(LibXslt REQUIRED)
765N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
765N/Alist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
792N/Aadd_definitions(${LIBXSLT_DEFINITIONS})
792N/Afind_package(LibXml2 REQUIRED)
792N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
792N/Alist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
792N/Aadd_definitions(${LIBXML2_DEFINITIONS})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
mark_as_advanced(OpenMP_C_FLAGS)
mark_as_advanced(OpenMP_CXX_FLAGS)
find_package(ZLIB REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
find_package(ImageMagick COMPONENTS MagickCore Magick++)
# the component-specific paths apparently fail to get detected correctly
# on some linux distros (or with older Cmake versions).
# Use variables which list all include dirs and libraries instead:
list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${ImageMagick_LIBRARIES})
# TODO: Cmake's ImageMagick module misses required defines for newer
# versions of ImageMagick. See also:
#add_definitions(-DMAGICKCORE_HDRI_ENABLE=0) # FIXME (version check?)
#add_definitions(-DMAGICKCORE_QUANTUM_DEPTH=16) # FIXME (version check?)
set(WITH_IMAGE_MAGICK OFF) # enable 'Extensions > Raster'
list(REMOVE_DUPLICATES INKSCAPE_LIBS)
list(REMOVE_DUPLICATES INKSCAPE_INCS_SYS)
include_directories(${INKSCAPE_INCS})
include_directories(SYSTEM ${INKSCAPE_INCS_SYS})