1 set(SRCS Src/AudioCommon.cpp
2 Src/AudioCommonConfig.cpp
5 Src/NullSoundStream.cpp)
10 set(SRCS ${SRCS} Src/CoreAudioSoundStream.cpp)
13 set(SRCS ${SRCS} Src/AlsaSoundStream.cpp)
14 set(LIBS ${LIBS} ${ALSA_LIBRARIES})
18 set(SRCS ${SRCS} Src/AOSoundStream.cpp)
19 set(LIBS ${LIBS} ${AO_LIBRARIES})
22 if(OPENAL_FOUND OR WIN32)
23 set(SRCS ${SRCS} Src/OpenALStream.cpp)
24 set(LIBS ${LIBS} ${OPENAL_LIBRARIES})
25 endif(OPENAL_FOUND OR WIN32)
28 set(SRCS ${SRCS} Src/PulseAudioStream.cpp)
29 set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
30 endif(PULSEAUDIO_FOUND)
33 set(SRCS ${SRCS} Src/DSoundStream.cpp)
37 add_library(audiocommon STATIC ${SRCS})
38 target_link_libraries(audiocommon ${LIBS})