CMakeLists.txt 529 B

1234567891011121314
  1. # We need to keep this code into separate directory so CMake will execute it after all other subdirectories install code
  2. if(WIN32)
  3. set(deployTargets)
  4. if(TARGET vcmilauncher)
  5. list(APPEND deployTargets vcmilauncher)
  6. endif()
  7. if(TARGET vcmieditor)
  8. list(APPEND deployTargets vcmieditor)
  9. endif()
  10. foreach(deployTarget ${deployTargets})
  11. set(targetBinary "\"\${CMAKE_INSTALL_PREFIX}/${BIN_DIR}/$<TARGET_FILE_NAME:${deployTarget}>\"")
  12. vcmi_deploy_qt(windeployqt "--no-compiler-runtime ${targetBinary}")
  13. endforeach()
  14. endif()