mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e9c0eee9e4 | |||
f4a3de575c | |||
2bfa1b4c64 | |||
0e611f579b |
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
set(obs-websocket_VERSION 5.3.0)
|
||||
set(obs-websocket_VERSION 5.3.1)
|
||||
set(OBS_WEBSOCKET_RPC_VERSION 1)
|
||||
|
||||
option(ENABLE_WEBSOCKET "Enable building OBS with websocket plugin" ON)
|
||||
@ -18,7 +18,9 @@ find_qt(COMPONENTS Core Widgets Svg Network)
|
||||
find_package(nlohmann_json 3 REQUIRED)
|
||||
|
||||
# Find qrcodegencpp
|
||||
find_package(Libqrcodegencpp REQUIRED)
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
||||
find_package(qrcodegencpp REQUIRED)
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)
|
||||
|
||||
# Find WebSocket++
|
||||
find_package(Websocketpp 0.8 REQUIRED)
|
||||
@ -151,7 +153,7 @@ target_link_libraries(
|
||||
nlohmann_json::nlohmann_json
|
||||
Websocketpp::Websocketpp
|
||||
Asio::Asio
|
||||
Libqrcodegencpp::Libqrcodegencpp)
|
||||
qrcodegencpp::qrcodegencpp)
|
||||
|
||||
set_target_properties_obs(
|
||||
obs-websocket
|
||||
@ -166,4 +168,6 @@ if(OS_WINDOWS)
|
||||
TARGET obs-websocket
|
||||
APPEND
|
||||
PROPERTY AUTORCC_OPTIONS --format-version 1)
|
||||
|
||||
target_link_options(obs-websocket PRIVATE /IGNORE:4099)
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
project(obs-websocket VERSION 5.3.0)
|
||||
project(obs-websocket VERSION 5.3.1)
|
||||
set(OBS_WEBSOCKET_RPC_VERSION 1)
|
||||
|
||||
option(ENABLE_WEBSOCKET "Enable building OBS with websocket plugin" ON)
|
||||
@ -18,7 +18,9 @@ find_qt(COMPONENTS Core Widgets Svg Network)
|
||||
find_package(nlohmann_json 3 REQUIRED)
|
||||
|
||||
# Find qrcodegencpp
|
||||
find_package(Libqrcodegencpp REQUIRED)
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
||||
find_package(qrcodegencpp REQUIRED)
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)
|
||||
|
||||
# Find WebSocket++
|
||||
find_package(Websocketpp 0.8 REQUIRED)
|
||||
@ -138,7 +140,7 @@ target_link_libraries(
|
||||
nlohmann_json::nlohmann_json
|
||||
Websocketpp::Websocketpp
|
||||
Asio::Asio
|
||||
Libqrcodegencpp::Libqrcodegencpp)
|
||||
qrcodegencpp::qrcodegencpp)
|
||||
|
||||
target_compile_features(obs-websocket PRIVATE cxx_std_17)
|
||||
|
||||
@ -155,6 +157,7 @@ endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(obs-websocket PRIVATE /wd4267 /wd4996)
|
||||
target_link_options(obs-websocket PRIVATE "LINKER:/IGNORE:4099")
|
||||
else()
|
||||
target_compile_options(
|
||||
obs-websocket
|
||||
|
Reference in New Issue
Block a user