mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 04:37:09 +08:00
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.
23 lines
663 B
CMake
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 "")
|