GLM_TEST_ENABLE Option enabled by default to build GLM unit tests. Disable this option to disable testing #788

This commit is contained in:
Groove 2018-07-29 18:20:43 +02:00
parent 09fb7dedbe
commit d307d39019
2 changed files with 8 additions and 5 deletions

View File

@ -79,6 +79,7 @@ else()
endif() endif()
endif() endif()
option(GLM_TEST_ENABLE "Build unit tests" ON)
option(GLM_TEST_ENABLE_SIMD_SSE2 "Enable SSE2 optimizations" OFF) option(GLM_TEST_ENABLE_SIMD_SSE2 "Enable SSE2 optimizations" OFF)
option(GLM_TEST_ENABLE_SIMD_SSE3 "Enable SSE3 optimizations" OFF) option(GLM_TEST_ENABLE_SIMD_SSE3 "Enable SSE3 optimizations" OFF)
option(GLM_TEST_ENABLE_SIMD_AVX "Enable AVX optimizations" OFF) option(GLM_TEST_ENABLE_SIMD_AVX "Enable AVX optimizations" OFF)

View File

@ -7,10 +7,12 @@ function(glmCreateTestGTC NAME)
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> ) COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
endfunction() endfunction()
if(GLM_TEST_ENABLE)
add_subdirectory(bug) add_subdirectory(bug)
add_subdirectory(core) add_subdirectory(core)
add_subdirectory(ext) add_subdirectory(ext)
add_subdirectory(gtc) add_subdirectory(gtc)
add_subdirectory(gtx) add_subdirectory(gtx)
endif()