From 391fa822bd14424d82ed493235c9c26d006262d1 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 24 Jan 2023 14:55:11 +0100 Subject: [PATCH] Make sure qoffscreen.dll is included in distribution Headless plot export requires qoffscreen.dll, make sure this file is included in installer. --- ApplicationExeCode/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ApplicationExeCode/CMakeLists.txt b/ApplicationExeCode/CMakeLists.txt index b58729d0b7..0e067653b1 100644 --- a/ApplicationExeCode/CMakeLists.txt +++ b/ApplicationExeCode/CMakeLists.txt @@ -568,6 +568,14 @@ if(RESINSIGHT_PRIVATE_INSTALL) install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/windeployqt/" DESTINATION ${RESINSIGHT_INSTALL_FOLDER} ) + + # install additional DLLS not able to be found by windeployqt + set(qt5_offscreen_name "$,qoffscreend,qoffscreen>") + install( + FILES ${qt5_install_prefix}/plugins/platforms/${qt5_offscreen_name}.dll + DESTINATION ${RESINSIGHT_INSTALL_FOLDER}/platforms + ) + endif() # install GRPC-related DLLs and generated_classes.py