X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12c0f182635ed71b370d608b5b9a614153765cd4..40334ce6fe520b2fa7d1e240716e4f34a5fdc74e:/buildtools/Cmake/UnitTesting.cmake diff --git a/buildtools/Cmake/UnitTesting.cmake b/buildtools/Cmake/UnitTesting.cmake index 7800769b06..2435bf64ef 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/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,5 +69,3 @@ if(NOT WIN32) else() target_link_libraries(testall simgrid) endif() - -add_dependencies(testall ${TEST_UNITS}) \ No newline at end of file