Copy Qt pdb files to the build folder when present

Qt is distributed both with and without pdb files. When they are present,
copy them next to the Qt dlls so symbols are available when debugging.

Pass --pdb to windeployqt for the configurations built with debug
information, and copy the matching pdb file in the AppFwk test
applications and unit tests using a helper script that skips missing
files.
This commit is contained in:
Magne Sjaastad committed 2026-08-10 13:48:34 +02:00
1 parent 71c0f0e70f
commit c9d118f2de
5 files changed
+54 -1

No files matched your search

+2 -1
View File
@@ -396,7 +396,8 @@ if(RESINSIGHT_PRIVATE_INSTALL)
POST_BUILD
COMMAND
${WINDEPLOYQT_EXECUTABLE} $<TARGET_FILE:ResInsight>
"$<IF:$<CONFIG:Debug>,--debug,--release>" --no-translations >NUL 2>NUL
"$<IF:$<CONFIG:Debug>,--debug,--release>"
"$<$<CONFIG:Debug,RelWithDebInfo>:--pdb>" --no-translations >NUL 2>NUL
COMMENT
"Running windeployqt to deploy Qt dependencies to the build folder, required by install()"
)