X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e84ae8f1efbe8e45dd5e578fc180c152669bfc1..428d2a22ebffacc0623193ad65defde27e6e7bc6:/tools/cmake/Tests.cmake diff --git a/tools/cmake/Tests.cmake b/tools/cmake/Tests.cmake index 3604f8e32d..01a5e7d0fc 100644 --- a/tools/cmake/Tests.cmake +++ b/tools/cmake/Tests.cmake @@ -100,16 +100,27 @@ if(Boost_UNIT_TEST_FRAMEWORK_FOUND) APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}" ) - add_executable (unit_snapshot src/mc/snapshot/unitTest/mc_snapshot_unit_BOOST.cpp) - # add_library(boost_unit_test_framework SHARED IMPORTED) - # set_target_properties(boost_unit_test_framework PROPERTIES IMPORTED_LOCATION ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) - target_link_libraries(unit_snapshot simgrid boost_unit_test_framework) - ADD_TEST(unit_snapshot ${CMAKE_BINARY_DIR}/unit_tmgr --build_info=yes) - set_property( - TARGET unit_snapshot - APPEND PROPERTY - INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}" - ) + if (SIMGRID_HAVE_MC) + # snapshot + add_executable (unit_snapshot src/mc/snapshot/unitTest/mc_snapshot_unit_BOOST.cpp) + target_link_libraries(unit_snapshot simgrid boost_unit_test_framework) + ADD_TEST(unit_snapshot ${CMAKE_BINARY_DIR}/unit_snapshot --build_info=yes) + set_property( + TARGET unit_snapshot + APPEND PROPERTY + INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}" + ) + # PAGESTORE + add_executable (unit_PAGESTORE src/mc/snapshot/unitTest/PageStore_unit_BOOST.cpp) + target_link_libraries(unit_PAGESTORE simgrid boost_unit_test_framework) + ADD_TEST(unit_PAGESTORE ${CMAKE_BINARY_DIR}/unit_PAGESTORE --build_info=yes) + set_property( + TARGET unit_PAGESTORE + APPEND PROPERTY + INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}" + ) + + endif() else()