From 813a0a46565aa36a543a8f9c384d7a7855d7031f Mon Sep 17 00:00:00 2001
From: Joseph Walton-Rivers <joseph@walton-rivers.uk>
Date: Sun, 19 Jun 2022 18:53:07 +0100
Subject: [PATCH] ensure that demo is also installed

---
 build.sh            |  2 +-
 demo/CMakeLists.txt | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 36af9b8..2bfd804 100755
--- a/build.sh
+++ b/build.sh
@@ -22,7 +22,7 @@ rm -rf $CACHE
 #
 cmake -S . -B $BUILD_PATH -DCMAKE_BUILD_TYPE=debug
 cmake --build $BUILD_PATH
-cmake --install $BUILD_PATH -v --prefix /tmp/fggl-lib
+cmake --install $BUILD_PATH --prefix /tmp/fggl-lib
 
 #
 # additional stuff
diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
index f2e3b4c..faccc6a 100644
--- a/demo/CMakeLists.txt
+++ b/demo/CMakeLists.txt
@@ -23,3 +23,13 @@ target_link_libraries(demo spdlog::spdlog)
 # rssources
 file(GLOB_RECURSE data data/*)
 file(COPY ${data} DESTINATION data )
+
+install(
+        TARGETS demo
+        RUNTIME
+        DESTINATION ${CMAKE_INSTALL_BINDIR}
+)
+install(
+        DIRECTORY data
+        DESTINATION ${CMAKE_INSTALL_DATADIR}
+)
\ No newline at end of file
-- 
GitLab