mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
4a6bfc086c
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
27 lines
903 B
CMake
27 lines
903 B
CMake
# - C++ Requests, Curl for People
|
|
# This module is a libcurl wrapper written in modern C++.
|
|
# It provides an easy, intuitive, and efficient interface to
|
|
# a host of networking methods.
|
|
#
|
|
# Finding this module will define the following variables:
|
|
# CPR_FOUND - True if the core library has been found
|
|
# CPR_LIBRARIES - Path to the core library archive
|
|
# CPR_INCLUDE_DIRS - Path to the include directories. Gives access
|
|
# to cpr.h, which must be included in every
|
|
# file that uses this interface
|
|
|
|
find_path(CPR_INCLUDE_DIR
|
|
NAMES cpr.h)
|
|
|
|
find_library(CPR_LIBRARY
|
|
NAMES cpr
|
|
HINTS ${CPR_LIBRARY_ROOT})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(CPR REQUIRED_VARS CPR_LIBRARY CPR_INCLUDE_DIR)
|
|
|
|
if(CPR_FOUND)
|
|
set(CPR_LIBRARIES ${CPR_LIBRARY})
|
|
set(CPR_INCLUDE_DIRS ${CPR_INCLUDE_DIR})
|
|
endif()
|