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