summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLePresidente <brian.alexander.munro@gmail.com>2019-04-20 16:39:13 +0200
committerLePresidente <brian.alexander.munro@gmail.com>2019-04-20 16:39:13 +0200
commitc3d633ab7e839b8bd35856d1b3d1761e0f664b8c (patch)
treeb5f5150fcac7d3426722a5df548fa70bf9285f5d /src
parent149c38d54d2a841af929b432b83804fafdc1e588 (diff)
dp windeployqt.exe last since we require everything to be installed before running.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 42207ee9..6f3ed96b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -362,7 +362,17 @@ INSTALL(FILES $<TARGET_PDB_FILE:ModOrganizer>
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlls.manifest.qt5
DESTINATION bin/dlls
RENAME dlls.manifest)
+
+# qdds.dll needs installing manually as Qt no longer ships with it by default.
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../qdds.dll DESTINATION bin/dlls/imageformats)
+
+install(FILES ${organizer_translations_qm} DESTINATION bin/translations)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/stylesheets
+ ${CMAKE_CURRENT_SOURCE_DIR}/tutorials
+ DESTINATION bin)
+#We should do this last, since windeployqt.exe scans the folders in bin for required modules e.g QtQuick.2 required by tutorials.
# use windeployqt.exe to install all required libraries
SET(windeploy_parameters "--no-translations --plugindir qtplugins --libdir dlls --release-with-debug-info --no-compiler-runtime")
INSTALL(
@@ -371,11 +381,7 @@ INSTALL(
${qt5bin}/windeployqt.exe ModOrganizer.exe --webenginewidgets --websockets ${windeploy_parameters}
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
)
- # run it a second time because on the first run it misses some files
- EXECUTE_PROCESS(COMMAND
- ${qt5bin}/windeployqt.exe ModOrganizer.exe --webenginewidgets --websockets ${windeploy_parameters}
- WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
- )
+
EXECUTE_PROCESS(COMMAND
${qt5bin}/windeployqt.exe uibase.dll ${windeploy_parameters}
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
@@ -389,11 +395,3 @@ INSTALL(
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/qtplugins)"
)
-# qdds.dll needs installing manually as Qt no longer ships with it by default.
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../qdds.dll DESTINATION bin/dlls/imageformats)
-
-install(FILES ${organizer_translations_qm} DESTINATION bin/translations)
-
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/stylesheets
- ${CMAKE_CURRENT_SOURCE_DIR}/tutorials
- DESTINATION bin)