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})
1297N/A list(APPEND INKSCAPE_LIBS "-L$ENV{DEVLIBS_PATH}/lib") # FIXME
8N/A if(DEFINED ENV{CMAKE_PREFIX_PATH})
24N/A # Adding the library search path explicitly seems not required
65N/A # Cmake then can rely on the hard-coded paths in its modules.
58N/A # Only prepend search path if $CMAKE_PREFIX_PATH is defined:
1297N/A list(APPEND INKSCAPE_LIBS "-L$ENV{CMAKE_PREFIX_PATH}/lib") # FIXME
516N/A # TODO: verify whether linking the next two libs explicitly is always
416N/A # required, or only if MacPorts is installed in custom prefix:
95N/A list(APPEND INKSCAPE_LIBS "-liconv") # FIXME
95N/A list(APPEND INKSCAPE_LIBS "-lintl") # FIXME
416N/A list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
516N/A list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
1195N/A list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
8N/A if(${GTK+_2.0_TARGET} MATCHES "x11")
8N/A # only link X11 if using X11 backend of GTK2
65N/A list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
574N/A elseif(${GTK+_2.0_TARGET} MATCHES "quartz")
8N/A # TODO: gtk-mac-integration (currently only useful for osxmenu branch)
290N/A # 1) add configure option (
ON/OFF) for gtk-mac-integration
815N/A # 2) add checks (GTK+ backend must be "quartz")
635N/A # 3) link relevant lib(s)
1182N/A list(APPEND INKSCAPE_LIBS "-ldl") # FIXME
1182N/A list(APPEND INKSCAPE_LIBS "-lpangocairo-1.0") # FIXME
1182N/A list(APPEND INKSCAPE_LIBS "-lpangoft2-1.0") # FIXME
1182N/A list(APPEND INKSCAPE_LIBS "-lfontconfig") # FIXME
1182N/A list(APPEND INKSCAPE_LIBS "-lX11") # FIXME
1182N/A # FIXME: should depend on availability of OpenMP support (see below) (?)
1182N/A list(APPEND INKSCAPE_LIBS "-lgomp") # FIXME
1183N/Alist(APPEND INKSCAPE_LIBS "-lgslcblas") # FIXME
635N/A list(APPEND INKSCAPE_INCS_SYS ${GNOMEVFS2_INCLUDE_DIR})
1190N/A list(APPEND INKSCAPE_LIBS ${GNOMEVFS-2_LIBRARY})
574N/A set(WITH_GNOME_VFS OFF)
574N/A list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
574N/A list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
1190N/A add_definitions(${LCMS2_DEFINITIONS})
574N/A list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
792N/A list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
1016N/A add_definitions(${LCMS_DEFINITIONS})
58N/A set(ENABLE_LCMS OFF)
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_LIBWPG-0.1 ${LIBWPG-0.1_FOUND})
1182N/A set(WITH_LIBWPG-0.2 ${LIBWPG-0.2_FOUND})
58N/A list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
1190N/A list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
1183N/A add_definitions(${LIBWPG_DEFINITIONS})
71N/AFIND_PACKAGE(JPEG REQUIRED)
71N/A #INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
71N/A #TARGET_LINK_LIBRARIES(mpo ${JPEG_LIBRARIES})
71N/Alist(APPEND INKSCAPE_INCS_SYS ${JPEG_INCLUDE_DIR})
24N/Alist(APPEND INKSCAPE_LIBS ${JPEG_LIBRARIES})
8N/Afind_package(PNG REQUIRED)
8N/Alist(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR})
212N/Alist(APPEND INKSCAPE_LIBS ${PNG_LIBRARY})
1297N/Alist(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
95N/Alist(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
95N/Aadd_definitions(${POPT_DEFINITIONS})
95N/A find_package(DBus REQUIRED)
95N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
95N/A list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
815N/A list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
95N/A# ----------------------------------------------------------------------------
95N/A# ----------------------------------------------------------------------------
579N/A# use patched version until GTK2_CAIROMMCONFIG_INCLUDE_DIR is added
575N/Afind_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
575N/Alist(APPEND INKSCAPE_INCS_SYS
95N/A ${GTK2_GDK_INCLUDE_DIR}
95N/A ${GTK2_GDKMM_INCLUDE_DIR}
95N/A ${GTK2_GDK_PIXBUF_INCLUDE_DIR}
95N/A ${GTK2_GDKCONFIG_INCLUDE_DIR}
355N/A ${GTK2_GDKMMCONFIG_INCLUDE_DIR}
355N/A ${GTK2_GLIB_INCLUDE_DIR}
355N/A ${GTK2_GLIBCONFIG_INCLUDE_DIR}
1297N/A ${GTK2_GLIBMMCONFIG_INCLUDE_DIR}
1297N/A ${GTK2_GTKMMCONFIG_INCLUDE_DIR}
1297N/A ${GTK2_PANGOMM_INCLUDE_DIR}
1297N/A ${GTK2_PANGOMMCONFIG_INCLUDE_DIR}
1297N/A ${GTK2_CAIROMM_INCLUDE_DIR}
1297N/A ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
1297N/A ${GTK2_GIOMMCONFIG_INCLUDE_DIR}
1297N/A ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
95N/Alist(APPEND INKSCAPE_LIBS
355N/A ${GTK2_GDK_PIXBUF_LIBRARY}
1190N/Afind_package(Freetype REQUIRED)
1183N/Alist(APPEND INKSCAPE_INCS_SYS ${FREETYPE_INCLUDE_DIRS})
99N/Alist(APPEND INKSCAPE_LIBS ${FREETYPE_LIBRARIES})
95N/Afind_package(Boost REQUIRED)
1195N/Alist(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})
355N/A# list(APPEND INKSCAPE_LIBS ${Boost_LIBRARIES})
355N/A list(APPEND INKSCAPE_INCS_SYS ${ASPELL_INCLUDE_DIR})
355N/A list(APPEND INKSCAPE_LIBS ${ASPELL_LIBRARIES})
355N/A add_definitions(${ASPELL_DEFINITIONS})
95N/A set(HAVE_ASPELL TRUE)
95N/A find_package(GtkSpell)
298N/A list(APPEND INKSCAPE_INCS_SYS ${GTKSPELL_INCLUDE_DIR})
176N/A list(APPEND INKSCAPE_LIBS ${GTKSPELL_LIBRARIES})
176N/A add_definitions(${GTKSPELL_DEFINITIONS})
815N/A set(WITH_GTKSPELL ${GTKSPELL_FOUND})
516N/A#list(APPEND INKSCAPE_INCS_SYS ${OPENSSL_INCLUDE_DIR})
1182N/A#list(APPEND INKSCAPE_LIBS ${OPENSSL_LIBRARIES})
516N/Afind_package(LibXslt REQUIRED)
516N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXSLT_INCLUDE_DIR})
516N/Alist(APPEND INKSCAPE_LIBS ${LIBXSLT_LIBRARIES})
516N/Aadd_definitions(${LIBXSLT_DEFINITIONS})
516N/Afind_package(LibXml2 REQUIRED)
516N/Alist(APPEND INKSCAPE_INCS_SYS ${LIBXML2_INCLUDE_DIR})
516N/Alist(APPEND INKSCAPE_LIBS ${LIBXML2_LIBRARIES})
1182N/Aadd_definitions(${LIBXML2_DEFINITIONS})
516N/A set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
516N/A set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
203N/A if(APPLE AND ${CMAKE_GENERATOR} MATCHES "Xcode")
203N/A set(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT "YES")
212N/A mark_as_advanced(OpenMP_C_FLAGS)
815N/A mark_as_advanced(OpenMP_CXX_FLAGS)
212N/Afind_package(ZLIB REQUIRED)
212N/Alist(APPEND INKSCAPE_INCS_SYS ${ZLIB_INCLUDE_DIRS})
212N/Alist(APPEND INKSCAPE_LIBS ${ZLIB_LIBRARIES})
212N/Afind_package(ImageMagick COMPONENTS MagickCore Magick++)
314N/A list(APPEND INKSCAPE_INCS_SYS ${ImageMagick_MagickCore_INCLUDE_DIR})
314N/A list(APPEND INKSCAPE_LIBS ${ImageMagick_Magick++_LIBRARY})
993N/A set(WITH_IMAGE_MAGICK ON) # enable 'Extensions > Raster'
314N/Ainclude_directories(${INKSCAPE_INCS})
1183N/Ainclude_directories(SYSTEM ${INKSCAPE_INCS_SYS})
435N/Aunset(INKSCAPE_INCS_SYS)