summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-10-02 20:19:07 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-10-02 20:19:07 +0000
commite4c44f8b4674b88c0174270f27d61db808f66bc6 (patch)
tree1f32b22aab4963bf5b0a1c22a72acbe42e53f395 /CMakeLists.txt
parent2geom: update to c709d6b6780098d3e53363d925f7aee3c2640478 (diff)
downloadinkscape-e4c44f8b4674b88c0174270f27d61db808f66bc6.tar.gz
inkscape-e4c44f8b4674b88c0174270f27d61db808f66bc6.zip
CMake: Allow to build with GraphicsMagick instead of ImageMagick
For now we still default to ImageMagick, but we can fall-back to GraphicsMagick (e.g. if only ImageMagick 7 is available; add a check for this). To prefer GraphicsMagick despite a compatible version of ImageMagick use -DWITH_IMAGE_MAGICK=OFF when running CMake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2680fc033..c692f40be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,7 +103,8 @@ option(BUILD_SHARED_LIBS "Compile libraries as shared and not static" ON)
option(ENABLE_POPPLER "Compile with support of libpoppler" ON)
option(ENABLE_POPPLER_CAIRO "Compile with support of libpoppler-cairo for rendering PDF preview (depends on ENABLE_POPPLER)" ON)
-option(WITH_IMAGE_MAGICK "Compile with support of ImageMagick for raster extensions and image import resolution" ON)
+option(WITH_IMAGE_MAGICK "Compile with support of ImageMagick for raster extensions and image import resolution (requires ImageMagick 6; set to OFF if you prefer GraphicsMagick)" ON)
+option(WITH_GRAPHICS_MAGICK "Compile with support of GraphicsMagick for raster extensions and image import resolution" ON)
option(WITH_LIBCDR "Compile with support of libcdr for CorelDRAW Diagrams" ON)
option(WITH_LIBVISIO "Compile with support of libvisio for Microsoft Visio Diagrams" ON)
option(WITH_LIBWPG "Compile with support of libwpg for WordPerfect Graphics" ON)
@@ -290,6 +291,7 @@ message("GMOCK_PRESENT: ${GMOCK_PRESENT}")
message("WITH_DBUS: ${WITH_DBUS}")
message("WITH_GTKSPELL: ${WITH_GTKSPELL}")
message("WITH_IMAGE_MAGICK: ${WITH_IMAGE_MAGICK}")
+message("WITH_GRAPHICS_MAGICK: ${WITH_GRAPHICS_MAGICK}")
message("WITH_LIBCDR: ${WITH_LIBCDR}")
message("WITH_LIBVISIO: ${WITH_LIBVISIO}")
message("WITH_LIBWPG: ${WITH_LIBWPG}")