yolobs-studio/plugins/linux-alsa/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
607 B
CMake
Raw Normal View History

2016-05-24 19:53:01 +00:00
project(linux-alsa)
if(DISABLE_ALSA)
message(STATUS "ALSA support disabled")
return()
endif()
find_package(ALSA)
if(NOT ALSA_FOUND AND ENABLE_ALSA)
message(FATAL_ERROR "ALSA not found but set as enabled")
elseif(NOT ALSA_FOUND)
message(STATUS "ALSA not found, disabling ALSA plugin")
return()
endif()
include_directories(
SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
${ALSA_INCLUDE_DIR}
)
set(linux-alsa_SOURCES
linux-alsa.c
alsa-input.c
)
add_library(linux-alsa MODULE
${linux-alsa_SOURCES}
)
target_link_libraries(linux-alsa
libobs
${ALSA_LIBRARY}
)
install_obs_plugin_with_data(linux-alsa data)