Spit unit tests.

This commit is contained in:
Jens Luedicke
2011-01-22 22:21:49 +01:00
parent 8a180c2897
commit 6c4e020bb5
3 changed files with 47 additions and 15 deletions

View File

@@ -2,8 +2,10 @@ cmake_minimum_required (VERSION 2.6)
link_directories(${Boost_LIBRARY_DIRS})
add_executable(unittest unittest.cpp)
add_executable(AttributesTest AttributesTest.cpp)
target_link_libraries(AttributesTest ${Boost_LIBRARIES})
add_test(AttributesTest AttributesTest)
target_link_libraries(unittest ${Boost_LIBRARIES})
add_test(unittest unittest)
add_executable(String2typeTest String2typeTest.cpp)
target_link_libraries(String2typeTest ${Boost_LIBRARIES})
add_test(String2typeTest String2typeTest)