Added CMake test infrastructure

master
Christophe Riccio ago%!(EXTRA string=14 years)
parent 680485f8f7
commit bea54a5cff
  1. 8
      test/CMakeLists.txt

@ -1,10 +1,10 @@
function(glmCreateTestGTC NAME)
set(SAMPLE_NAME test-${NAME})
add_executable(${SAMPLE_NAME} ${NAME}.cpp ../test.hpp ../test.cpp)
#For GLM 0.9.2, not ready yet
#add_test(
# NAME ${SAMPLE_NAME}
# COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
add_test(
NAME ${SAMPLE_NAME}
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
endfunction()
add_subdirectory(bug)

Loading…
Cancel
Save