2022-09-20 11:50:47 +03:00
|
|
|
# We need to keep this code into separate directory so CMake will execute it after all other subdirectories install code
|
2025-09-21 17:39:39 +03:00
|
|
|
if(WIN32)
|
|
|
|
|
set(deployTargets)
|
2025-03-07 11:36:08 +03:00
|
|
|
if(TARGET vcmilauncher)
|
2025-09-21 17:39:39 +03:00
|
|
|
list(APPEND deployTargets vcmilauncher)
|
2022-09-20 11:50:47 +03:00
|
|
|
endif()
|
2025-09-21 17:39:39 +03:00
|
|
|
if(TARGET vcmieditor)
|
|
|
|
|
list(APPEND deployTargets vcmieditor)
|
|
|
|
|
endif()
|
|
|
|
|
foreach(deployTarget ${deployTargets})
|
|
|
|
|
set(targetBinary "\"\${CMAKE_INSTALL_PREFIX}/${BIN_DIR}/$<TARGET_FILE_NAME:${deployTarget}>\"")
|
|
|
|
|
vcmi_deploy_qt(windeployqt "--no-compiler-runtime ${targetBinary}")
|
|
|
|
|
endforeach()
|
2025-03-07 11:36:08 +03:00
|
|
|
endif()
|