mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 00:12:40 +00:00
16 lines
525 B
CMake
16 lines
525 B
CMake
# The installer is copied outside the application before it runs. Keep it free of
|
|
# Qt and application DLL dependencies so it can replace those files on Windows.
|
|
if(MSVC)
|
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
endif()
|
|
add_executable(kyty_updater main.cpp UpdateInstaller.cpp)
|
|
|
|
if(MSVC)
|
|
target_compile_options(kyty_updater PRIVATE /EHsc)
|
|
else()
|
|
target_compile_options(kyty_updater PRIVATE -fexceptions)
|
|
endif()
|
|
if(MINGW)
|
|
target_link_options(kyty_updater PRIVATE -static -municode)
|
|
endif()
|