Files
CPM.cmake/examples/boost/CMakeLists.txt

22 lines
432 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(CPMExampleBoost)
# ---- Create binary ----
add_executable(CPMExampleBoost main.cpp)
target_compile_features(CPMExampleBoost PRIVATE cxx_std_17)
# ---- Dependencies ----
include(../../cmake/CPM.cmake)
2021-12-05 16:08:47 +01:00
CPMAddPackage(
NAME Boost
VERSION 1.81.0
2021-12-05 16:08:47 +01:00
GITHUB_REPOSITORY "boostorg/boost"
GIT_TAG "boost-1.81.0"
2021-12-05 16:08:47 +01:00
)
target_link_libraries(CPMExampleBoost PRIVATE Boost::asio)