aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/cpr/cpr-config.cmake
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/external_dependencies/cpr/cpr-config.cmake
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/external_dependencies/cpr/cpr-config.cmake')
-rw-r--r--Src/external_dependencies/cpr/cpr-config.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/Src/external_dependencies/cpr/cpr-config.cmake b/Src/external_dependencies/cpr/cpr-config.cmake
new file mode 100644
index 00000000..58ab4832
--- /dev/null
+++ b/Src/external_dependencies/cpr/cpr-config.cmake
@@ -0,0 +1,26 @@
+# - 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()