1 # - Try to find GStreamer-Base 2 # Once done, this will define 3 # 4 # GStreamer-Base_FOUND - system has GStreamer-Base 5 # GStreamer-Base_INCLUDE_DIRS - the GStreamer-Base include directories 6 # GStreamer-Base_LIBRARIES - link these to use GStreamer-Base 7 8 include(LibFindMacros) 9 10 # Dependencies 11 libfind_package(GStreamer-Base GStreamer) 12 13 # Use pkg-config to get hints about paths 14 libfind_pkg_check_modules(GStreamer-Base_PKGCONF gstreamer-base-0.10) 15 16 # Include dir 17 find_path(GStreamer-Base_INCLUDE_DIR 18 NAMES gst/gst.h 19 PATHS ${GStreamer-Base_PKGCONF_INCLUDE_DIRS} 20 PATH_SUFFIXES gstreamer-0.10 21 ) 22 23 # Finally the library itself 24 find_library(GStreamer-Base_LIBRARY 25 NAMES gstbase-0.10 26 PATHS ${GStreamer-Base_PKGCONF_LIBRARY_DIRS} 27 ) 28 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-Base_PROCESS_INCLUDES GStreamer-Base_INCLUDE_DIR GStreamer_INCLUDE_DIR) 32 set(GStreamer-Base_PROCESS_LIBS GStreamer-Base_LIBRARY GStreamer_LIBRARIES) 33 libfind_process(GStreamer-Base) 34