X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/079430e8e9a8c4d60400b43bc490276511840b2c..d7fb52aa1f18cd70a51a6d8913c1a4513fea7ce7:/tools/cmake/UnitTesting.cmake diff --git a/tools/cmake/UnitTesting.cmake b/tools/cmake/UnitTesting.cmake index c1f0a6d82e..0ed71bc6f2 100644 --- a/tools/cmake/UnitTesting.cmake +++ b/tools/cmake/UnitTesting.cmake @@ -12,13 +12,6 @@ set(FILES_CONTAINING_UNITTESTS src/xbt/config.cpp ) -if(SIMGRID_HAVE_MC) - set(FILES_CONTAINING_UNITTESTS ${FILES_CONTAINING_UNITTESTS} - src/mc/PageStore.cpp - src/mc/mc_snapshot.cpp - ) -endif() - #### Nothing to change below this line to add a new tested file ################################################################ @@ -43,7 +36,8 @@ ADD_CUSTOM_COMMAND( COMMAND ${CMAKE_HOME_DIRECTORY}/tools/sg_unit_extractor.pl --root=src/ --outdir=${CMAKE_CURRENT_BINARY_DIR}/src/ ${FILES_CONTAINING_UNITTESTS} ) -add_executable (testall ${EXTRACTED_TEST_SOURCE_FILES}) +add_executable (testall EXCLUDE_FROM_ALL ${EXTRACTED_TEST_SOURCE_FILES}) +add_dependencies(tests testall) target_link_libraries(testall simgrid) set_property( TARGET testall