CMake: cleanup Qt5 linking

This commit is contained in:
tobtoht 2023-04-20 17:16:02 +02:00
parent e6576e1064
commit 169bfc93e7
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -283,25 +283,14 @@ if (WITH_SCANNER)
)
endif()
if(NOT APPLE AND NOT Qt6_FOUND)
if(UNIX AND NOT APPLE AND STATIC AND NOT Qt6_FOUND)
target_link_libraries(feather
Qt5::QSvgIconPlugin
Qt5::QSvgPlugin
Qt5::QXcbIntegrationPlugin
)
endif()
if(STATIC AND NOT Qt6_FOUND)
if(NOT Qt6_FOUND)
target_link_libraries(feather
Qt5::QSvgIconPlugin
Qt5::QSvgPlugin)
endif()
if(UNIX AND NOT APPLE)
target_link_libraries(feather
Qt5::QXcbIntegrationPlugin)
endif()
endif()
if(STATIC AND UNIX AND NOT APPLE AND Qt6_FOUND)
target_link_libraries(feather Qt6::QComposePlatformInputContextPlugin)
endif()