CMakeLists.txt 597 B

1234567891011121314151617181920212223242526
  1. option(GLM_QUIET "No CMake Message" OFF)
  2. option(GLM_TEST_ENABLE "Build unit tests" ON)
  3. option(GLM_PERF_TEST_ENABLE "Build perf tests" OFF)
  4. function(glmCreateTestGTC NAME)
  5. set(SAMPLE_NAME test-${NAME})
  6. add_executable(${SAMPLE_NAME} ${NAME}.cpp)
  7. add_test(
  8. NAME ${SAMPLE_NAME}
  9. COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
  10. target_link_libraries(${SAMPLE_NAME} PRIVATE glm::glm)
  11. endfunction()
  12. if(GLM_TEST_ENABLE)
  13. add_subdirectory(bug)
  14. add_subdirectory(core)
  15. add_subdirectory(ext)
  16. add_subdirectory(gtc)
  17. add_subdirectory(gtx)
  18. endif()
  19. if(GLM_PERF_TEST_ENABLE)
  20. add_subdirectory(perf)
  21. endif()