Allow build without alsa on linux

This commit is contained in:
Jonas Kvinge 2018-11-17 16:00:32 +01:00 committed by John Maguire
parent 1d5783b846
commit caedd6bcf4
1 changed files with 5 additions and 5 deletions

View File

@ -48,16 +48,12 @@ find_package(Gettext REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Protobuf REQUIRED)
find_package(FFTW3)
find_package(ALSA)
if(LINUX)
find_package(ALSA REQUIRED)
pkg_check_modules(DBUS REQUIRED dbus-1)
else(LINUX)
find_package(ALSA)
pkg_check_modules(DBUS dbus-1)
endif(LINUX)
if(ALSA_FOUND)
set(HAVE_ALSA ON)
endif()
if (NOT APPLE)
find_package(X11)
endif()
@ -329,6 +325,10 @@ optional_component(SPARKLE ON "Sparkle integration"
DEPENDS "Sparkle" SPARKLE
)
optional_component(ALSA ON "ALSA integration"
DEPENDS "ALSA" ALSA_FOUND
)
optional_component(LIBPULSE ON "Pulse audio integration"
DEPENDS "libpulse" LIBPULSE_FOUND
)