X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Faudio%2FCMakeLists.txt;h=ee858b4ca11334545c787a3f56ea49aa4b198f14;hb=f16675ed24fd331903b8d6ef5d8ac07f6acbd6b0;hp=7fa1f75f98fe134e61a6464e927b3835f926da7a;hpb=e76dff6729fb9acd1638019507e7edbbd8af23f5;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/CMakeLists.txt b/plugins/audio/CMakeLists.txt index 7fa1f75f..ee858b4c 100644 --- a/plugins/audio/CMakeLists.txt +++ b/plugins/audio/CMakeLists.txt @@ -1,6 +1,10 @@ IF(alsa_FOUND) - ADD_LIBRARY(audio-api MODULE audio-api.c audio-alsa.c) + IF(pulseaudio_FOUND) + SET(pulse_sources audio-pulse.c) + ENDIF(pulseaudio_FOUND) + + ADD_LIBRARY(audio-api MODULE audio-api.c audio-alsa.c ${pulse_sources}) SET_TARGET_PROPERTIES(audio-api PROPERTIES PREFIX "") TARGET_LINK_LIBRARIES(audio-api ${link_libraries}) INCLUDE_DIRECTORIES(${include_dirs})