diff --git a/cmake/Scripts/IFEMTesting.cmake b/cmake/Scripts/IFEMTesting.cmake index be4b3a89..065c745e 100644 --- a/cmake/Scripts/IFEMTesting.cmake +++ b/cmake/Scripts/IFEMTesting.cmake @@ -33,7 +33,11 @@ endfunction() macro(IFEM_add_test_app path workdir name) - FILE(GLOB TEST_SRCS ${path}) + if("${path}" MATCHES "\\*") + file(GLOB TEST_SRCS ${path}) + else() + set(TEST_SRCS ${path}) + endif() add_executable(${name}-test EXCLUDE_FROM_ALL ${IFEM_PATH}/src/IFEM-test.C ${TEST_SRCS}) gtest_add_tests($ ${workdir} ${TEST_SRCS}) list(APPEND TEST_APPS ${name}-test)