pcsx2/updater/CMakeLists.txt

32 lines
727 B
CMake
Raw Normal View History

2022-05-12 10:23:01 +00:00
add_executable(updater
2022-08-22 11:08:28 +00:00
SZErrors.h
2022-05-12 10:23:01 +00:00
Updater.cpp
Updater.h
2022-08-22 11:08:28 +00:00
UpdaterExtractor.h
2022-05-12 10:23:01 +00:00
)
2022-05-12 16:07:09 +00:00
target_link_libraries(updater PRIVATE common fmt::fmt)
2022-08-22 11:08:28 +00:00
target_include_directories(updater PRIVATE .)
2022-05-12 10:23:01 +00:00
if(WIN32)
2024-06-09 14:57:09 +00:00
target_sources(updater PRIVATE ../pcsx2-qt/VCRuntimeChecker.cpp)
2022-05-12 16:07:09 +00:00
target_link_libraries(updater PRIVATE
LZMA::LZMA
2022-08-22 11:08:28 +00:00
Comctl32.lib
2022-05-12 16:07:09 +00:00
)
2022-05-12 10:23:01 +00:00
target_sources(updater PRIVATE
2022-08-22 11:08:28 +00:00
Windows/WindowsUpdater.cpp
Windows/resource.h
Windows/updater.rc
Windows/updater.manifest
2022-05-12 10:23:01 +00:00
)
2022-08-22 11:08:28 +00:00
set_target_properties(updater PROPERTIES WIN32_EXECUTABLE TRUE)
2022-05-12 10:23:01 +00:00
endif()
2022-08-28 18:11:22 +00:00
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()