1234567891011121314151617181920212223 |
- # -*- cmake -*-
- if (GLM_CMAKE_INCLUDED)
- return()
- endif (GLM_CMAKE_INCLUDED)
- set (GLM_CMAKE_INCLUDED TRUE)
- include(Variables)
- include(Prebuilt)
- use_prebuilt_binary(glm)
- add_definitions(-DGLM_FORCE_DEFAULT_ALIGNED_GENTYPES=1
- -DGLM_ENABLE_EXPERIMENTAL=1)
- # GLM does not have proper NEON support, so we use sse2neon.h translations and
- # we force SSE2 intrinsics usage by GLM. HB
- if (ARCH STREQUAL "arm64")
- add_definitions(-DGLM_FORCE_ARCH_UNKNOWN=1 -DGLM_FORCE_SSE2=1)
- endif (ARCH STREQUAL "arm64")
- if (CMAKE_BUILD_TYPE STREQUAL "Release")
- add_definitions(-DGLM_FORCE_INLINE=1)
- endif (CMAKE_BUILD_TYPE STREQUAL "Release")
|