Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KTuberling
Commits
d3616016
Commit
d3616016
authored
Jul 22, 2022
by
Nicolas Fella
Browse files
Link SvgWidgets when building against Qt6
parent
bc9a86be
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d3616016
...
...
@@ -26,6 +26,10 @@ include(ECMQtDeclareLoggingCategory)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS PrintSupport Svg Widgets Xml Multimedia
)
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED COMPONENTS Config I18n
)
if
(
QT_MAJOR_VERSION EQUAL
"6"
)
find_package
(
Qt6
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS SvgWidgets
)
endif
()
if
(
NOT ANDROID
)
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED COMPONENTS
Completion
...
...
@@ -82,6 +86,10 @@ if(ANDROID)
Qt
${
QT_MAJOR_VERSION
}
::Widgets
KF5::ConfigCore
)
if
(
QT_MAJOR_VERSION EQUAL
"6"
)
target_link_libraries
(
ktuberling_mobile Qt6::SvgWidgets
)
endif
()
install
(
TARGETS ktuberling_mobile RUNTIME DESTINATION bin
)
else
()
...
...
@@ -111,6 +119,10 @@ else()
KF5KDEGames
)
if
(
QT_MAJOR_VERSION EQUAL
"6"
)
target_link_libraries
(
ktuberling Qt6::SvgWidgets
)
endif
()
install
(
TARGETS ktuberling
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
PROGRAMS org.kde.ktuberling.desktop DESTINATION
${
KDE_INSTALL_APPDIR
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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