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-12-05 16:08:47 +01:00
|
|
|
CPMAddPackage(
|
|
|
|
|
NAME Boost
|
2023-01-10 15:31:57 +01:00
|
|
|
VERSION 1.81.0
|
2021-12-05 16:08:47 +01:00
|
|
|
GITHUB_REPOSITORY "boostorg/boost"
|
2023-01-10 15:31:57 +01:00
|
|
|
GIT_TAG "boost-1.81.0"
|
2021-12-05 16:08:47 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(CPMExampleBoost PRIVATE Boost::asio)
|