mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* update example versions * update doctest * update lua * update google benchmark * update catch2 * update readme to match updated dependencies Co-authored-by: Lars Melchior <lars@Larss-Laptop.local>
22 lines
432 B
CMake
22 lines
432 B
CMake
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)
|
|
|
|
CPMAddPackage(
|
|
NAME Boost
|
|
VERSION 1.81.0
|
|
GITHUB_REPOSITORY "boostorg/boost"
|
|
GIT_TAG "boost-1.81.0"
|
|
)
|
|
|
|
target_link_libraries(CPMExampleBoost PRIVATE Boost::asio)
|