From 7da937d75054527c1332abf4f64d250a88a5294c Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 13 Oct 2019 14:31:16 +0200 Subject: [PATCH] cmake: make sure only header files with *.h pattern are installed --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aaa8f7..35734a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,8 @@ include(GNUInstallDirs) install(TARGETS sgnl EXPORT SgnlTargets) install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/sgnl" - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN "*.h") install(FILES "${PROJECT_SOURCE_DIR}/cmake/SgnlConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/SgnlConfigVersion.cmake" DESTINATION lib/cmake/sgnl)