Put tests in a "namespace"

This commit is contained in:
2017-06-20 06:35:37 +02:00
parent 61095da7c3
commit ed67424ca7

View File

@@ -156,7 +156,7 @@ if (BUILD_TESTING)
foreach (name ${project_tests})
add_executable (test-${name} tests/${name}.c ${test_common_sources})
target_link_libraries (test-${name} termo-static ${lib_libraries})
add_test (test-${name} test-${name})
add_test (NAME ${PROJECT_NAME}.${name} COMMAND test-${name})
endforeach (name)
endif (BUILD_TESTING)