CMakeLists.txt 747 B

123456789101112131415161718192021222324252627282930
  1. cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
  2. cmake_policy(VERSION 2.6)
  3. project(glm)
  4. #Delayed for GLM 0.9.2
  5. #enable_testing()
  6. add_definitions(-D_CRT_SECURE_NO_WARNINGS)
  7. #add_definitions(-pedantic)
  8. #add_definitions(-S)
  9. #add_definitions(-s)
  10. add_definitions(-msse2)
  11. #add_definitions(-m32)
  12. #add_definitions(-mfpmath=387)
  13. #add_definitions(-ffast-math)
  14. #add_definitions(-O3)
  15. include_directories(".")
  16. add_subdirectory(glm)
  17. add_subdirectory(test)
  18. add_subdirectory(bench)
  19. add_subdirectory(doc)
  20. option(GLM_TEST_MODE "GLM test" OFF)
  21. if(NOT GLM_TEST_MODE)
  22. 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")
  23. endif()
  24. install(DIRECTORY glm DESTINATION include)