added proper cmake test infrastructure

This commit is contained in:
Bob Kuehne
2011-02-15 12:25:21 -05:00
parent 21ea4e592b
commit cc485cb4c1
2 changed files with 12 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
function(glmCreateTestGTC NAME)
set(SAMPLE_NAME test-${NAME})
add_executable(${SAMPLE_NAME} ${NAME}.cpp ../test.hpp ../test.cpp)
endfunction(glmCreateTestGTC)
add_test(
NAME ${SAMPLE_NAME}
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
endfunction()
add_subdirectory(bug)
add_subdirectory(core)