Commit c64ed449 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use versionless Qt cmake target

This makes it easier to build against both Qt5 and Qt6

GIT_SILENT
parent e18bf6c7
......@@ -21,8 +21,8 @@ target_link_libraries(kcm_networkmanagement
KF5::Declarative
KF5::I18n
KF5::Service
Qt5::Quick
Qt5::QuickWidgets
Qt::Quick
Qt::QuickWidgets
)
install(TARGETS kcm_networkmanagement DESTINATION ${KDE_INSTALL_PLUGINDIR} )
......
......@@ -14,7 +14,7 @@ add_library(plasmanm_qmlplugins SHARED ${plasmanm_qml_plugins_SRCS})
target_link_libraries(plasmanm_qmlplugins
plasmanm_internal
plasmanm_editor
Qt5::Quick
Qt::Quick
KF5::I18n
)
......
......@@ -97,15 +97,15 @@ PUBLIC
KF5::Completion
KF5::NetworkManagerQt
KF5::WidgetsAddons
Qt5::Widgets
Qt::Widgets
PRIVATE
KF5::I18n
KF5::KIOWidgets
KF5::Notifications
KF5::Solid
KF5::Wallet
Qt5::DBus
Qt5::Network
Qt::DBus
Qt::Network
qca-qt5
)
......
......@@ -3,8 +3,8 @@ set (hotspotsettings_SRCS hotspotsettings.cpp)
add_library(kcm_mobile_hotspot MODULE ${hotspotsettings_SRCS})
target_link_libraries(kcm_mobile_hotspot
Qt5::Quick
Qt5::Qml
Qt::Quick
Qt::Qml
KF5::I18n
KF5::CoreAddons
KF5::QuickAddons
......
......@@ -5,10 +5,10 @@ set (wifisettings_SRCS wifisettings.cpp)
add_library(kcm_mobile_wifi MODULE ${wifisettings_SRCS})
target_link_libraries(kcm_mobile_wifi
Qt5::DBus
Qt5::Gui
Qt5::Quick
Qt5::Qml
Qt::DBus
Qt::Gui
Qt::Quick
Qt::Qml
KF5::I18n
KF5::NetworkManagerQt
KF5::Plasma
......
......@@ -9,15 +9,15 @@ set_package_properties(Qt5Test PROPERTIES PURPOSE "Required for autotests")
ecm_add_test(
simpleipv6test.cpp
LINK_LIBRARIES Qt5::Test plasmanm_editor
LINK_LIBRARIES Qt::Test plasmanm_editor
)
ecm_add_test(
simpleipv4test.cpp
LINK_LIBRARIES Qt5::Test plasmanm_editor
LINK_LIBRARIES Qt::Test plasmanm_editor
)
ecm_add_test(
simpleiplisttest.cpp
LINK_LIBRARIES Qt5::Test plasmanm_editor
LINK_LIBRARIES Qt::Test plasmanm_editor
)
......@@ -51,7 +51,7 @@ if (OPENCONNECT_FOUND)
KF5::I18n
KF5::KIOWidgets
KF5::WidgetsAddons
Qt5::Xml
Qt::Xml
${OPENCONNECT_LIBRARIES}
${maybe_OPENSSL_LIBRARIES}
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment