glm/test/CMakeLists.txt

27 lines
597 B
CMake
Raw Normal View History

option(GLM_QUIET "No CMake Message" OFF)
option(GLM_TEST_ENABLE "Build unit tests" ON)
option(GLM_PERF_TEST_ENABLE "Build perf tests" OFF)
2010-12-17 01:33:17 +00:00
function(glmCreateTestGTC NAME)
set(SAMPLE_NAME test-${NAME})
add_executable(${SAMPLE_NAME} ${NAME}.cpp)
2011-02-21 13:25:13 +00:00
add_test(
NAME ${SAMPLE_NAME}
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
2019-10-17 14:41:13 +00:00
target_link_libraries(${SAMPLE_NAME} PRIVATE glm::glm)
2011-02-15 17:25:21 +00:00
endfunction()
2010-12-17 01:33:17 +00:00
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)
2018-08-19 09:24:56 +00:00
add_subdirectory(perf)
endif()
2011-01-19 16:14:23 +00:00