X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/963b8d1182796bce58318c92742863a8d3f32b37..5960f4118ff88d4f39043e486fb56f73d64b15ef:/buildtools/Cmake/UnitTesting.cmake diff --git a/buildtools/Cmake/UnitTesting.cmake b/buildtools/Cmake/UnitTesting.cmake index 746596e7a7..2435bf64ef 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/PageStore.cpp + src/mc/mc_snapshot.cpp + ) + set(TEST_UNITS ${TEST_UNITS} + ${CMAKE_CURRENT_BINARY_DIR}/src/PageStore_unit.cpp + ${CMAKE_CURRENT_BINARY_DIR}/src/mc_snapshot_unit.cpp + ) +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) + target_link_libraries(testall simgrid m) else() - target_link_libraries(testall gras) + target_link_libraries(testall simgrid) endif() - -add_dependencies(testall ${TEST_UNITS}) \ No newline at end of file