mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
[cmake] call windeployqt for all Qt-dependent targets
This commit is contained in:
committed by
Andrey Filipenkov
parent
b93249bba2
commit
a07ac419a7
@@ -1,10 +1,14 @@
|
|||||||
# We need to keep this code into separate directory so CMake will execute it after all other subdirectories install code
|
# We need to keep this code into separate directory so CMake will execute it after all other subdirectories install code
|
||||||
if(WIN32 AND (ENABLE_LAUNCHER OR ENABLE_EDITOR))
|
if(WIN32)
|
||||||
|
set(deployTargets)
|
||||||
if(TARGET vcmilauncher)
|
if(TARGET vcmilauncher)
|
||||||
set(deployTarget vcmilauncher)
|
list(APPEND deployTargets vcmilauncher)
|
||||||
elseif(TARGET vcmieditor)
|
|
||||||
set(deployTarget vcmieditor)
|
|
||||||
endif()
|
endif()
|
||||||
set(targetBinary "\"\${CMAKE_INSTALL_PREFIX}/${BIN_DIR}/$<TARGET_FILE_NAME:${deployTarget}>\"")
|
if(TARGET vcmieditor)
|
||||||
vcmi_deploy_qt(windeployqt "--no-compiler-runtime ${targetBinary}")
|
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()
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user