[EFL] Implement the Web Audio API feature.
[WebKit-https.git] / Source / cmake / FindGStreamer-FFT.cmake
1 # - Try to find GStreamer-FFT
2 # Once done, this will define
3 #
4 #  GStreamer-FFT_FOUND - system has GStreamer-FFT
5 #  GStreamer-FFT_INCLUDE_DIRS - the GStreamer-FFT include directories
6 #  GStreamer-FFT_LIBRARIES - link these to use GStreamer-FFT
7
8 include(LibFindMacros)
9
10 # Dependencies
11 libfind_package(GStreamer-FFT GStreamer)
12 libfind_package(GStreamer-FFT GStreamer-Base)
13
14 # Use pkg-config to get hints about paths
15 libfind_pkg_check_modules(GStreamer-FFT_PKGCONF gstreamer-base-0.10>=0.10.30)
16
17 # Include dir
18 find_path(GStreamer-FFT_INCLUDE_DIR
19   NAMES gst/fft/gstfftf32.h
20   PATHS ${GStreamer-FFT_PKGCONF_INCLUDE_DIRS}
21   PATH_SUFFIXES gstreamer-0.10
22 )
23
24 # Finally the library itself
25 find_library(GStreamer-FFT_LIBRARY
26   NAMES gstfft-0.10
27   PATHS ${GStreamer-FFT_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-FFT_PROCESS_INCLUDES GStreamer-FFT_INCLUDE_DIR GStreamer_INCLUDE_DIR)
33 set(GStreamer-FFT_PROCESS_LIBS GStreamer-FFT_LIBRARY GStreamer_LIBRARIES)
34 libfind_process(GStreamer-FFT)