X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c3a1127888725e3075adff3ad323dc1357351530..49514a74128a35ed4c0ba6dc190d70d35dd9fd7a:/buildtools/Cmake/UnitTesting.cmake diff --git a/buildtools/Cmake/UnitTesting.cmake b/buildtools/Cmake/UnitTesting.cmake index c08425471c..4cfedb0538 100644 --- a/buildtools/Cmake/UnitTesting.cmake +++ b/buildtools/Cmake/UnitTesting.cmake @@ -12,8 +12,6 @@ set(TEST_CFILES src/xbt/xbt_strbuff.c src/xbt/xbt_sha.c src/xbt/config.c - src/xbt/xbt_synchro.c - src/xbt/parmap.c ) set(TEST_UNITS ${CMAKE_CURRENT_BINARY_DIR}/src/cunit_unit.c @@ -26,12 +24,21 @@ set(TEST_UNITS ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_strbuff_unit.c ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_sha_unit.c ${CMAKE_CURRENT_BINARY_DIR}/src/config_unit.c - ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_synchro_unit.c - ${CMAKE_CURRENT_BINARY_DIR}/src/parmap_unit.c ${CMAKE_CURRENT_BINARY_DIR}/src/simgrid_units_main.c ) +if(HAVE_MC) + set(TEST_CFILES ${TEST_CFILES} + src/mc/mc_page_store.cpp + src/mc/mc_snapshot.c + ) + set(TEST_UNITS ${TEST_UNITS} + ${CMAKE_CURRENT_BINARY_DIR}/src/mc_page_store_unit.cpp + ${CMAKE_CURRENT_BINARY_DIR}/src/mc_snapshot_unit.c + ) +endif() + ADD_CUSTOM_COMMAND( OUTPUT ${TEST_UNITS} @@ -58,9 +65,7 @@ add_executable(testall ${TEST_UNITS}) ### Add definitions for compile if(NOT WIN32) - target_link_libraries(testall gras m) -else(NOT WIN32) - target_link_libraries(testall gras) -endif(NOT WIN32) - -add_dependencies(testall ${TEST_UNITS}) \ No newline at end of file + target_link_libraries(testall simgrid m) +else() + target_link_libraries(testall simgrid) +endif()