obs-studio/plugins/sndio/CMakeLists.txt
PatTheMav aae3a6a466 cmake: Fix diverging prefix padding for OBS status outputs
Status output related to OBS configuration is prefixed with the string
"OBS" and added padding for enabled and disabled features. This padding
was not aligned between platforms.

By moving the padding and prefix decoration into its own function,
both elements are controlled in a single place. CMake scripts were
changed to use this new function `obs_status` instead of using CMake's
`message` function directly.
2022-03-26 09:44:23 -04:00

21 lines
438 B
CMake

project(sndio)
option(ENABLE_SNDIO "Build OBS with sndio support" OFF)
if(NOT ENABLE_SNDIO)
obs_status(DISABLED "sndio")
return()
endif()
find_package(Sndio REQUIRED)
add_library(sndio MODULE)
add_library(OBS::sndio ALIAS sndio)
target_sources(sndio PRIVATE sndio.c sndio-input.c)
target_link_libraries(sndio PRIVATE OBS::libobs Sndio::Sndio)
set_target_properties(sndio PROPERTIES FOLDER "plugins")
setup_plugin_target(sndio)