X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f73218921b124d155d21dd1ca4d0b9b467448780..1ca39540818d47b2c93100d6b44dfd7a1d5ce3be:/tools/cmake/Tests.cmake diff --git a/tools/cmake/Tests.cmake b/tools/cmake/Tests.cmake index 6ef6d18b9e..273bf7c13e 100644 --- a/tools/cmake/Tests.cmake +++ b/tools/cmake/Tests.cmake @@ -87,3 +87,16 @@ IF(SIMGRID_HAVE_LUA) ENDIF() ADD_TEST(testall ${CMAKE_BINARY_DIR}/testall) + +# New tests should use the Boost Unit Test Framework + + +if(Boost_UNIT_TEST_FRAMEWORK_FOUND) + add_executable (unit_tmgr src/surf/trace_mgr_test.cpp) + target_link_libraries(unit_tmgr simgrid ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) + set(CMAKE_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0 ${CMAKE_CXX_FLAGS}") + ADD_TEST(unit_tmgr ${CMAKE_BINARY_DIR}/unit_tmgr --build_info=yes) + +else() + set(EXTRA_DIST ${EXTRA_DIST} src/surf/trace_mgr_test.cpp) +endif()