message: Add custom command to call win-/macdeployqt after build steps
diff: @@ -419,8 +419,13 @@ if (ENABLE_GUI)
  MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_LIST_DIR}/Info.plist.in
  )
  target_link_libraries(Aliaswallet "-framework AppKit")
  - endif()
  - if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
  + add_custom_command(TARGET Aliaswallet POST_BUILD
  + COMMAND "${MACDEPLOYQT_EXECUTABLE}" --force --libdir ${CMAKE_BINARY_DIR}/delivery --plugindir ${CMAKE_BINARY_DIR}/delivery
  + "$<TARGET_FILE_DIR:Aliaswallet>/../.."
  + -always-overwrite
  + COMMENT "Running macdeployqt..."
  + )
  + elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
  target_sources(Aliaswallet
  PUBLIC
  ${CMAKE_CURRENT_LIST_DIR}/qt/winshutdownmonitor.h
  @@ -428,6 +433,12 @@ if (ENABLE_GUI)
  ${CMAKE_CURRENT_LIST_DIR}/qt/winshutdownmonitor.cpp
  )
  target_link_libraries(Aliaswallet "Shlwapi")
  + add_custom_command(TARGET Aliaswallet POST_BUILD
  + COMMAND "${CMAKE_COMMAND}" -E
  + env PATH="${_qt_bin_dir}" "${WINDEPLOYQT_EXECUTABLE}" --force --libdir ${CMAKE_BINARY_DIR}/delivery --plugindir ${CMAKE_BINARY_DIR}/delivery --debug --qmldir ${CMAKE_SOURCE_DIR}/src/qt/res --qml --quick --webengine
  + "$<TARGET_FILE:Aliaswallet>"
  + COMMENT "Running windeployqt..."
  + )
  endif()
  endif()
  endif ()
  