obs-studio/plugins/linux-pulseaudio/CMakeLists.txt

27 lines
531 B
CMake

project(linux-pulseaudio)
find_package(PulseAudio)
if(NOT PulseAudio_FOUND)
message(STATUS "PulseAudio not found, disabling PulseAudio plugin")
return()
endif()
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
set(linux-pulseaudio_SOURCES
linux-pulseaudio.c
pulse-wrapper.c
pulse-input.c
)
add_library(linux-pulseaudio MODULE
${linux-pulseaudio_SOURCES}
)
target_link_libraries(linux-pulseaudio
libobs
${PULSEAUDIO_LIBRARY}
)
install_obs_plugin(linux-pulseaudio)
install_obs_plugin_data(linux-pulseaudio data)