3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

[cmake] Generate list of all tests through GLOB_RECURSE by default

This commit is contained in:
Nils Wentzell 2019-08-20 14:32:21 -04:00
parent cd758dd639
commit c87aceed37

View File

@ -5,8 +5,7 @@ foreach(file ${all_h5_ref_files})
endforeach()
# List of all tests
set(all_tests *.cpp)
file(GLOB_RECURSE all_tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${all_tests})
file(GLOB_RECURSE all_tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
foreach(test ${all_tests})
get_filename_component(test_name ${test} NAME_WE)