mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
Add boost example (#70)
* add unit tests * added boost * cleanup * add pthread * Update README.md
This commit is contained in:
18
examples/boost/CMakeLists.txt
Normal file
18
examples/boost/CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user