aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGnuTLS.cmake
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-05-11 12:57:02 +0200
committerfiaxh <git@lightrise.org>2021-05-11 12:57:02 +0200
commitd71604913dd5b3372a823320db83c37c845fac5c (patch)
tree2ffbff97a02c81d48d8aef4a4b7ee870507236e9 /cmake/FindGnuTLS.cmake
parente92ed27317ae398c867c946cf7206b1f0b32f3b4 (diff)
parent90f9ecf62b2ebfef14de2874e7942552409632bf (diff)
downloaddino-d71604913dd5b3372a823320db83c37c845fac5c.tar.gz
dino-d71604913dd5b3372a823320db83c37c845fac5c.zip
Merge remote-tracking branch 'origin/feature/calls'
Diffstat (limited to 'cmake/FindGnuTLS.cmake')
-rw-r--r--cmake/FindGnuTLS.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/FindGnuTLS.cmake b/cmake/FindGnuTLS.cmake
new file mode 100644
index 00000000..6b27abd7
--- /dev/null
+++ b/cmake/FindGnuTLS.cmake
@@ -0,0 +1,13 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(GnuTLS
+ PKG_CONFIG_NAME gnutls
+ LIB_NAMES gnutls
+ INCLUDE_NAMES gnutls/gnutls.h
+ INCLUDE_DIR_SUFFIXES gnutls gnutls/include
+ DEPENDS GLib
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(GnuTLS
+ REQUIRED_VARS GnuTLS_LIBRARY
+ VERSION_VAR GnuTLS_VERSION) \ No newline at end of file