X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2FCMakeLists.txt;fp=test%2FCMakeLists.txt;h=66f7e7a0499e2d7efb15afde1c1ed2f12c0524cc;hp=0000000000000000000000000000000000000000;hb=ab2a4234912fd8325e966235d592b632290413df;hpb=1eed3f4c4e55d3e9f57a2dae5f71b76edb2bd4cf diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..66f7e7a --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,30 @@ +# Sources +set(test_SOURCES + newserver.cpp + callback.cpp + cmdgroup.cpp + comm.cpp + hello.cpp + reconnect.cpp + reentrant.cpp + serialize.cpp + simplecmd.cpp + timeout.cpp + wrapper.cpp + test_fixtures.hxx +) +include_directories(BEFORE + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_CURRENT_SOURCE_DIR} +) + +# Executables +add_executable(test ${test_SOURCES}) + +# Dependencies +target_link_libraries(test libt2n ${Boost_SERIALIZATION_LIBRARIES} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) + +# Tests +add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test) +enable_testing() +add_test(test test)