From 94dd5f605d63d99dfb7c81b2e77b16a645fe8696 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 3 Jan 2020 16:03:08 +0100 Subject: Install headers. --- CMakeLists.txt | 1 + include/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 include/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 00d8a1b..0704b03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) include(debug_flags) add_subdirectory(src) +add_subdirectory(include) if(WITH_TESTS) add_subdirectory(tests) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt new file mode 100644 index 0000000..5594349 --- /dev/null +++ b/include/CMakeLists.txt @@ -0,0 +1,6 @@ +include(GNUInstallDirs) + +# The trailing / is important. +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}" + FILES_MATCHING PATTERN "*.hpp") -- cgit v1.2.3-54-g00ecf