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 8 include(LibFindMacros) 9 10 # Use pkg-config to get hints about paths 11 libfind_pkg_check_modules(GStreamer_PKGCONF gstreamer-0.10) 12 13 # Include dir 14 find_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 21 find_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. 28 set(GStreamer_PROCESS_INCLUDES GStreamer_INCLUDE_DIR) 29 set(GStreamer_PROCESS_LIBS GStreamer_LIBRARY) 30 libfind_process(GStreamer) 31 32