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 SDK
Commits
28a689d4
Commit
28a689d4
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
87872a7c
Changes
5
Hide whitespace changes
Inline
Side-by-side
cuttlefish/autotests/CMakeLists.txt
View file @
28a689d4
...
...
@@ -8,8 +8,8 @@ include_directories(../src)
ecm_add_test
(
iconmodeltest.cpp ../src/iconmodel.cpp ../src/sortfiltermodel.cpp
TEST_NAME iconmodeltest
LINK_LIBRARIES
Qt
5
::Gui
Qt
5
::Test
Qt::Gui
Qt::Test
KF5::ConfigCore
KF5::IconThemes
KF5::Package
...
...
cuttlefish/src/CMakeLists.txt
View file @
28a689d4
...
...
@@ -10,9 +10,9 @@ add_executable(cuttlefish ${cuttlefish_SRCS})
target_compile_definitions
(
cuttlefish PRIVATE -DPROJECT_VERSION=
"
${
PROJECT_VERSION
}
"
)
target_link_libraries
(
cuttlefish
Qt
5
::Quick
Qt
5
::Gui
Qt
5
::Widgets
# for QDirModel
Qt::Quick
Qt::Gui
Qt::Widgets
# for QDirModel
KF5::Plasma
KF5::KIOWidgets
KF5::Declarative
...
...
@@ -20,7 +20,7 @@ target_link_libraries(cuttlefish
KF5::I18n
KF5::IconThemes
KF5::Package
Qt
5
::DBus
Qt::DBus
)
install
(
TARGETS cuttlefish
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
...
...
lookandfeelexplorer/src/CMakeLists.txt
View file @
28a689d4
...
...
@@ -12,10 +12,10 @@ target_compile_definitions(lookandfeelexplorer PRIVATE -DPROJECT_VERSION="${PROJ
#find_package(ActiveApp REQUIRED)
target_link_libraries
(
lookandfeelexplorer
Qt
5
::Gui
Qt
5
::Quick
Qt
5
::Widgets
Qt
5
::DBus
Qt::Gui
Qt::Quick
Qt::Widgets
Qt::DBus
KF5::Archive
KF5::Declarative
KF5::I18n
...
...
plasmoidviewer/CMakeLists.txt
View file @
28a689d4
...
...
@@ -7,8 +7,8 @@ add_executable(plasmoidviewer ${plasmoidviewer_SRCS})
target_compile_definitions
(
plasmoidviewer PRIVATE -DPROJECT_VERSION=
"
${
PROJECT_VERSION
}
"
)
target_link_libraries
(
plasmoidviewer
Qt
5
::Quick
Qt
5
::DBus
Qt::Quick
Qt::DBus
KF5::DBusAddons
KF5::Plasma
KF5::PlasmaQuick
...
...
themeexplorer/src/CMakeLists.txt
View file @
28a689d4
...
...
@@ -13,10 +13,10 @@ target_compile_definitions(plasmathemeexplorer PRIVATE -DPROJECT_VERSION="${PROJ
#find_package(ActiveApp REQUIRED)
target_link_libraries
(
plasmathemeexplorer
Qt
5
::Gui
Qt
5
::Quick
Qt
5
::Widgets
Qt
5
::Xml
Qt::Gui
Qt::Quick
Qt::Widgets
Qt::Xml
KF5::Archive
KF5::Declarative
KF5::I18n
...
...
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