glm: install headers only

Plausibility check in root source path

$ find glm -type f ! -name '*.hpp' ! -name '*.h' ! -name '*.inl'
glm/detail/glm.cpp
glm/detail/dummy.cpp
glm/experimental.hpp.in
glm/CMakeLists.txt

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller 2018-03-16 15:44:48 +01:00
parent 99a9676a01
commit 7fdd36d749

View File

@ -171,7 +171,12 @@ option(GLM_INSTALL_ENABLE "GLM install" ON)
set(GLM_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/glm")
if (GLM_INSTALL_ENABLE)
install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY glm
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "*.inl")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/experimental.hpp" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glm)
endif()