Commit 6c4d743c 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 3ffb2362
......@@ -19,9 +19,9 @@ set(kcm_SRCS
add_library(kcm_firewall MODULE ${kcm_SRCS})
target_link_libraries(kcm_firewall
Qt5::Quick
Qt5::X11Extras
Qt5::DBus
Qt::Quick
Qt::X11Extras
Qt::DBus
KF5::CoreAddons
KF5::Declarative
......
......@@ -15,6 +15,6 @@ kcoreaddons_add_plugin(
INSTALL_NAMESPACE "kf5/plasma_firewall")
target_link_libraries(firewalldbackend
Qt5::DBus
Qt::DBus
kcm_firewall_core
)
......@@ -25,9 +25,9 @@ set(networkstatus_SRCS
add_library(networkstatus STATIC ${networkstatus_SRCS})
target_link_libraries(networkstatus
kcm_firewall_core
Qt5::Core
Qt5::Quick
Qt5::X11Extras
Qt::Core
Qt::Quick
Qt::X11Extras
KF5::CoreAddons
KF5::ConfigCore
KF5::Auth
......
......@@ -24,7 +24,7 @@ set(ufw_plugin_helper_SRCS helper.cpp )
add_executable(kde_ufw_plugin_helper ${ufw_plugin_helper_SRCS})
# set_target_properties(kcm_ufw_helper PROPERTIES OUTPUT_NAME kcm_ufw_helper)
target_link_libraries(kde_ufw_plugin_helper Qt5::Core KF5::Auth KF5::I18n)
target_link_libraries(kde_ufw_plugin_helper Qt::Core KF5::Auth KF5::I18n)
if (IS_ABSOLUTE "${LIBEXEC_INSTALL_DIR}")
set(UFW_PLUGIN_HELPER_PATH ${LIBEXEC_INSTALL_DIR}/kde_ufw_plugin_helper.py)
......
......@@ -19,7 +19,7 @@ generate_export_header(kcm_firewall_core)
target_include_directories(kcm_firewall_core PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
target_link_libraries(kcm_firewall_core
Qt5::Quick
Qt::Quick
KF5::CoreAddons
KF5::Declarative
KF5::I18n
......
......@@ -3,6 +3,6 @@ add_executable(firewall_tests
)
target_link_libraries(firewall_tests
Qt5::Core
Qt::Core
kcm_firewall_core
)
......@@ -3,6 +3,6 @@ add_executable(ss_tests
)
target_link_libraries(ss_tests
Qt5::Core
Qt::Core
kcm_firewall_core
)
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