summaryrefslogtreecommitdiff
path: root/cmake/tools
diff options
context:
space:
mode:
authorRomain Pokrzywka <romain@kdab.com>2010-02-02 11:13:26 -0800
committerRalf Habacker <ralf.habacker@freenet.de>2010-02-07 00:32:39 +0100
commitce6951658577c0514c73c09d5847f1a30d45d158 (patch)
treed32fbe74503300ea5f1cf2c0f7e15ab517e2258f /cmake/tools
parentcffb66be40367b4d148b6d0da0655ccc103ea8ad (diff)
downloaddbus-ce6951658577c0514c73c09d5847f1a30d45d158.tar.gz
refactor the cmake build to match with autotools: only export client symbols in dbus-1 and use and internal library for the rest. Currently this library is statically linked to the apps but it can be made dynamic if wanted
Diffstat (limited to 'cmake/tools')
-rw-r--r--cmake/tools/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/tools/CMakeLists.txt b/cmake/tools/CMakeLists.txt
index 4f8c50a0..4d621191 100644
--- a/cmake/tools/CMakeLists.txt
+++ b/cmake/tools/CMakeLists.txt
@@ -1,5 +1,7 @@
project(tools)
+set(DBUS_LIBRARIES dbus-1 dbus-internal)
+
set (dbus_send_SOURCES
../../tools/dbus-print-message.c
../../tools/dbus-print-message.h
@@ -42,7 +44,7 @@ set (dbus_viewer_SOURCES
)
add_executable(dbus-send ${dbus_send_SOURCES})
-target_link_libraries(dbus-send ${DBUS_1})
+target_link_libraries(dbus-send ${DBUS_LIBRARIES})
install_targets(/bin dbus-send )
add_executable(dbus-launch ${dbus_launch_SOURCES})
@@ -53,7 +55,7 @@ endif (DBUS_BUILD_X11)
install_targets(/bin dbus-launch )
add_executable(dbus-monitor ${dbus_monitor_SOURCES})
-target_link_libraries(dbus-monitor ${DBUS_1})
+target_link_libraries(dbus-monitor ${DBUS_LIBRARIES})
install_targets(/bin dbus-monitor )
if(WIN32)