Commit 2de8dd48 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 eef8e1d5
......@@ -5,8 +5,8 @@ add_library(bluetoothplugin SHARED
bluetoothplugin.cpp)
target_link_libraries(bluetoothplugin
Qt5::Core
Qt5::Qml
Qt::Core
Qt::Qml
KF5::Notifications
KF5::BluezQt)
......
......@@ -4,9 +4,9 @@ kconfig_add_kcfg_files(kcm_bluetooth GENERATE_MOC
../settings/filereceiversettings.kcfgc)
target_link_libraries(kcm_bluetooth
Qt5::Gui
Qt5::Qml
Qt5::DBus
Qt::Gui
Qt::Qml
Qt::DBus
KF5::CoreAddons
KF5::ConfigGui
KF5::QuickAddons
......
......@@ -20,7 +20,7 @@ kcoreaddons_add_plugin(kded_bluedevil INSTALL_NAMESPACE "kf5/kded" JSON bluedevi
set_target_properties(kded_bluedevil PROPERTIES OUTPUT_NAME bluedevil)
target_link_libraries(kded_bluedevil
Qt5::Gui
Qt::Gui
KF5::I18n
KF5::CoreAddons
KF5::DBusAddons
......
......@@ -10,13 +10,13 @@ kconfig_add_kcfg_files(kio_bluetooth_SRCS GENERATE_MOC ../../settings/filereceiv
add_library(kio_bluetooth MODULE ${kio_bluetooth_SRCS})
target_link_libraries(kio_bluetooth
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::I18n
KF5::KIOCore
KF5::CoreAddons
KF5::ConfigGui
Qt5::Network
Qt::Network
)
target_include_directories(kio_bluetooth
......
......@@ -10,13 +10,13 @@ qt5_add_dbus_interface(kio_obexftp_SRCS ${kded_obexftp.xml} kdedobexftp)
add_library(kio_obexftp MODULE ${kio_obexftp_SRCS})
target_link_libraries(kio_obexftp
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::I18n
KF5::KIOCore
KF5::CoreAddons
KF5::BluezQt
Qt5::Network
Qt::Network
)
install(TARGETS kio_obexftp DESTINATION ${KDE_INSTALL_PLUGINDIR})
......
......@@ -22,8 +22,8 @@ ki18n_wrap_ui(sendfilehelper_SRCS
add_executable(bluedevil-sendfile ${sendfilehelper_SRCS})
target_link_libraries(bluedevil-sendfile
Qt5::Widgets
Qt5::DBus
Qt::Widgets
Qt::DBus
KF5::I18n
KF5::CoreAddons
KF5::DBusAddons
......
......@@ -22,8 +22,8 @@ ki18n_wrap_ui(wizard_SRCS
add_executable(bluedevil-wizard ${wizard_SRCS})
target_link_libraries(bluedevil-wizard
Qt5::Widgets
Qt5::DBus
Qt::Widgets
Qt::DBus
KF5::I18n
KF5::CoreAddons
KF5::DBusAddons
......
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