diff options
Diffstat (limited to 'examples/boost')
| -rw-r--r-- | examples/boost/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | examples/boost/foo.cpp | 13 |
2 files changed, 0 insertions, 25 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; -} |
