summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-13 02:33:03 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-06-13 02:33:03 +0000
commit2c5f1ac093f8d674dae8fc1cae88862d02468356 (patch)
treec3859232518b605f4c6fcd4bd09fb5a894076f40 /CMakeLists.txt
parentReplace deprecated GtkTooltips (diff)
downloadinkscape-2c5f1ac093f8d674dae8fc1cae88862d02468356.tar.gz
inkscape-2c5f1ac093f8d674dae8fc1cae88862d02468356.zip
cmake: now builds without having most of the source listed in 1 file.
(bzr r10278)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5fb5438ab..ec13d3324 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,20 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")
+# main source list
+set_property(GLOBAL PROPERTY inkscape_global_SRC "")
+macro (add_inkscape_source
+ sources)
+
+ foreach(_SRC ${ARGV})
+ get_filename_component(_ABS_SRC ${_SRC} ABSOLUTE)
+ set_property(GLOBAL APPEND PROPERTY inkscape_global_SRC ${_ABS_SRC})
+ endforeach()
+ unset(_SRC)
+ unset(_ABS_SRC)
+endmacro()
+
+
# XXX, TODO: use pkgconfig, This part is WIP to get building
# - campbell
@@ -76,6 +90,7 @@ add_definitions(-D_FORTIFY_SOURCE=2)
add_definitions(-DPOTRACE="potrace")
add_definitions(-DORBIT2=1)
add_definitions(-DHAVE_CONFIG_H)
+add_definitions(-DHAVE_CAIRO_PDF=1) # needed for src/libnrtype/Layout-TNG.h
add_definitions(-DHAVE_TR1_UNORDERED_SET) # XXX make an option!
add_definitions(-DVERSION="\\"0.48+devel\\"") # XXX make an option!
# XXX - end hackish defines!