X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15badc71ce964f6dae6428c9a4c0198fad5d4936..fe9ec44b78f1d4b5a89db951d025bb33d0cd73d1:/buildtools/Cmake/UnitTesting.cmake diff --git a/buildtools/Cmake/UnitTesting.cmake b/buildtools/Cmake/UnitTesting.cmake index 7800769b06..4cfedb0538 100644 --- a/buildtools/Cmake/UnitTesting.cmake +++ b/buildtools/Cmake/UnitTesting.cmake @@ -28,6 +28,17 @@ set(TEST_UNITS ${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,5 +69,3 @@ if(NOT WIN32) else() target_link_libraries(testall simgrid) endif() - -add_dependencies(testall ${TEST_UNITS}) \ No newline at end of file