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/static | |
| 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/static')
| -rw-r--r-- | examples/static/CMakeLists.txt | 11 | ||||
| -rw-r--r-- | examples/static/bar.cpp | 7 | ||||
| -rw-r--r-- | examples/static/bar.hpp | 3 | ||||
| -rw-r--r-- | examples/static/foo.cpp | 9 |
4 files changed, 0 insertions, 30 deletions
diff --git a/examples/static/CMakeLists.txt b/examples/static/CMakeLists.txt deleted file mode 100644 index c3ebbe4..0000000 --- a/examples/static/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(example_static) - -add_library(bar bar.cpp) -target_include_directories(bar PUBLIC .) - -add_executable(foo foo.cpp) -target_link_libraries(foo PRIVATE bar) - -install(TARGETS foo bar RUNTIME DESTINATION bin ARCHIVE DESTINATION lib) diff --git a/examples/static/bar.cpp b/examples/static/bar.cpp deleted file mode 100644 index 37aa9b5..0000000 --- a/examples/static/bar.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "bar.hpp" - -#include <iostream> - -void bar() { - std::cout << "bar\n"; -} diff --git a/examples/static/bar.hpp b/examples/static/bar.hpp deleted file mode 100644 index a3ea4c1..0000000 --- a/examples/static/bar.hpp +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -void bar(); diff --git a/examples/static/foo.cpp b/examples/static/foo.cpp deleted file mode 100644 index 34cd82e..0000000 --- a/examples/static/foo.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include <bar.hpp> - -#include <iostream> - -int main() { - std::cout << "foo\n"; - bar(); - return 0; -} |
