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.
28 lines
669 B
CMake
28 lines
669 B
CMake
if(OS_WINDOWS)
|
|
if(NOT MINGW)
|
|
add_subdirectory(w32-pthreads)
|
|
endif()
|
|
add_subdirectory(ipc-util)
|
|
|
|
add_subdirectory(blake2)
|
|
add_subdirectory(lzma)
|
|
endif()
|
|
|
|
add_subdirectory(glad)
|
|
add_subdirectory(media-playback)
|
|
add_subdirectory(file-updater)
|
|
add_subdirectory(obs-scripting)
|
|
add_subdirectory(opts-parser)
|
|
add_subdirectory(libcaption)
|
|
|
|
# Use bundled jansson version as fallback
|
|
find_package(Jansson 2.5 QUIET)
|
|
if(NOT TARGET Jansson::Jansson)
|
|
obs_status(STATUS "Jansson >=2.5 not found, building bundled version.")
|
|
|
|
add_subdirectory(jansson)
|
|
add_library(Jansson::Jansson ALIAS jansson)
|
|
else()
|
|
obs_status(STATUS "Using system Jansson library.")
|
|
endif()
|