1# - Try to find GStreamer-Pbutils 2# Once done, this will define 3# 4# GStreamer-Pbutils_FOUND - system has GStreamer-Pbutils 5# GStreamer-Pbutils_INCLUDE_DIRS - the GStreamer-Pbutils include directories 6# GStreamer-Pbutils_LIBRARIES - link these to use GStreamer-Pbutils 7 8include(LibFindMacros) 9 10# Dependencies 11libfind_package(GStreamer-Pbutils GStreamer) 12 13# Use pkg-config to get hints about paths 14libfind_pkg_check_modules(GStreamer-Pbutils_PKGCONF gstreamer-pbutils-0.10) 15 16# Include dir 17find_path(GStreamer-Pbutils_INCLUDE_DIR 18 NAMES gst/gst.h 19 PATHS ${GStreamer-Pbutils_PKGCONF_INCLUDE_DIRS} 20 PATH_SUFFIXES gstreamer-0.10 21) 22 23# Finally the library itself 24find_library(GStreamer-Pbutils_LIBRARY 25 NAMES gstpbutils-0.10 26 PATHS ${GStreamer-Pbutils_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. 31set(GStreamer-Pbutils_PROCESS_INCLUDES GStreamer-Pbutils_INCLUDE_DIR GStreamer_INCLUDE_DIR) 32set(GStreamer-Pbutils_PROCESS_LIBS GStreamer-Pbutils_LIBRARY GStreamer_LIBRARY) 33libfind_process(GStreamer-Pbutils) 34