win-update: Remove legacy CMake file

This commit is contained in:
tytan652
2024-10-07 15:02:23 -04:00
committed by Ryan Foster
parent cb1a15ecdf
commit 2aedaaec51
-50
View File
@@ -1,50 +0,0 @@
project(updater)
option(ENABLE_UPDATER "Build with Windows updater" ON)
if(NOT ENABLE_UPDATER)
message(STATUS "OBS: DISABLED Windows updater")
return()
endif()
find_package(zstd)
find_package(nlohmann_json 3 REQUIRED)
add_executable(updater WIN32)
target_sources(
updater
PRIVATE updater.cpp
updater.hpp
patch.cpp
http.cpp
hash.cpp
resource.h
updater.rc
init-hook-files.c
updater.manifest
helpers.cpp
helpers.hpp)
target_include_directories(updater PRIVATE ${CMAKE_SOURCE_DIR}/libobs)
target_compile_definitions(updater PRIVATE NOMINMAX "PSAPI_VERSION=2")
if(MSVC)
target_compile_options(updater PRIVATE $<IF:$<CONFIG:DEBUG>,/MTd,/MT>)
target_compile_options(updater PRIVATE "/utf-8")
target_link_options(updater PRIVATE "LINKER:/IGNORE:4098")
endif()
target_link_libraries(
updater
PRIVATE OBS::blake2
nlohmann_json::nlohmann_json
zstd::libzstd_static
comctl32
shell32
version
winhttp
wintrust)
set_target_properties(updater PROPERTIES FOLDER "frontend")