GLM.cmake 631 B

1234567891011121314151617181920212223
  1. # -*- cmake -*-
  2. if (GLM_CMAKE_INCLUDED)
  3. return()
  4. endif (GLM_CMAKE_INCLUDED)
  5. set (GLM_CMAKE_INCLUDED TRUE)
  6. include(Variables)
  7. include(Prebuilt)
  8. use_prebuilt_binary(glm)
  9. add_definitions(-DGLM_FORCE_DEFAULT_ALIGNED_GENTYPES=1
  10. -DGLM_ENABLE_EXPERIMENTAL=1)
  11. # GLM does not have proper NEON support, so we use sse2neon.h translations and
  12. # we force SSE2 intrinsics usage by GLM. HB
  13. if (ARCH STREQUAL "arm64")
  14. add_definitions(-DGLM_FORCE_ARCH_UNKNOWN=1 -DGLM_FORCE_SSE2=1)
  15. endif (ARCH STREQUAL "arm64")
  16. if (CMAKE_BUILD_TYPE STREQUAL "Release")
  17. add_definitions(-DGLM_FORCE_INLINE=1)
  18. endif (CMAKE_BUILD_TYPE STREQUAL "Release")