summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-03 20:27:45 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-08-03 20:27:45 +0000
commit519d421c41dc6effd3df60e78ae39914744b3541 (patch)
tree6a7d8b9196f1e88f888f6a8c596d001a7f4ad841 /CMakeScripts
parentFilters. Removing starting underscores in identifiers. (diff)
downloadinkscape-519d421c41dc6effd3df60e78ae39914744b3541.tar.gz
inkscape-519d421c41dc6effd3df60e78ae39914744b3541.zip
cmake: add option to build with LCMS
also build in Release mode by default. (bzr r10525)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake11
-rwxr-xr-xCMakeScripts/cmake_consistency_check.py16
2 files changed, 19 insertions, 8 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index b646c1679..1b68915ed 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -30,6 +30,17 @@ if(WITH_GNOME_VFS)
endif()
endif()
+if(ENABLE_LCMS)
+ find_package(GnomeVFS2)
+ if(LCMS_FOUND)
+ list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
+ list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
+ add_definitions(${LCMS_DEFINITIONS})
+ else()
+ set(ENABLE_LCMS OFF)
+ endif()
+endif()
+
find_package(BoehmGC REQUIRED)
list(APPEND INKSCAPE_INCS_SYS ${BOEHMGC_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${BOEHMGC_LIBRARIES})
diff --git a/CMakeScripts/cmake_consistency_check.py b/CMakeScripts/cmake_consistency_check.py
index 979667e4e..1e225d4ed 100755
--- a/CMakeScripts/cmake_consistency_check.py
+++ b/CMakeScripts/cmake_consistency_check.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# $Id: cmake_consistency_check.py 38450 2011-07-17 12:42:03Z campbellbarton $
+# $Id: cmake_consistency_check.py 38869 2011-07-31 03:15:37Z campbellbarton $
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
@@ -39,12 +39,12 @@ def replace_line(f, i, text, keep_indent=True):
file_handle = open(f, 'r')
data = file_handle.readlines()
file_handle.close()
-
+
l = data[i]
ws = l[:len(l) - len(l.lstrip())]
-
+
data[i] = "%s%s\n" % (ws, text)
-
+
file_handle = open(f, 'w')
file_handle.writelines(data)
file_handle.close()
@@ -182,13 +182,13 @@ def cmake_get_src(f):
if new_path_rel != l:
print("overly relative path:\n %s:%d\n %s\n %s" % (f, i, l, new_path_rel))
-
+
## Save time. just replace the line
# replace_line(f, i - 1, new_path_rel)
-
+
else:
raise Exception("non existant include %s:%d -> %s" % (f, i, new_file))
-
+
# print(new_file)
global_h.update(set(sources_h))
@@ -206,7 +206,7 @@ def cmake_get_src(f):
if ff not in sources_c:
print(" missing: " + ff)
'''
-
+
# reset
sources_h[:] = []
sources_c[:] = []