diff options
| author | Egor Tensin <egor@tensin.name> | 2026-03-30 11:32:26 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-03-30 11:34:43 +0200 |
| commit | 00333c785ab02c7010c2e07981d5d792c218c9ee (patch) | |
| tree | ca7a6b1a8a44df52b2273cfdf63853727ef74bf6 /examples/simple/CMakeLists.txt | |
| parent | remove some dead code (diff) | |
| download | cmake-common-00333c785ab02c7010c2e07981d5d792c218c9ee.tar.gz cmake-common-00333c785ab02c7010c2e07981d5d792c218c9ee.zip | |
remove examples "dynamic" & "static"
To be specific the "dynamic" example is the new "simple". I don't need 3
basic example projects, one is enough.
Diffstat (limited to 'examples/simple/CMakeLists.txt')
| -rw-r--r-- | examples/simple/CMakeLists.txt | 6 |
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) |
