Explicitly include QModernWindowsStylePlugin in static builds

I hope this'll make it look right.
This commit is contained in:
Nadia Holmquist Pedersen 2024-07-30 03:10:01 +02:00
parent d62c61ba08
commit 01c2d65f07

View File

@ -154,6 +154,9 @@ endif()
if (BUILD_STATIC)
qt_import_plugins(melonDS INCLUDE Qt::QSvgPlugin)
if (WIN32 AND USE_QT6)
qt_import_plugins(melonDS INCLUDE Qt::QModernWindowsStylePlugin)
endif()
target_link_options(melonDS PRIVATE -static)
endif()
@ -244,4 +247,4 @@ if (ENABLE_OGLRENDERER)
target_compile_definitions(melonDS PUBLIC OGLRENDERER_ENABLED)
target_compile_definitions(melonDS PUBLIC MELONDS_GL_HEADER=${MELONDS_GL_HEADER})
target_compile_definitions(core PUBLIC MELONDS_GL_HEADER=${MELONDS_GL_HEADER})
endif()
endif()