summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorsuv-lp <>2016-06-05 07:15:29 +0000
committerJazzyNico <nicoduf@yahoo.fr>2016-06-05 07:15:29 +0000
commitfec6b1b18c55d40409dec7b2504c9ec111a45295 (patch)
treebf618bd1268dcc5ff3f17b746b223faa06ba7c31 /CMakeScripts
parent[Bug #1545333] Remove obsolete poppler entries from cmake's template for conf... (diff)
downloadinkscape-fec6b1b18c55d40409dec7b2504c9ec111a45295.tar.gz
inkscape-fec6b1b18c55d40409dec7b2504c9ec111a45295.zip
[Bug #1545333] Convenience option (default: ON) for cmake builds to enable SVG2 and experimental LPEs
Fixed bugs: - https://launchpad.net/bugs/1545333 (bzr r14954)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index f2a6b5670..0f4ba46c6 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -262,6 +262,18 @@ if(WITH_DBUS)
endif()
endif()
+if(WITH_SVG2)
+ add_definitions(-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2)
+else()
+ add_definitions(-UWITH_MESH -UWITH_CSSBLEND -UWITH_CSSCOMPOSITE -UWITH_SVG2)
+endif()
+
+if(WITH_LPETOOL)
+ add_definitions(-DWITH_LPETOOL -DLPE_ENABLE_TEST_EFFECTS)
+else()
+ add_definitions(-UWITH_LPETOOL -ULPE_ENABLE_TEST_EFFECTS)
+endif()
+
if(WITH_GTEST)
if(EXISTS "${GMOCK_DIR}" AND IS_DIRECTORY "${GMOCK_DIR}")