remove cpr as a dependency (#21)

abstract away library usage
This commit is contained in:
ouwou
2021-01-23 21:07:03 +00:00
committed by GitHub
parent 547124c94f
commit b28bfd6f20
14 changed files with 451 additions and 251 deletions

View File

@@ -1,17 +0,0 @@
find_path(CPR_INCLUDE_DIR
NAMES cpr/cpr.h)
find_library(CPR_LIBRARY
NAMES cpr
HINTS ${CPR_LIBRARY_ROOT})
set(CPR_LIBRARIES ${CPR_LIBRARY})
set(CPR_INCLUDE_DIRS ${CPR_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(cpr
FOUND_VAR CPR_FOUND
REQUIRED_VARS
CPR_LIBRARY
CPR_INCLUDE_DIR
VERSION_VAR CPR_VERSION)