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/dynamic | |
| 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/dynamic')
| -rw-r--r-- | examples/dynamic/CMakeLists.txt | 11 | ||||
| -rw-r--r-- | examples/dynamic/baz.cpp | 7 | ||||
| -rw-r--r-- | examples/dynamic/baz.hpp | 9 | ||||
| -rw-r--r-- | examples/dynamic/foo.cpp | 9 |
4 files changed, 0 insertions, 36 deletions
diff --git a/examples/dynamic/CMakeLists.txt b/examples/dynamic/CMakeLists.txt deleted file mode 100644 index 7c35f2e..0000000 --- a/examples/dynamic/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(example_dynamic) - -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) diff --git a/examples/dynamic/baz.cpp b/examples/dynamic/baz.cpp deleted file mode 100644 index d108ae3..0000000 --- a/examples/dynamic/baz.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "baz.hpp" - -#include <iostream> - -void baz() { - std::cout << "baz\n"; -} diff --git a/examples/dynamic/baz.hpp b/examples/dynamic/baz.hpp deleted file mode 100644 index 2fc9b2a..0000000 --- a/examples/dynamic/baz.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once - -#ifdef _MSC_VER -#define DLLEXPORT __declspec(dllexport) -#else -#define DLLEXPORT -#endif - -DLLEXPORT void baz(); diff --git a/examples/dynamic/foo.cpp b/examples/dynamic/foo.cpp deleted file mode 100644 index 7e928e1..0000000 --- a/examples/dynamic/foo.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include <baz.hpp> - -#include <iostream> - -int main() { - std::cout << "foo\n"; - baz(); - return 0; -} |
