2020-08-30 20:23:41 +00:00
|
|
|
message("Running windeployqt")
|
2021-02-24 08:10:54 +00:00
|
|
|
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${_qt_bin_dir}")
|
|
|
|
if(NOT WINDEPLOYQT_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Failed to find windeployqt")
|
|
|
|
endif()
|
|
|
|
execute_process(COMMAND "${WINDEPLOYQT_EXECUTABLE}" cutter.exe
|
2020-08-30 20:23:41 +00:00
|
|
|
--plugindir "qtplugins"
|
|
|
|
--no-translations # Cutter currently isn't loading Qt translation file
|
|
|
|
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}
|
|
|
|
RESULT_VARIABLE SCRIPT_RESULT)
|
|
|
|
if (SCRIPT_RESULT)
|
2021-02-24 08:10:54 +00:00
|
|
|
message(FATAL_ERROR "Failed to bundle qt")
|
2020-08-30 20:23:41 +00:00
|
|
|
endif()
|
|
|
|
file(WRITE "${CMAKE_INSTALL_PREFIX}/qt.conf" "[PATHS]\nPlugins = qtplugins")
|