diff options
| author | Egor Tensin <egor@tensin.name> | 2026-03-30 11:49:10 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-03-30 11:54:40 +0200 |
| commit | 4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4 (patch) | |
| tree | 08b54a4313cdb41a883b244ffcbb423dbf7ced46 /examples | |
| parent | remove examples "dynamic" & "static" (diff) | |
| download | cmake-common-4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4.tar.gz cmake-common-4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4.zip | |
move testing-only things into test/
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/boost/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | examples/boost/foo.cpp | 13 | ||||
| -rw-r--r-- | examples/simple/CMakeLists.txt | 11 | ||||
| -rw-r--r-- | examples/simple/baz.cpp | 7 | ||||
| -rw-r--r-- | examples/simple/baz.hpp | 9 | ||||
| -rw-r--r-- | examples/simple/foo.cpp | 9 |
6 files changed, 0 insertions, 61 deletions
diff --git a/examples/boost/CMakeLists.txt b/examples/boost/CMakeLists.txt deleted file mode 100644 index 0e92e38..0000000 --- a/examples/boost/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(example_boost) - -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -find_package(Boost REQUIRED COMPONENTS filesystem) -add_executable(foo foo.cpp) -target_link_libraries(foo PRIVATE Boost::disable_autolinking Boost::filesystem) - -install(TARGETS foo RUNTIME DESTINATION bin) diff --git a/examples/boost/foo.cpp b/examples/boost/foo.cpp deleted file mode 100644 index 6219e68..0000000 --- a/examples/boost/foo.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include <boost/filesystem.hpp> - -#include <iostream> - -int main(int argc, char* argv[]) { - namespace fs = boost::filesystem; - std::cout << argv[0] << '\n'; - for (int i = 1; i < argc; ++i) { - std::cout << fs::absolute(boost::filesystem::path{argv[i]}).string() - << '\n'; - } - return 0; -} diff --git a/examples/simple/CMakeLists.txt b/examples/simple/CMakeLists.txt deleted file mode 100644 index 50a588b..0000000 --- a/examples/simple/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -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) diff --git a/examples/simple/baz.cpp b/examples/simple/baz.cpp deleted file mode 100644 index d108ae3..0000000 --- a/examples/simple/baz.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "baz.hpp" - -#include <iostream> - -void baz() { - std::cout << "baz\n"; -} diff --git a/examples/simple/baz.hpp b/examples/simple/baz.hpp deleted file mode 100644 index 2fc9b2a..0000000 --- a/examples/simple/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/simple/foo.cpp b/examples/simple/foo.cpp deleted file mode 100644 index 7e928e1..0000000 --- a/examples/simple/foo.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include <baz.hpp> - -#include <iostream> - -int main() { - std::cout << "foo\n"; - baz(); - return 0; -} |
