2019-07-01 20:30:21 +02:00
|
|
|
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
|
|
2019-10-10 20:13:10 +02:00
|
|
|
project(CPMExampleBoost)
|
|
|
|
|
|
2019-07-01 20:30:21 +02:00
|
|
|
# ---- Create binary ----
|
|
|
|
|
|
|
|
|
|
add_executable(CPMExampleBoost main.cpp)
|
2021-02-07 17:08:04 +01:00
|
|
|
target_compile_features(CPMExampleBoost PRIVATE cxx_std_17)
|
2019-07-01 20:30:21 +02:00
|
|
|
|
|
|
|
|
# ---- Dependencies ----
|
|
|
|
|
|
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
|
|
2021-05-18 15:29:52 +02:00
|
|
|
# boost-cmake currently doesn't tag versions, so we use the according boost version
|
|
|
|
|
CPMAddPackage("gh:Orphis/boost-cmake#7f97a08b64bd5d2e53e932ddf80c40544cf45edf@1.71.0")
|
2019-07-01 20:30:21 +02:00
|
|
|
|
2021-02-07 17:08:04 +01:00
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(CPMExampleBoost PRIVATE Boost::system Threads::Threads)
|