aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/examples/boost/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/boost/CMakeLists.txt')
-rw-r--r--test/examples/boost/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/examples/boost/CMakeLists.txt b/test/examples/boost/CMakeLists.txt
new file mode 100644
index 0000000..0e92e38
--- /dev/null
+++ b/test/examples/boost/CMakeLists.txt
@@ -0,0 +1,12 @@
+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)