Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From 7fdd36d7496238e03e43fcc32839f75588116c5d Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
| 3 | Date: Fri, 16 Mar 2018 15:44:48 +0100 |
| 4 | Subject: [PATCH 2/2] glm: install headers only |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Plausibility check in root source path |
| 10 | |
| 11 | $ find glm -type f ! -name '*.hpp' ! -name '*.h' ! -name '*.inl' |
| 12 | glm/detail/glm.cpp |
| 13 | glm/detail/dummy.cpp |
| 14 | glm/experimental.hpp.in |
| 15 | glm/CMakeLists.txt |
| 16 | |
| 17 | Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com> |
| 18 | |
| 19 | Uptream-Status: Submitted [1] |
| 20 | |
| 21 | [1] https://github.com/g-truc/glm/pull/741 |
| 22 | --- |
| 23 | CMakeLists.txt | 7 ++++++- |
| 24 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 25 | |
| 26 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 27 | index bd4dd654..113dd735 100644 |
| 28 | --- a/CMakeLists.txt |
| 29 | +++ b/CMakeLists.txt |
| 30 | @@ -171,7 +171,12 @@ option(GLM_INSTALL_ENABLE "GLM install" ON) |
| 31 | |
| 32 | set(GLM_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/glm") |
| 33 | if (GLM_INSTALL_ENABLE) |
| 34 | - install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
| 35 | + install(DIRECTORY glm |
| 36 | + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} |
| 37 | + FILES_MATCHING |
| 38 | + PATTERN "*.h" |
| 39 | + PATTERN "*.hpp" |
| 40 | + PATTERN "*.inl") |
| 41 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/experimental.hpp" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glm) |
| 42 | endif() |
| 43 | |
| 44 | -- |
| 45 | 2.14.3 |
| 46 | |