Allow for a project to not have any test cases

This commit is contained in:
Roland Kaufmann 2013-02-18 15:33:04 +01:00
parent b7cf79ef56
commit cc3987d090

View File

@ -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)