0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
obs-studio/UI/win-update/updater/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
974 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.28...3.30)
find_package(zstd)
2023-07-22 00:10:59 +02:00
find_package(nlohmann_json 3 REQUIRED)
add_executable(updater WIN32)
target_sources(
updater
PRIVATE
hash.cpp
helpers.cpp
helpers.hpp
http.cpp
init-hook-files.c
2023-07-22 00:10:59 +02:00
manifest.hpp
patch.cpp
resource.h
updater.cpp
updater.hpp
updater.manifest
updater.rc
)
target_compile_definitions(updater PRIVATE NOMINMAX "PSAPI_VERSION=2")
2017-02-20 13:50:17 +01:00
target_include_directories(updater PRIVATE "${CMAKE_SOURCE_DIR}/libobs" "${CMAKE_SOURCE_DIR}/UI/win-update")
2017-02-20 13:50:17 +01:00
target_link_libraries(
updater
PRIVATE OBS::blake2_static nlohmann_json::nlohmann_json zstd::libzstd_static comctl32 shell32 version winhttp wintrust
)
# zstd is hardcoded with /DEFAULTLIB:LIBCMT
target_link_options(updater PRIVATE $<$<CONFIG:DEBUG>:/NODEFAULTLIB:LIBCMT>)
set_target_properties(
updater
PROPERTIES FOLDER frontend OUTPUT_NAME updater MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
)