From b76fee3746e1d79b4c8642c6863d52f9ed55c07a Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 11 Feb 2016 03:27:47 +0100 Subject: [PATCH 1/2] Add tool dbus-run-session on linux to cmake build system. It is required for running tests in test/name-test. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93976 --- cmake/tools/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/tools/CMakeLists.txt b/cmake/tools/CMakeLists.txt index 6a2e999..df1b59a 100644 --- a/cmake/tools/CMakeLists.txt +++ b/cmake/tools/CMakeLists.txt @@ -77,5 +77,13 @@ add_executable(dbus-monitor ${dbus_monitor_SOURCES}) target_link_libraries(dbus-monitor ${DBUS_LIBRARIES}) install_targets(/bin dbus-monitor ) +if(NOT WIN32) + add_executable(dbus-run-session ../../tools/dbus-run-session.c) + target_link_libraries(dbus-run-session dbus-internal) + + get_target_property(DBUS_RUN_SESSION dbus-run-session LOCATION) + set(DBUS_RUN_SESSION ${DBUS_RUN_SESSION} PARENT_SCOPE) +endif() + # create the /var/lib/dbus directory for dbus-uuidgen install(DIRECTORY DESTINATION var/lib/dbus) -- 2.6.2