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
Milou
Commits
f16e536d
Commit
f16e536d
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
029d148b
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/CMakeLists.txt
View file @
f16e536d
...
...
@@ -20,9 +20,9 @@ add_library(milou SHARED ${lib_SRCS})
set_target_properties
(
milou PROPERTIES VERSION
${
PROJECT_VERSION
}
SOVERSION
${
PROJECT_VERSION_MAJOR
}
)
target_link_libraries
(
milou
Qt
5
::Qml
Qt
5
::Quick
Qt
5
::Widgets
# for QAction...
Qt::Qml
Qt::Quick
Qt::Widgets
# for QAction...
KF5::ItemModels
KF5::Service
KF5::Plasma
...
...
lib/qml/CMakeLists.txt
View file @
f16e536d
...
...
@@ -6,7 +6,7 @@ set (plugin_SRCS
add_library
(
milouqmlplugin SHARED
${
plugin_SRCS
}
)
target_link_libraries
(
milouqmlplugin
Qt
5
::Qml
Qt::Qml
milou
)
...
...
lib/test/CMakeLists.txt
View file @
f16e536d
...
...
@@ -7,9 +7,9 @@ add_executable(modeltest test.cpp)
ecm_mark_as_test
(
modeltest
)
target_link_libraries
(
modeltest
Qt
5
::Core
Qt
5
::Test
Qt
5
::Gui
Qt::Core
Qt::Test
Qt::Gui
milou
)
...
...
@@ -17,9 +17,9 @@ add_executable(widgettest widgettest.cpp)
ecm_mark_as_test
(
widgettest
)
target_link_libraries
(
widgettest
Qt
5
::Core
Qt
5
::Gui
Qt
5
::Widgets
Qt::Core
Qt::Gui
Qt::Widgets
milou
)
...
...
@@ -27,8 +27,8 @@ add_executable(previewtest previewtest.cpp)
ecm_mark_as_test
(
previewtest
)
target_link_libraries
(
previewtest
Qt
5
::Core
Qt
5
::Gui
Qt
5
::Widgets
Qt::Core
Qt::Gui
Qt::Widgets
milou
)
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