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
KHotkeys
Commits
d4d9c45b
Commit
d4d9c45b
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
1be504c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
d4d9c45b
macro
(
KHOTKEYS_UNIT_TESTS
)
foreach
(
_testname
${
ARGN
}
)
kde4_add_unit_test
(
${
_testname
}
NOGUI
${
_testname
}
.cpp
)
target_link_libraries
(
${
_testname
}
khotkeysprivate Qt
5
::Test
)
target_link_libraries
(
${
_testname
}
khotkeysprivate Qt::Test
)
endforeach
(
_testname
)
endmacro
(
KHOTKEYS_UNIT_TESTS
)
...
...
kcm_hotkeys/CMakeLists.txt
View file @
d4d9c45b
...
...
@@ -97,7 +97,7 @@ target_link_libraries(
KF5::KIOWidgets
KF5::TextWidgets
KF5::KDELibs4Support
Qt
5
::Gui
Qt::Gui
${
X11_X11_LIB
}
)
...
...
libkhotkeysprivate/CMakeLists.txt
View file @
d4d9c45b
...
...
@@ -73,7 +73,7 @@ add_library(khotkeysprivate SHARED ${khotkeysprivate_SRCS})
# Not exported, so just make all links PUBLIC
target_link_libraries
(
khotkeysprivate PUBLIC
PW::KWorkspace
Qt
5
::X11Extras
Qt::X11Extras
KF5::GlobalAccel
KF5::I18n
KF5::KIOCore
...
...
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