Allow for a project to not have any test cases
This commit is contained in:
parent
b7cf79ef56
commit
cc3987d090
@ -36,7 +36,9 @@ macro (opm_find_tests)
|
||||
set (tests_DIR "tests")
|
||||
file (GLOB_RECURSE tests_SOURCES "${tests_DIR}/test_*.cpp")
|
||||
file (GLOB_RECURSE not_tests_SOURCES "${tests_DIR}/not-unit/test_*.cpp")
|
||||
list (REMOVE_ITEM tests_SOURCES ${not_tests_SOURCES})
|
||||
if (tests_SOURCES AND not_tests_SOURCES)
|
||||
list (REMOVE_ITEM tests_SOURCES ${not_tests_SOURCES})
|
||||
endif (tests_SOURCES AND not_tests_SOURCES)
|
||||
endmacro (opm_find_tests)
|
||||
|
||||
macro (opm_find_tutorials)
|
||||
|
Loading…
Reference in New Issue
Block a user