From fb7f0011b90dcffbb8c07091fff2f894b9faa94e Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 27 Feb 2021 22:34:23 -0500 Subject: [PATCH] Simplify Qt5::WindowsIntegrationPlugin addition --- hecl-gui/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hecl-gui/CMakeLists.txt b/hecl-gui/CMakeLists.txt index 8944068aa..b88bb4d07 100644 --- a/hecl-gui/CMakeLists.txt +++ b/hecl-gui/CMakeLists.txt @@ -92,7 +92,6 @@ if (Qt6Widgets_FOUND) Qt6::Network Qt6::Widgets Qt6::Xml) - set(QT5_WINDOWS_INTEGRATION_PLUGIN "") else () set(Qt_LIBS Qt5::Core @@ -100,20 +99,15 @@ else () Qt5::Network Qt5::Widgets Qt5::Xml) - if (WIN32) - set(QT5_WINDOWS_INTEGRATION_PLUGIN - Qt5::WindowsIntegrationPlugin) - else () - set(QT5_WINDOWS_INTEGRATION_PLUGIN "") + list(APPEND Qt_LIBS Qt5::WindowsIntegrationPlugin) endif () endif () target_link_libraries(hecl-gui PRIVATE ${Qt_LIBS} hecl-light zeus - QuaZip::QuaZip - ${QT5_WINDOWS_INTEGRATION_PLUGIN}) + QuaZip::QuaZip) target_include_directories(hecl-gui PRIVATE quazip/quazip) target_compile_definitions(hecl-gui PRIVATE QUAZIP_STATIC=1)