1#############################################################################
2##    Kwave                - cmake/KwavePulseAudioSupport.cmake
3##                           -------------------
4##    begin                : Mon Sep 28 2009
5##    copyright            : (C) 2009 by Thomas Eschenbacher
6##    email                : Thomas.Eschenbacher@gmx.de
7#############################################################################
8#
9#############################################################################
10#                                                                           #
11# Redistribution and use in source and binary forms, with or without        #
12# modification, are permitted provided that the following conditions        #
13# are met:                                                                  #
14#                                                                           #
15# 1. Redistributions of source code must retain the above copyright         #
16#    notice, this list of conditions and the following disclaimer.          #
17# 2. Redistributions in binary form must reproduce the above copyright      #
18#    notice, this list of conditions and the following disclaimer in the    #
19#    documentation and/or other materials provided with the distribution.   #
20#                                                                           #
21# For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file.        #
22#                                                                           #
23#############################################################################
24
25OPTION(WITH_PULSEAUDIO "enable playback/recording via PulseAudio [default=on]" ON)
26
27IF (WITH_PULSEAUDIO)
28
29    INCLUDE(FindPkgConfig)
30    INCLUDE(UsePkgConfig)
31
32    PKG_CHECK_MODULES(PULSEAUDIO REQUIRED libpulse>=0.9.16)
33
34    MESSAGE(STATUS "Found PulseAudio library in ${PULSEAUDIO_LIBDIR}")
35    MESSAGE(STATUS "Found PulseAudio headers in ${PULSEAUDIO_INCLUDEDIR}")
36
37    SET(HAVE_PULSEAUDIO_SUPPORT  ON CACHE BOOL "enable PulseAudio support")
38
39ENDIF (WITH_PULSEAUDIO)
40
41#############################################################################
42#############################################################################
43