Commit e7d31ea9 authored by Matthieu Boileau's avatar Matthieu Boileau

Update CMakeLists.txt_test

parent d1d826bc
Pipeline #4029 passed with stages
in 2 minutes and 56 seconds
......@@ -24,6 +24,7 @@ target_link_libraries(maillage.e maillage)
enable_testing()
# On construit la liste des fichiers de test
message(STATUS "Ajout des tests :")
file(GLOB_RECURSE TEST_FILES test/*.cpp)
foreach(TEST_FILE ${TEST_FILES})
# On récupère le nom sans l'extension
......@@ -33,4 +34,5 @@ foreach(TEST_FILE ${TEST_FILES})
target_link_libraries(${TEST_NAME}.e maillage)
# On ajoute le test "test_toto" qui utilise l'exécutable "test_toto.e"
add_test(${TEST_NAME} ${TEST_NAME}.e)
message(" - ${TEST_NAME}")
endforeach()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment