Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Firewall
Commits
6c4d743c
Commit
6c4d743c
authored
Jan 30, 2021
by
Nicolas Fella
Browse files
Use versionless Qt cmake target
This makes it easier to build against both Qt5 and Qt6 GIT_SILENT
parent
3ffb2362
Changes
7
Hide whitespace changes
Inline
Side-by-side
kcm/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -19,9 +19,9 @@ set(kcm_SRCS
add_library
(
kcm_firewall MODULE
${
kcm_SRCS
}
)
target_link_libraries
(
kcm_firewall
Qt
5
::Quick
Qt
5
::X11Extras
Qt
5
::DBus
Qt::Quick
Qt::X11Extras
Qt::DBus
KF5::CoreAddons
KF5::Declarative
...
...
kcm/backends/firewalld/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -15,6 +15,6 @@ kcoreaddons_add_plugin(
INSTALL_NAMESPACE
"kf5/plasma_firewall"
)
target_link_libraries
(
firewalldbackend
Qt
5
::DBus
Qt::DBus
kcm_firewall_core
)
kcm/backends/netstat/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -25,9 +25,9 @@ set(networkstatus_SRCS
add_library
(
networkstatus STATIC
${
networkstatus_SRCS
}
)
target_link_libraries
(
networkstatus
kcm_firewall_core
Qt
5
::Core
Qt
5
::Quick
Qt
5
::X11Extras
Qt::Core
Qt::Quick
Qt::X11Extras
KF5::CoreAddons
KF5::ConfigCore
KF5::Auth
...
...
kcm/backends/ufw/helper/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -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 Qt
5
::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
)
...
...
kcm/core/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -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
Qt
5
::Quick
Qt::Quick
KF5::CoreAddons
KF5::Declarative
KF5::I18n
...
...
tests/firewall_tests/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -3,6 +3,6 @@ add_executable(firewall_tests
)
target_link_libraries
(
firewall_tests
Qt
5
::Core
Qt::Core
kcm_firewall_core
)
tests/ss_tests/CMakeLists.txt
View file @
6c4d743c
...
...
@@ -3,6 +3,6 @@ add_executable(ss_tests
)
target_link_libraries
(
ss_tests
Qt
5
::Core
Qt::Core
kcm_firewall_core
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment