mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-06 07:45:51 +00:00
Fix Qt5::WindowsIntegrationPlugin being included on non-windows platforms
This commit is contained in:
parent
cb2d826cbd
commit
92fe1a9577
@ -89,21 +89,28 @@ if(Qt6Widgets_FOUND)
|
||||
Qt6::Network
|
||||
Qt6::Widgets
|
||||
Qt6::Xml)
|
||||
set(QT5_WINDOWS_INTEGRATION_PLUGIN "")
|
||||
else ()
|
||||
set(Qt_LIBS
|
||||
Qt5::Core
|
||||
Qt5::Gui
|
||||
Qt5::Network
|
||||
Qt5::Widgets
|
||||
Qt5::Xml
|
||||
Qt5::Xml)
|
||||
|
||||
if (WIN32)
|
||||
set(QT5_WINDOWS_INTEGRATION_PLUGIN
|
||||
Qt5::WindowsIntegrationPlugin)
|
||||
else ()
|
||||
set(QT5_WINDOWS_INTEGRATION_PLUGIN "")
|
||||
endif ()
|
||||
endif ()
|
||||
target_link_libraries(hecl-gui PRIVATE
|
||||
${Qt_LIBS}
|
||||
hecl-light
|
||||
zeus
|
||||
QuaZip::QuaZip
|
||||
)
|
||||
${QT5_WINDOWS_INTEGRATION_PLUGIN})
|
||||
|
||||
target_include_directories(hecl-gui PRIVATE quazip/quazip)
|
||||
target_compile_definitions(hecl-gui PRIVATE QUAZIP_STATIC=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user