From e618ce2efb4cd70a738fab4338e1c8739d6a8e77 Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Tue, 9 Jun 2015 14:59:57 +0200 Subject: [PATCH 1/3] cmake: install header files --- build/cmake/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index e08fe62..b955743 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -89,3 +89,5 @@ configure_file (${GLEW_DIR}/glew.pc.in ${GLEW_DIR}/glewmx.pc @ONLY) install(FILES ${GLEW_DIR}/glew.pc ${GLEW_DIR}/glewmx.pc DESTINATION lib/pkgconfig ) + +install (DIRECTORY ${GLEW_DIR}/include/ DESTINATION include) From 29a0ac0f470ed064f65c174dd2c9b0a5c4fabd5e Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Wed, 10 Jun 2015 10:27:28 +0200 Subject: [PATCH 2/3] cmake: install named headers instead of directory --- build/cmake/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index b955743..f0d10e4 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -90,4 +90,8 @@ install(FILES ${GLEW_DIR}/glew.pc ${GLEW_DIR}/glewmx.pc DESTINATION lib/pkgconfig ) -install (DIRECTORY ${GLEW_DIR}/include/ DESTINATION include) +install (FILES + ${GLEW_DIR}/include/wglew.h + ${GLEW_DIR}/include/glew.h + ${GLEW_DIR}/include/glxew.h + DESTINATION include/GL) From 9b5d29be72632e0a47c8d3418fd8e3bdb3cfe953 Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Wed, 10 Jun 2015 10:30:26 +0200 Subject: [PATCH 3/3] fix previous commit --- build/cmake/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index f0d10e4..fdeab0e 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -91,7 +91,7 @@ install(FILES ${GLEW_DIR}/glew.pc ${GLEW_DIR}/glewmx.pc ) install (FILES - ${GLEW_DIR}/include/wglew.h - ${GLEW_DIR}/include/glew.h - ${GLEW_DIR}/include/glxew.h + ${GLEW_DIR}/include/GL/wglew.h + ${GLEW_DIR}/include/GL/glew.h + ${GLEW_DIR}/include/GL/glxew.h DESTINATION include/GL)