aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindSrtp2.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/FindSrtp2.cmake b/cmake/FindSrtp2.cmake
new file mode 100644
index 00000000..40b0ed97
--- /dev/null
+++ b/cmake/FindSrtp2.cmake
@@ -0,0 +1,12 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(Srtp2
+ PKG_CONFIG_NAME libsrtp2
+ LIB_NAMES srtp2
+ INCLUDE_NAMES srtp2/srtp.h
+ INCLUDE_DIR_SUFFIXES srtp2 srtp2/include
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Srtp2
+ REQUIRED_VARS Srtp2_LIBRARY
+ VERSION_VAR Srtp2_VERSION) \ No newline at end of file