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 | |
1fdd03d2 | 14 | getsocket.cpp |
ab2a4234 KK |
15 | test_fixtures.hxx |
16 | ) | |
17 | include_directories(BEFORE | |
18 | ${CMAKE_SOURCE_DIR}/src | |
19 | ${CMAKE_CURRENT_SOURCE_DIR} | |
20 | ) | |
21 | ||
22 | # Executables | |
23 | add_executable(test ${test_SOURCES}) | |
24 | ||
25 | # Dependencies | |
26 | target_link_libraries(test libt2n ${Boost_SERIALIZATION_LIBRARIES} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) | |
27 | ||
28 | # Tests | |
29 | add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test) | |
30 | enable_testing() | |
31 | add_test(test test) |