Commit | Line | Data |
---|---|---|
ab2a4234 KK |
1 | # Sources |
2 | set(test_SOURCES | |
3 | newserver.cpp | |
4 | callback.cpp | |
5 | cmdgroup.cpp | |
6 | comm.cpp | |
7 | hello.cpp | |
8 | reconnect.cpp | |
9 | reentrant.cpp | |
10 | serialize.cpp | |
11 | simplecmd.cpp | |
12 | timeout.cpp | |
13 | wrapper.cpp | |
14 | test_fixtures.hxx | |
15 | ) | |
16 | include_directories(BEFORE | |
17 | ${CMAKE_SOURCE_DIR}/src | |
18 | ${CMAKE_CURRENT_SOURCE_DIR} | |
19 | ) | |
20 | ||
21 | # Executables | |
22 | add_executable(test ${test_SOURCES}) | |
23 | ||
24 | # Dependencies | |
25 | target_link_libraries(test libt2n ${Boost_SERIALIZATION_LIBRARIES} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) | |
26 | ||
27 | # Tests | |
28 | add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test) | |
29 | enable_testing() | |
30 | add_test(test test) |