]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Define TEST_BUS_LAUNCH_BINARY for cmake to keep in sync with autotools.
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 8 Jan 2014 00:45:56 +0000 (01:45 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 9 Jan 2014 23:41:02 +0000 (00:41 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/CMakeLists.txt
cmake/config.h.cmake
cmake/test/CMakeLists.txt

index db0352010f0e5b57bcd4e9d551a053f3084f4a42..c8a683459372ea3351feb34c7f4f65d09c1b9d46 100644 (file)
@@ -467,6 +467,7 @@ if (DBUS_BUILD_TESTS)
     set(DBUS_TEST_DATA ${CMAKE_BINARY_DIR}/test/data)
     set(TEST_SOCKET_DIR ${DBUS_SESSION_SOCKET_DIR} )
     set(TEST_LAUNCH_HELPER_BINARY ${EXECUTABLE_OUTPUT_PATH}/dbus-daemon-launch-helper-test)
+    set(TEST_BUS_LAUNCH_BINARY ${EXECUTABLE_OUTPUT_PATH}/dbus-launch${EXEEXT})
     if (UNIX)
         set (TEST_LISTEN "unix:tmpdir=${TEST_SOCKET_DIR}")
     endif (UNIX)
index 3735560955db966d0f0b349676559140e85a490b..119ed3962b6fd0aca30e06f82ac8711540a129c5 100644 (file)
@@ -32,6 +32,7 @@
 // test binaries
 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
 #define DBUS_EXEEXT "@EXEEXT@"
+#cmakedefine TEST_BUS_LAUNCH_BINARY "@TEST_BUS_LAUNCH_BINARY@"
 
 /* Some dbus features */
 #cmakedefine DBUS_ENABLE_ANSI 1
index b3e039015736273de5bcec33831587b070bb7b50..e29a4993d5792a0f075a34f4e0d622808652e5d4 100644 (file)
@@ -194,7 +194,3 @@ FOREACH(FILE ${FILES})
         MESSAGE("FROM: ${FILE}\nTO: ${TARGET}\n")
     ENDIF (CONFIG_VERBOSE)
 ENDFOREACH(FILE)
-
-# todo: for installation the TEST_..._BINARY variables must reflect the 
-#       installation dir or has to be defined relative
-#