From e6a933ad307116952d3202c36d0a8d6e7f4b0946 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 21 Mar 2021 12:41:36 +0100 Subject: Add gstreamer .cmake instructions --- cmake/FindGst.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cmake/FindGst.cmake (limited to 'cmake/FindGst.cmake') diff --git a/cmake/FindGst.cmake b/cmake/FindGst.cmake new file mode 100644 index 00000000..942d0129 --- /dev/null +++ b/cmake/FindGst.cmake @@ -0,0 +1,12 @@ +include(PkgConfigWithFallback) +find_pkg_config_with_fallback(Gst + PKG_CONFIG_NAME gstreamer-1.0 + LIB_NAMES gstreamer-1.0 + INCLUDE_NAMES gst/gst.h + INCLUDE_DIR_SUFFIXES gstreamer-1.0 gstreamer-1.0/include +) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Gst + REQUIRED_VARS Gst_LIBRARY + VERSION_VAR Gst_VERSION) -- cgit v1.2.3-70-g09d2