• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# - Try to find GStreamer
2# Once done, this will define
3#
4#  GStreamer_FOUND - system has GStreamer
5#  GStreamer_INCLUDE_DIRS - the GStreamer include directories
6#  GStreamer_LIBRARIES - link these to use GStreamer
7
8include(LibFindMacros)
9
10# Use pkg-config to get hints about paths
11libfind_pkg_check_modules(GStreamer_PKGCONF gstreamer-0.10)
12
13# Include dir
14find_path(GStreamer_INCLUDE_DIR
15  NAMES gst/gst.h
16  PATHS ${GStreamer_PKGCONF_INCLUDE_DIRS}
17  PATH_SUFFIXES gstreamer-0.10
18)
19
20# Finally the library itself
21find_library(GStreamer_LIBRARY
22  NAMES gstreamer-0.10
23  PATHS ${GStreamer_PKGCONF_LIBRARY_DIRS}
24)
25
26# Set the include dir variables and the libraries and let libfind_process do the rest.
27# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
28set(GStreamer_PROCESS_INCLUDES GStreamer_INCLUDE_DIR)
29set(GStreamer_PROCESS_LIBS GStreamer_LIBRARY)
30libfind_process(GStreamer)
31
32