mirror of
https://github.com/PCSX2/pcsx2.git
synced 2024-11-23 09:29:42 +00:00
32 lines
727 B
CMake
32 lines
727 B
CMake
add_executable(updater
|
|
SZErrors.h
|
|
Updater.cpp
|
|
Updater.h
|
|
UpdaterExtractor.h
|
|
)
|
|
|
|
target_link_libraries(updater PRIVATE common fmt::fmt)
|
|
target_include_directories(updater PRIVATE .)
|
|
|
|
if(WIN32)
|
|
target_sources(updater PRIVATE ../pcsx2-qt/VCRuntimeChecker.cpp)
|
|
target_link_libraries(updater PRIVATE
|
|
LZMA::LZMA
|
|
Comctl32.lib
|
|
)
|
|
target_sources(updater PRIVATE
|
|
Windows/WindowsUpdater.cpp
|
|
Windows/resource.h
|
|
Windows/updater.rc
|
|
Windows/updater.manifest
|
|
)
|
|
set_target_properties(updater PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
endif()
|
|
|
|
if(NOT PACKAGE_MODE)
|
|
install(TARGETS updater DESTINATION ${CMAKE_SOURCE_DIR}/bin)
|
|
if(MSVC)
|
|
install(FILES $<TARGET_PDB_FILE:updater> DESTINATION ${CMAKE_SOURCE_DIR}/bin)
|
|
endif()
|
|
endif()
|