This allows building against the same version of GLM across all targets and not deal with API changes of newer GLM versions which introduce regressions. Long term we want to migrate away from GLM and stick to a minimal self-written subset.
17 lines
362 B
CMake
17 lines
362 B
CMake
function(glmCreateTestGTC NAME)
|
|
if(GLM_TEST_ENABLE)
|
|
set(SAMPLE_NAME test-${NAME})
|
|
add_executable(${SAMPLE_NAME} ${NAME}.cpp)
|
|
|
|
add_test(
|
|
NAME ${SAMPLE_NAME}
|
|
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
|
|
endif(GLM_TEST_ENABLE)
|
|
endfunction()
|
|
|
|
add_subdirectory(bug)
|
|
add_subdirectory(core)
|
|
add_subdirectory(gtc)
|
|
add_subdirectory(gtx)
|
|
|
|
|