Files
obs-studio/plugins/obs-webrtc/CMakeLists.txt
T
Ryan Foster d00068cb6c plugins: Update CMake minimum to 3.22
Since Ubuntu 22.04 is now our minimum supported Ubuntu version, and it
has CMake 3.22, let's make CMake 3.22 the minimum CMake version.
2023-08-05 16:45:46 -07:00

23 lines
663 B
CMake

cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
option(ENABLE_WEBRTC "Enable WebRTC Output support" ON)
if(NOT ENABLE_WEBRTC)
target_disable(obs-webrtc)
return()
endif()
find_package(LibDataChannel REQUIRED)
find_package(CURL REQUIRED)
add_library(obs-webrtc MODULE)
add_library(OBS::webrtc ALIAS obs-webrtc)
target_sources(obs-webrtc PRIVATE obs-webrtc.cpp whip-output.cpp whip-output.h whip-service.cpp whip-service.h
whip-utils.h)
target_link_libraries(obs-webrtc PRIVATE OBS::libobs LibDataChannel::LibDataChannel CURL::libcurl)
set_target_properties_obs(obs-webrtc PROPERTIES FOLDER plugins PREFIX "")