1 # - Try to find GStreamer-Video 2 # Once done, this will define 3 # 4 # GStreamer-Video_FOUND - system has GStreamer-Video 5 # GStreamer-Video_INCLUDE_DIRS - the GStreamer-Video include directories 6 # GStreamer-Video_LIBRARIES - link these to use GStreamer-Video 7 8 include(LibFindMacros) 9 10 # Dependencies 11 libfind_package(GStreamer-Video GStreamer) 12 libfind_package(GStreamer-Video GStreamer-Base) 13 14 # Use pkg-config to get hints about paths 15 libfind_pkg_check_modules(GStreamer-Video_PKGCONF gstreamer-video-0.10) 16 17 # Include dir 18 find_path(GStreamer-Video_INCLUDE_DIR 19 NAMES gst/gst.h 20 PATHS ${GStreamer-Video_PKGCONF_INCLUDE_DIRS} 21 PATH_SUFFIXES gstreamer-0.10 22 ) 23 24 # Finally the library itself 25 find_library(GStreamer-Video_LIBRARY 26 NAMES gstvideo-0.10 27 PATHS ${GStreamer-Video_PKGCONF_LIBRARY_DIRS} 28 ) 29 30 # Set the include dir variables and the libraries and let libfind_process do the rest. 31 # NOTE: Singular variables for this library, plural for libraries this this lib depends on. 32 set(GStreamer-Video_PROCESS_INCLUDES GStreamer-Video_INCLUDE_DIR GStreamer_INCLUDE_DIR GStreamer-Base_INCLUDE_DIR) 33 set(GStreamer-Video_PROCESS_LIBS GStreamer-Video_LIBRARY GStreamer_LIBRARIES GStreamer-Base_LIBRARIES) 34 libfind_process(GStreamer-Video) 35