Add boost example (#70)

* add unit tests

* added boost

* cleanup

* add pthread

* Update README.md
This commit is contained in:
Lars Melchior
2019-07-01 20:30:21 +02:00
committed by GitHub
parent 1e8d8d43c7
commit 25a9158448
4 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
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)