aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/simple/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/simple/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/simple/CMakeLists.txt b/examples/simple/CMakeLists.txt
index f2ba4d4..50a588b 100644
--- a/examples/simple/CMakeLists.txt
+++ b/examples/simple/CMakeLists.txt
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.15)
project(example_simple)
+add_library(baz SHARED baz.cpp)
+target_include_directories(baz PUBLIC .)
+
add_executable(foo foo.cpp)
+target_link_libraries(foo PRIVATE baz)
-install(TARGETS foo RUNTIME DESTINATION bin)
+install(TARGETS foo baz RUNTIME DESTINATION bin LIBRARY DESTINATION lib)