Use versionless Qt targets where possible
We depend on 5.15 which allows us to use those
This commit is contained in:
parent
87c9032ab9
commit
a1195a72a3
13 changed files with 21 additions and 26 deletions
|
@ -57,13 +57,13 @@ target_include_directories(kdeconnectcore PUBLIC ${PROJECT_SOURCE_DIR})
|
|||
|
||||
target_link_libraries(kdeconnectcore
|
||||
PUBLIC
|
||||
Qt${QT_MAJOR_VERSION}::Network
|
||||
Qt::Network
|
||||
KF${QT_MAJOR_VERSION}::CoreAddons
|
||||
${Qca_LIBRARY}
|
||||
KF${QT_MAJOR_VERSION}::KIOCore
|
||||
KF${QT_MAJOR_VERSION}::KIOGui
|
||||
PRIVATE
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
KF${QT_MAJOR_VERSION}::ConfigCore
|
||||
)
|
||||
|
|
|
@ -101,8 +101,8 @@ generate_export_header(kdeconnectinterfaces EXPORT_FILE_NAME ${CMAKE_CURRENT_BIN
|
|||
|
||||
target_link_libraries(kdeconnectinterfaces
|
||||
LINK_PUBLIC
|
||||
Qt${QT_MAJOR_VERSION}::Gui
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::Gui
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::ConfigCore
|
||||
LINK_PRIVATE
|
||||
kdeconnectcore
|
||||
|
|
|
@ -7,7 +7,7 @@ ecm_qt_declare_logging_category(kdeconnect_battery
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin battery)")
|
||||
target_link_libraries(kdeconnect_battery
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::Solid
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
set(kdeconnect_bigscreen_SRCS
|
||||
bigscreenplugin.cpp
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_bigscreen SOURCES ${kdeconnect_bigscreen_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_bigscreen SOURCES bigscreenplugin.cpp)
|
||||
|
||||
target_link_libraries(kdeconnect_bigscreen
|
||||
kdeconnectcore
|
||||
kdeconnectinterfaces
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::I18n)
|
||||
|
|
|
@ -7,15 +7,14 @@ ecm_qt_declare_logging_category(kdeconnect_clipboard
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin clipboard)")
|
||||
|
||||
target_link_libraries(kdeconnect_clipboard kdeconnectcore
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::GuiAddons
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
${kdeconnect_clipboard_WL_LINK_LIBS}
|
||||
)
|
||||
|
||||
kcoreaddons_add_plugin(kdeconnect_clipboard_config INSTALL_NAMESPACE "kdeconnect/kcms")
|
||||
kcoreaddons_add_plugin(kdeconnect_clipboard_config SOURCES clipboard_config.cpp INSTALL_NAMESPACE "kdeconnect/kcms")
|
||||
|
||||
ki18n_wrap_ui(kdeconnect_clipboard_config clipboard_config.ui)
|
||||
target_sources(kdeconnect_clipboard_config PRIVATE clipboard_config.cpp)
|
||||
target_link_libraries(kdeconnect_clipboard_config
|
||||
kdeconnectcore
|
||||
kdeconnectpluginkcm
|
||||
|
|
|
@ -7,7 +7,7 @@ ecm_qt_declare_logging_category(kdeconnect_connectivity_report
|
|||
|
||||
target_link_libraries(kdeconnect_connectivity_report
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::Solid
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ ecm_qt_declare_logging_category(kdeconnect_mmtelephony
|
|||
|
||||
target_link_libraries(kdeconnect_mmtelephony
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::ModemManagerQt
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -8,6 +8,6 @@ ecm_qt_declare_logging_category(kdeconnect_ping
|
|||
|
||||
target_link_libraries(kdeconnect_ping
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ ecm_qt_declare_logging_category(kdeconnect_presenter
|
|||
|
||||
target_link_libraries(kdeconnect_presenter
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt${QT_MAJOR_VERSION}::Quick
|
||||
Qt::DBus
|
||||
Qt::Quick
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -7,5 +7,5 @@ ecm_qt_declare_logging_category(kdeconnect_remotecommands
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecommands)")
|
||||
target_link_libraries(kdeconnect_remotecommands
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
)
|
||||
|
|
|
@ -7,6 +7,6 @@ ecm_qt_declare_logging_category(kdeconnect_remotecontrol
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecontrol)")
|
||||
target_link_libraries(kdeconnect_remotecontrol
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -7,6 +7,6 @@ ecm_qt_declare_logging_category(kdeconnect_remotesystemvolume
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotesystemvolume)")
|
||||
target_link_libraries(kdeconnect_remotesystemvolume
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::I18n
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ ecm_qt_declare_logging_category(kdeconnect_runcommand
|
|||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin runcommand)")
|
||||
target_link_libraries(kdeconnect_runcommand
|
||||
kdeconnectcore
|
||||
Qt${QT_MAJOR_VERSION}::DBus
|
||||
Qt::DBus
|
||||
KF${QT_MAJOR_VERSION}::KCMUtils
|
||||
KF${QT_MAJOR_VERSION}::I18n)
|
||||
|
||||
|
|
Loading…
Reference in a new issue