aboutsummaryrefslogtreecommitdiff
path: root/mwe/dynlink/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 12:55:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 12:55:15 +0200
commit02d658a7ed92bacfdaed587102f0d2e5f6c5dc01 (patch)
tree1195a0a46b9ce4af470652fecd5c3a3a917c2c58 /mwe/dynlink/lib/CMakeLists.txt
parentb649adda67ed52c2e3bdcd5aa2cb4b9b0954cf16 (diff)
parentb5a5d9b1d4725f3001486c9bbd69263ed0918303 (diff)
Merge branch 'loek/cleanup' into loek/scripts
Diffstat (limited to 'mwe/dynlink/lib/CMakeLists.txt')
-rw-r--r--mwe/dynlink/lib/CMakeLists.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/mwe/dynlink/lib/CMakeLists.txt b/mwe/dynlink/lib/CMakeLists.txt
index 2d15353..7efc91a 100644
--- a/mwe/dynlink/lib/CMakeLists.txt
+++ b/mwe/dynlink/lib/CMakeLists.txt
@@ -5,6 +5,20 @@ set(CMAKE_CXX_STANDARD 20)
project(lib C CXX)
-add_library(test SHARED lib.c)
+add_library(test SHARED)
+
target_include_directories(test SYSTEM INTERFACE .)
+target_sources(test PUBLIC
+ test.c
+)
+
+target_sources(test PUBLIC FILE_SET HEADERS FILES
+ test.h
+)
+
+install(
+ TARGETS test
+ FILE_SET HEADERS DESTINATION include
+)
+