CMakeLists.txt 723 B

1234567891011121314151617181920212223242526272829
  1. cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
  2. cmake_policy(VERSION 2.6)
  3. project(glm)
  4. enable_testing()
  5. add_definitions(-D_CRT_SECURE_NO_WARNINGS)
  6. #add_definitions(-pedantic)
  7. #add_definitions(-S)
  8. #add_definitions(-s)
  9. add_definitions(-msse2)
  10. #add_definitions(-m32)
  11. #add_definitions(-mfpmath=387)
  12. #add_definitions(-ffast-math)
  13. #add_definitions(-O3)
  14. include_directories(".")
  15. add_subdirectory(glm)
  16. add_subdirectory(test)
  17. add_subdirectory(bench)
  18. add_subdirectory(doc)
  19. option(GLM_TEST_MODE "GLM test" OFF)
  20. if(NOT GLM_TEST_MODE)
  21. message(FATAL_ERROR "GLM is a header only library, no need to build it. Set the option GLM_TEST_MODE with ON to build and run the test bench")
  22. endif()
  23. install(DIRECTORY glm DESTINATION include)