1if (DBUS_BUILD_TESTS) 2 3set (NAMEtest-DIR ../../../test/name-test) 4 5add_definitions(-DDBUS_COMPILATION) 6 7add_executable(test-pending-call-dispatch ${NAMEtest-DIR}/test-pending-call-dispatch.c) 8target_link_libraries(test-pending-call-dispatch ${DBUS_INTERNAL_LIBRARIES}) 9ADD_TEST(test-pending-call-dispatch ${EXECUTABLE_OUTPUT_PATH}/test-pending-call-dispatch) 10 11add_executable(test-pending-call-timeout ${NAMEtest-DIR}/test-pending-call-timeout.c) 12target_link_libraries(test-pending-call-timeout ${DBUS_INTERNAL_LIBRARIES}) 13ADD_TEST(test-pending-call-timeout ${EXECUTABLE_OUTPUT_PATH}/test-pending-call-timeout) 14 15add_executable(test-thread-init ${NAMEtest-DIR}/test-threads-init.c) 16target_link_libraries(test-thread-init ${DBUS_INTERNAL_LIBRARIES}) 17ADD_TEST(test-thread-init ${EXECUTABLE_OUTPUT_PATH}/test-thread-init) 18 19add_executable(test-ids ${NAMEtest-DIR}/test-ids.c) 20target_link_libraries(test-ids ${DBUS_INTERNAL_LIBRARIES}) 21ADD_TEST(test-ids ${EXECUTABLE_OUTPUT_PATH}/test-ids) 22 23add_executable(test-shutdown ${NAMEtest-DIR}/test-shutdown.c) 24target_link_libraries(test-shutdown dbus-testutils) 25ADD_TEST(test-shutdown ${EXECUTABLE_OUTPUT_PATH}/test-shutdown) 26 27add_executable(test-privserver ${NAMEtest-DIR}/test-privserver.c) 28target_link_libraries(test-privserver dbus-testutils) 29ADD_TEST(test-privserver ${EXECUTABLE_OUTPUT_PATH}/test-privserver) 30 31add_executable(test-privserver-client ${NAMEtest-DIR}/test-privserver-client.c) 32target_link_libraries(test-privserver-client dbus-testutils) 33ADD_TEST(test-privserver-client ${EXECUTABLE_OUTPUT_PATH}/test-privserver-client) 34 35add_executable(test-autolaunch ${NAMEtest-DIR}/test-autolaunch.c) 36target_link_libraries(test-autolaunch dbus-testutils) 37ADD_TEST(test-autolaunch ${EXECUTABLE_OUTPUT_PATH}/test-autolaunch) 38 39endif (DBUS_BUILD_TESTS) 40