mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* reorganise source and add CPMFindPackage * add consistent find_package behaviour * document CPMFindPackage * reset examples to CPMAddPackage unless tested * update version * update README.md * Update README.md
22 lines
471 B
CMake
22 lines
471 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)
|
|
|
|
CPMFindPackage(
|
|
NAME Boost
|
|
GITHUB_REPOSITORY Orphis/boost-cmake
|
|
VERSION 1.67.0
|
|
FIND_PACKAGE_ARGUMENTS "COMPONENTS system"
|
|
)
|
|
|
|
target_link_libraries(CPMExampleBoost PRIVATE Boost::system pthread)
|