-# To add a new tested file, simply add the original file in
-# TEST_CFILES and generated file in TEST_UNITS. The rest is automatic.
-
-set(TEST_CFILES
- src/xbt/cunit.c
- src/xbt/ex.c
- src/xbt/dynar.c
- src/xbt/dict.c
- src/xbt/swag.c
- src/xbt/xbt_str.c
- src/xbt/xbt_strbuff.c
- src/xbt/xbt_sha.c
- src/xbt/config.c
- )
-set(TEST_UNITS
- ${CMAKE_CURRENT_BINARY_DIR}/src/cunit_unit.c
- ${CMAKE_CURRENT_BINARY_DIR}/src/ex_unit.c
- ${CMAKE_CURRENT_BINARY_DIR}/src/dynar_unit.c
- ${CMAKE_CURRENT_BINARY_DIR}/src/dict_unit.c
- ${CMAKE_CURRENT_BINARY_DIR}/src/swag_unit.c
- ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_str_unit.c
- ${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/simgrid_units_main.c
- )
-
-if(HAVE_MC)
- set(TEST_CFILES ${TEST_CFILES}
+# This file is in charge of the unit testing in SimGrid.
+# See http://simgrid.gforge.inria.fr/simgrid/3.13/doc/inside_tests.html#inside_tests_add_units
+
+# To register a file containing unit tests, simply add it to
+# FILES_CONTAINING_UNITTESTS and have a pleasant day.
+
+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
+)
+
+if(SIMGRID_HAVE_MC)
+ set(FILES_CONTAINING_UNITTESTS ${FILES_CONTAINING_UNITTESTS}