Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert the unit tests of xbt::config to Catch2.
[simgrid.git] / tools / cmake / UnitTesting.cmake
index 8586a3f..93a7d77 100644 (file)
@@ -6,10 +6,6 @@
 
 set(FILES_CONTAINING_UNITTESTS
   src/xbt/cunit.cpp
-  src/xbt/dynar.cpp
-  src/xbt/dict.cpp
-  src/xbt/xbt_str.cpp
-  src/xbt/config.cpp
 )
 
 ####  Nothing to change below this line to add a new tested file
@@ -36,7 +32,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