summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/DefineDependsandFlags.cmake
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-08 04:16:55 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-07-08 04:16:55 +0000
commitd7f2c863cc8e8543cac3d11cd6017d6f76c82050 (patch)
tree20fbc7af311841567f79de19458457f108638360 /CMakeScripts/DefineDependsandFlags.cmake
parentfix for building without LCMS (diff)
downloadinkscape-d7f2c863cc8e8543cac3d11cd6017d6f76c82050.tar.gz
inkscape-d7f2c863cc8e8543cac3d11cd6017d6f76c82050.zip
fix for building with dbus and cmake
(bzr r10426)
Diffstat (limited to '')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index 88c361020..40c759741 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -40,6 +40,17 @@ list(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
add_definitions(${POPT_DEFINITIONS})
+if(WITH_DBUS)
+ find_package(DBus REQUIRED)
+ if(DBUS_FOUND)
+ list(APPEND INKSCAPE_INCS_SYS ${DBUS_INCLUDE_DIR})
+ list(APPEND INKSCAPE_INCS_SYS ${DBUS_ARCH_INCLUDE_DIR})
+ list(APPEND INKSCAPE_LIBS ${DBUS_LIBRARIES})
+ else()
+ set(WITH_DBUS OFF)
+ endif()
+endif()
+
# ----------------------------------------------------------------------------
# CMake's builtin
# ----------------------------------------------------------------------------