2014-03-29 20:36:48 -07:00
|
|
|
project(linux-pulseaudio)
|
|
|
|
|
2014-04-01 13:19:57 -07:00
|
|
|
find_package(PulseAudio)
|
|
|
|
if(NOT PulseAudio_FOUND)
|
|
|
|
message(STATUS "PulseAudio not found, disabling PulseAudio plugin")
|
|
|
|
return()
|
|
|
|
endif()
|
2014-03-10 15:02:37 -07:00
|
|
|
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
|
|
|
|
set(linux-pulseaudio_SOURCES
|
|
|
|
linux-pulseaudio.c
|
2014-03-12 07:59:18 -07:00
|
|
|
pulse-wrapper.c
|
2014-03-10 15:02:37 -07:00
|
|
|
pulse-input.c
|
|
|
|
)
|
2014-03-11 10:12:54 -07:00
|
|
|
|
2014-03-10 15:02:37 -07:00
|
|
|
add_library(linux-pulseaudio MODULE
|
|
|
|
${linux-pulseaudio_SOURCES}
|
|
|
|
)
|
|
|
|
target_link_libraries(linux-pulseaudio
|
|
|
|
libobs
|
|
|
|
${PULSEAUDIO_LIBRARY}
|
|
|
|
)
|
|
|
|
|
|
|
|
install_obs_plugin(linux-pulseaudio)
|