Files
CPM.cmake/examples/boost/CMakeLists.txt
Lars Melchior 4064a45552 Add CPM_SOURCE_CACHE environmental variable support and keep existing sources (#83)
* read CPM_SOURCE_CACHE from environment

* update readme

* cleanup

* add cache tests
2019-10-10 20:13:10 +02:00

21 lines
425 B
CMake

cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(CPMExampleBoost)
# ---- 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)