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

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

36 lines
669 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}
)
2020-10-01 20:15:25 +00:00
set_target_properties(linux-alsa PROPERTIES FOLDER "plugins")
2016-05-24 19:53:01 +00:00
install_obs_plugin_with_data(linux-alsa data)