summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-04-11 21:56:28 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-04-11 21:56:28 +0200
commit3611d788e34638cadb16d0b0678eee4167a3ae82 (patch)
tree7649f5892ca83755c2c49983d1a17ae8207f39c4
parent1e2137668af8fb5afcc4e46ee42e17a6bc66fe9e (diff)
Fix CMake install procedure (#212)
Only install header files to the FL/ include directory.
-rw-r--r--CMake/install.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMake/install.cmake b/CMake/install.cmake
index c01f19d4d..bbba1255d 100644
--- a/CMake/install.cmake
+++ b/CMake/install.cmake
@@ -2,7 +2,7 @@
# Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
# Written by Michael Surette
#
-# Copyright 1998-2020 by Bill Spitzak and others.
+# Copyright 1998-2021 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
@@ -32,11 +32,16 @@ add_custom_target (uninstall
install (DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/FL
DESTINATION ${FLTK_INCLUDEDIR} USE_SOURCE_PERMISSIONS
+ FILES_MATCHING
+ PATTERN "*.[hH]"
+ PATTERN "abi-version.h" EXCLUDE
)
install (DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/FL
DESTINATION ${FLTK_INCLUDEDIR} USE_SOURCE_PERMISSIONS
+ FILES_MATCHING
+ PATTERN "*.[hH]"
)
if (OPTION_CREATE_LINKS)