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
KDecoration
Commits
54d5b27c
Commit
54d5b27c
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
b3b5b722
Changes
3
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
54d5b27c
...
...
@@ -9,7 +9,7 @@ set(decorationButtonTest_SRCS
decorationbuttontest.cpp
)
add_executable
(
decorationButtonTest
${
decorationButtonTest_SRCS
}
)
target_link_libraries
(
decorationButtonTest kdecorations2 kdecorations2private Qt
5
::Test
)
target_link_libraries
(
decorationButtonTest kdecorations2 kdecorations2private Qt::Test
)
add_test
(
NAME kdecoration2-decorationButtonTest COMMAND decorationButtonTest
)
ecm_mark_as_test
(
decorationButtonTest
)
...
...
@@ -22,7 +22,7 @@ set(decorationTest_SRCS
decorationtest.cpp
)
add_executable
(
decorationTest
${
decorationTest_SRCS
}
)
target_link_libraries
(
decorationTest kdecorations2 kdecorations2private Qt
5
::Test
)
target_link_libraries
(
decorationTest kdecorations2 kdecorations2private Qt::Test
)
add_test
(
NAME kdecoration2-decorationTest COMMAND decorationTest
)
ecm_mark_as_test
(
decorationTest
)
...
...
@@ -30,6 +30,6 @@ set(decorationShadowTest_SRCS
shadowtest.cpp
)
add_executable
(
decorationShadowTest
${
decorationShadowTest_SRCS
}
)
target_link_libraries
(
decorationShadowTest kdecorations2 Qt
5
::Test
)
target_link_libraries
(
decorationShadowTest kdecorations2 Qt::Test
)
add_test
(
NAME kdecoration2-decorationShadowTest COMMAND decorationShadowTest
)
ecm_mark_as_test
(
decorationShadowTest
)
src/CMakeLists.txt
View file @
54d5b27c
...
...
@@ -23,8 +23,8 @@ add_library(KDecoration2::KDecoration ALIAS kdecorations2)
target_link_libraries
(
kdecorations2
PUBLIC
Qt
5
::Core
Qt
5
::Gui
Qt::Core
Qt::Gui
PRIVATE
kdecorations2private
KF5::I18n
...
...
src/private/CMakeLists.txt
View file @
54d5b27c
...
...
@@ -18,8 +18,8 @@ add_library(KDecoration2::KDecorationPrivate ALIAS kdecorations2private)
target_link_libraries
(
kdecorations2private
PUBLIC
Qt
5
::Core
Qt
5
::Gui
Qt::Core
Qt::Gui
)
target_include_directories
(
kdecorations2private INTERFACE
"$<INSTALL_INTERFACE:
${
KDECORATION2_INCLUDEDIR
}
>"
)
...
...
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