diff --git a/CMakeLists.txt b/CMakeLists.txt index bd4dd654..113dd735 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()