From ab2850e22eaca726e53aad8b5ef8709b9e0f5311 Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Wed, 11 Oct 2017 21:37:23 +0100 Subject: [PATCH] Fix header install location. (#256) --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1af8b4c..f0f1d21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,11 +343,10 @@ INSTALL( COMPONENT dev ) -#Recursively list of all headers, with paths relative to include/tins -FILE(GLOB_RECURSE INCLUDE_FILES "include/tins/*.h") - +# Install all headers in include/ INSTALL( - FILES ${INCLUDE_FILES} - DESTINATION . + DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION include COMPONENT Headers + FILES_MATCHING PATTERN "*.h*" )