1 # - Try to find GStreamer
2 # Once done, this will define
4 # GStreamer_FOUND - system has GStreamer
5 # GStreamer_INCLUDE_DIRS - the GStreamer include directories
6 # GStreamer_LIBRARIES - link these to use GStreamer
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(GStreamer_PKGCONF gstreamer-0.10)
14 find_path(GStreamer_INCLUDE_DIR
16 PATHS ${GStreamer_PKGCONF_INCLUDE_DIRS}
17 PATH_SUFFIXES gstreamer-0.10
20 # Finally the library itself
21 find_library(GStreamer_LIBRARY
23 PATHS ${GStreamer_PKGCONF_LIBRARY_DIRS}
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.
28 set(GStreamer_PROCESS_INCLUDES GStreamer_INCLUDE_DIR)
29 set(GStreamer_PROCESS_LIBS GStreamer_LIBRARY)
30 libfind_process(GStreamer)