aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findcpr.cmake14
-rw-r--r--cmake/Findcurl.cmake14
-rw-r--r--cmake/Finddpp.cmake14
-rw-r--r--cmake/Findspdlog.cmake14
4 files changed, 56 insertions, 0 deletions
diff --git a/cmake/Findcpr.cmake b/cmake/Findcpr.cmake
new file mode 100644
index 0000000..a8aed9d
--- /dev/null
+++ b/cmake/Findcpr.cmake
@@ -0,0 +1,14 @@
+include(FindPackageHandleStandardArgs)
+
+find_library(CPR_LIBRARY NAMES cpr)
+
+find_package_handle_standard_args(cpr REQUIRED_VARS CPR_LIBRARY)
+
+if (CPR_FOUND)
+ mark_as_advanced(CPR_LIBRARY)
+endif()
+
+if(CPR_FOUND AND NOT TARGET cpr::cpr)
+ add_library(cpr::cpr IMPORTED UNKNOWN)
+ set_property(TARGET cpr::cpr PROPERTY IMPORTED_LOCATION ${CPR_LIBRARY})
+endif() \ No newline at end of file
diff --git a/cmake/Findcurl.cmake b/cmake/Findcurl.cmake
new file mode 100644
index 0000000..3ad12ea
--- /dev/null
+++ b/cmake/Findcurl.cmake
@@ -0,0 +1,14 @@
+include(FindPackageHandleStandardArgs)
+
+find_library(CURL_LIBRARY NAMES curl)
+
+find_package_handle_standard_args(curl REQUIRED_VARS CURL_LIBRARY)
+
+if (CURL_FOUND)
+ mark_as_advanced(CURL_LIBRARY)
+endif()
+
+if(CURL_FOUND AND NOT TARGET curl::curl)
+ add_library(CURL::libcurl IMPORTED UNKNOWN)
+ set_property(TARGET CURL::libcurl PROPERTY IMPORTED_LOCATION ${CURL_LIBRARY})
+endif() \ No newline at end of file
diff --git a/cmake/Finddpp.cmake b/cmake/Finddpp.cmake
new file mode 100644
index 0000000..92933b8
--- /dev/null
+++ b/cmake/Finddpp.cmake
@@ -0,0 +1,14 @@
+include(FindPackageHandleStandardArgs)
+
+find_library(DPP_LIBRARY NAMES dpp)
+
+find_package_handle_standard_args(dpp REQUIRED_VARS DPP_LIBRARY)
+
+if (DPP_FOUND)
+ mark_as_advanced(DPP_LIBRARY)
+endif()
+
+if(DPP_FOUND AND NOT TARGET dpp::dpp)
+ add_library(dpp::dpp IMPORTED UNKNOWN)
+ set_property(TARGET dpp::dpp PROPERTY IMPORTED_LOCATION ${DPP_LIBRARY})
+endif() \ No newline at end of file
diff --git a/cmake/Findspdlog.cmake b/cmake/Findspdlog.cmake
new file mode 100644
index 0000000..e286724
--- /dev/null
+++ b/cmake/Findspdlog.cmake
@@ -0,0 +1,14 @@
+include(FindPackageHandleStandardArgs)
+
+find_library(SPDLOG_LIBRARY NAMES spdlog)
+
+find_package_handle_standard_args(spdlog REQUIRED_VARS SPDLOG_LIBRARY)
+
+if (SPDLOG_FOUND)
+ mark_as_advanced(SPDLOG_LIBRARY)
+endif()
+
+if(SPDLOG_FOUND AND NOT TARGET spdlog::spdlog)
+ add_library(spdlog::spdlog IMPORTED UNKNOWN)
+ set_property(TARGET spdlog::spdlog PROPERTY IMPORTED_LOCATION ${SPDLOG_LIBRARY})
+endif() \ No newline at end of file