merge changes done to the cmake-buildsystem from the sf.net windbus-svn trunk. tested...
[platform/upstream/dbus.git] / cmake / test / name-test / CMakeLists.txt
1 if (DBUS_BUILD_TESTS)
2
3 set (NAMEtest-DIR ../../../test/name-test)
4
5 add_definitions(-DDBUS_COMPILATION)
6
7 # there is also a test-names executable, don't know if this is the same
8 add_executable(test-names1 ${NAMEtest-DIR}/test-names.c)
9 target_link_libraries(test-names1 ${DBUS_1})
10 #install_targets(/bin test-names1)
11 ADD_TEST(test-names ${EXECUTABLE_OUTPUT_PATH}/test-names1)
12
13 add_executable(test-pending-call-dispatch ${NAMEtest-DIR}/test-pending-call-dispatch.c)
14 target_link_libraries(test-pending-call-dispatch ${DBUS_1})
15 #install_targets(/bin test-pending-call-dispatch)
16 ADD_TEST(test-pending-call-dispatch ${EXECUTABLE_OUTPUT_PATH}/test-pending_call-dispatch)
17
18 add_executable(test-thread-init ${NAMEtest-DIR}/test-threads-init.c)
19 target_link_libraries(test-thread-init ${DBUS_1})
20 #install_targets(/bin test-thread-init)
21 ADD_TEST(test-names ${EXECUTABLE_OUTPUT_PATH}/test-thread-init)
22
23 endif (DBUS_BUILD_TESTS)