From 418130312d5ca70a005f6c400bb4c49495e68b6c Mon Sep 17 00:00:00 2001
From: Maik Nijhuis <maik.nijhuis@triopsys.nl>
Date: Wed, 19 Oct 2022 12:55:13 +0200
Subject: [PATCH] Support installation

---
 CMakeLists.txt         | 2 ++
 src/lib/CMakeLists.txt | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 128da29..9ad0c6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
 option(BUILD_TESTING "Build the test suite" OFF)
 option(BUILD_DOCUMENTATION "Build the documentation" OFF)
 
+install(DIRECTORY include DESTINATION .)
+
 add_subdirectory(src)
 
 if(BUILD_TESTING)
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 12d1fe1..533dc1c 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -4,3 +4,5 @@
 add_library(hello SHARED hello.cpp)
 
 target_include_directories(hello PUBLIC "${CMAKE_SOURCE_DIR}/include")
+
+install(TARGETS hello)
-- 
GitLab