1 # - Try to find GStreamer-Plugins-Base
2 # Once done, this will define
4 # GStreamer-Plugins-Base_FOUND - system has GStreamer-Plugins-Base
5 # GStreamer-Plugins-Base_INCLUDE_DIRS - the GStreamer-Plugins-Base include directories
6 # GStreamer-Plugins-Base_LIBRARIES - link these to use GStreamer-Plugins-Base
11 libfind_package(GStreamer-Plugins-Base GStreamer)
13 # Use pkg-config to get hints about paths
14 libfind_pkg_check_modules(GStreamer-Plugins-Base_PKGCONF gstreamer-plugins-base-0.10)
17 find_path(GStreamer-Plugins-Base_INCLUDE_DIR
18 NAMES gst/audio/audio.h
19 PATHS ${GStreamer-Plugins-Base_PKGCONF_INCLUDE_DIRS}
20 PATH_SUFFIXES gstreamer-0.10
23 # Finally the library itself
24 find_library(GStreamer-Plugins-Base_LIBRARY
26 PATHS ${GStreamer-Plugins-Base_PKGCONF_LIBRARY_DIRS}
29 # Set the include dir variables and the libraries and let libfind_process do the rest.
30 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
31 set(GStreamer-Plugins-Base_PROCESS_INCLUDES GStreamer-Plugins-Base_INCLUDE_DIR GStreamer_INCLUDE_DIR)
32 set(GStreamer-Plugins-Base_PROCESS_LIBS GStreamer-Plugins-Base_LIBRARY GStreamer_LIBRARIES)
33 libfind_process(GStreamer-Plugins-Base)