mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
19 lines
399 B
CMake
19 lines
399 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
# ---- Create binary ----
|
|
|
|
add_executable(CPMExampleBoost main.cpp)
|
|
set_target_properties(CPMExampleBoost PROPERTIES CXX_STANDARD 17)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage(
|
|
NAME boost
|
|
GITHUB_REPOSITORY Orphis/boost-cmake
|
|
VERSION 1.67.0
|
|
)
|
|
|
|
target_link_libraries(CPMExampleBoost PRIVATE Boost::system pthread)
|