Skip to content

Commit 9016bf6

Browse files
committed
Include Qt image format plugins with the Windows installers
1 parent 4d2845c commit 9016bf6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,26 @@ set(SQLB_TSS
206206
"${CMAKE_SOURCE_DIR}/src/translations/sqlb_uk_UA.ts"
207207
)
208208

209+
# Windows image format plugin files
210+
set(WIN_IMG_PLUGINS
211+
"${QT5_PATH}/plugins/imageformats/qgif.dll"
212+
"${QT5_PATH}/plugins/imageformats/qicns.dll"
213+
"${QT5_PATH}/plugins/imageformats/qico.dll"
214+
"${QT5_PATH}/plugins/imageformats/qjpeg.dll"
215+
"${QT5_PATH}/plugins/imageformats/qsvg.dll"
216+
"${QT5_PATH}/plugins/imageformats/qtga.dll"
217+
"${QT5_PATH}/plugins/imageformats/qwbmp.dll"
218+
)
219+
set(WIN_IMG_PLUGINS_DEBUG
220+
"${QT5_PATH}/plugins/imageformats/qgifd.dll"
221+
"${QT5_PATH}/plugins/imageformats/qicnsd.dll"
222+
"${QT5_PATH}/plugins/imageformats/qicod.dll"
223+
"${QT5_PATH}/plugins/imageformats/qjpegd.dll"
224+
"${QT5_PATH}/plugins/imageformats/qsvgd.dll"
225+
"${QT5_PATH}/plugins/imageformats/qtgad.dll"
226+
"${QT5_PATH}/plugins/imageformats/qwbmpd.dll"
227+
)
228+
209229

210230
qt5_wrap_ui(SQLB_FORM_HDR ${SQLB_FORMS})
211231
if(SQLB_TSS)
@@ -403,6 +423,17 @@ if(WIN32 AND MSVC)
403423
${QT5_PATH}/plugins/platforms/qwindows.dll
404424
DESTINATION platforms)
405425
install(PROGRAMS "${VSREDIST_DIR}/${VSREDIST}" DESTINATION redist)
426+
427+
# The image format plugins
428+
install(FILES
429+
${WIN_IMG_PLUGINS_DEBUG}
430+
DESTINATION imageformats
431+
CONFIGURATIONS Debug)
432+
install(FILES
433+
${WIN_IMG_PLUGINS}
434+
DESTINATION imageformats
435+
CONFIGURATIONS Release)
436+
406437
# The batch file launcher
407438
install(FILES
408439
distri/winlaunch.bat

0 commit comments

Comments
 (0)