Commit 339cf760 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 f42c570f
......@@ -17,9 +17,9 @@ add_definitions(-DQT_NO_KEYWORDS)
add_executable(plasma-systemmonitor ${plasma-systemmonitor_SRCS} ${plasma-systemmonitor_QRC})
target_compile_definitions(plasma-systemmonitor PRIVATE PROJECT_VERSION="${PROJECT_VERSION}")
target_link_libraries(plasma-systemmonitor
Qt5::Quick
Qt5::Widgets
Qt5::DBus
Qt::Quick
Qt::Widgets
Qt::DBus
KF5::I18n
KF5::ConfigGui
KF5::Declarative
......
......@@ -31,7 +31,7 @@ set(page_QML
)
add_library(PagePlugin SHARED ${page_SRCS})
target_link_libraries(PagePlugin Qt5::DBus Qt5::Quick KF5::ConfigCore KF5::I18n KF5::NewStuff KSysGuard::Sensors KSysGuard::SensorFaces)
target_link_libraries(PagePlugin Qt::DBus Qt::Quick KF5::ConfigCore KF5::I18n KF5::NewStuff KSysGuard::Sensors KSysGuard::SensorFaces)
install(TARGETS PagePlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/ksysguard/page)
install(FILES qmldir ${page_QML} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/ksysguard/page)
......@@ -20,7 +20,7 @@ set(table_QML
)
add_library(TablePlugin SHARED ${table_SRCS})
target_link_libraries(TablePlugin Qt5::Quick KSysGuard::Sensors KSysGuard::ProcessCore KF5::CoreAddons)
target_link_libraries(TablePlugin Qt::Quick KSysGuard::Sensors KSysGuard::ProcessCore KF5::CoreAddons)
install(TARGETS TablePlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/ksysguard/table)
install(FILES qmldir ${table_QML} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/ksysguard/table)
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