aae3a6a466
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.
22 lines
480 B
CMake
22 lines
480 B
CMake
project(obs-libfdk)
|
|
|
|
option(ENABLE_LIBFDK "Enable FDK AAC support" OFF)
|
|
|
|
if(NOT ENABLE_LIBFDK)
|
|
obs_status(DISABLED "obs-libfdk")
|
|
return()
|
|
endif()
|
|
|
|
find_package(Libfdk REQUIRED)
|
|
|
|
add_library(obs-libfdk MODULE)
|
|
add_library(OBS::libfdk ALIAS obs-libfdk)
|
|
|
|
target_sources(obs-libfdk PRIVATE obs-libfdk.c)
|
|
|
|
target_link_libraries(obs-libfdk PRIVATE OBS::libobs LibFDK::LibFDK)
|
|
|
|
set_target_properties(obs-libfdk PROPERTIES FOLDER "plugins" PREFIX "")
|
|
|
|
setup_plugin_target(obs-libfdk)
|