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

36 lines
733 B
CMake
Raw Normal View History

2014-03-29 20:36:48 -07:00
project(linux-pulseaudio)
if(DISABLE_PULSEAUDIO)
message(STATUS "PulseAudio support disabled")
return()
endif()
2014-04-01 13:19:57 -07:00
find_package(PulseAudio)
if(NOT PULSEAUDIO_FOUND AND ENABLE_PULSEAUDIO)
message(FATAL_ERROR "PulseAudio not found but set as enabled")
elseif(NOT PULSEAUDIO_FOUND)
2014-04-01 13:19:57 -07:00
message(STATUS "PulseAudio not found, disabling PulseAudio plugin")
return()
endif()
include_directories(
SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
${PULSEAUDIO_INCLUDE_DIR}
)
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_with_data(linux-pulseaudio data)