reorganise source and add CPMFindPackage (#92)

* 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
This commit is contained in:
Lars Melchior
2019-10-24 15:42:25 +02:00
committed by GitHub
parent 0a8a65df32
commit 47bfb554ab
20 changed files with 199 additions and 303 deletions

View File

@@ -11,10 +11,11 @@ set_target_properties(CPMExampleBoost PROPERTIES CXX_STANDARD 17)
include(../../cmake/CPM.cmake)
CPMAddPackage(
NAME boost
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)