mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 09:54:35 +00:00
f86092a658
* Remove disabled warnings
27 lines
597 B
CMake
27 lines
597 B
CMake
option(GLM_QUIET "No CMake Message" OFF)
|
|
|
|
option(GLM_TEST_ENABLE "Build unit tests" ON)
|
|
option(GLM_PERF_TEST_ENABLE "Build perf tests" OFF)
|
|
|
|
function(glmCreateTestGTC NAME)
|
|
set(SAMPLE_NAME test-${NAME})
|
|
add_executable(${SAMPLE_NAME} ${NAME}.cpp)
|
|
|
|
add_test(
|
|
NAME ${SAMPLE_NAME}
|
|
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
|
|
target_link_libraries(${SAMPLE_NAME} PRIVATE glm::glm)
|
|
endfunction()
|
|
|
|
if(GLM_TEST_ENABLE)
|
|
add_subdirectory(bug)
|
|
add_subdirectory(core)
|
|
add_subdirectory(ext)
|
|
add_subdirectory(gtc)
|
|
add_subdirectory(gtx)
|
|
endif()
|
|
if(GLM_PERF_TEST_ENABLE)
|
|
add_subdirectory(perf)
|
|
endif()
|
|
|