aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/examples/simple/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/simple/CMakeLists.txt')
-rw-r--r--test/examples/simple/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/examples/simple/CMakeLists.txt b/test/examples/simple/CMakeLists.txt
new file mode 100644
index 0000000..50a588b
--- /dev/null
+++ b/test/examples/simple/CMakeLists.txt
@@ -0,0 +1,11 @@
+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 baz RUNTIME DESTINATION bin LIBRARY DESTINATION lib)