Merge pull request #200 from mentalfl0w/dev

Add Svg module to resolve unsupported image format error.
This commit is contained in:
zhuzichu 2023-07-12 08:37:49 +08:00 committed by GitHub
commit 2337680aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ file(TO_CMAKE_PATH "/" PATH_SEPARATOR)
# #
add_definitions(-DVERSION=1,3,7,4) add_definitions(-DVERSION=1,3,7,4)
find_package(Qt6 REQUIRED COMPONENTS Quick) find_package(Qt6 REQUIRED COMPONENTS Quick Svg)
if(QT_VERSION VERSION_GREATER_EQUAL "6.3") if(QT_VERSION VERSION_GREATER_EQUAL "6.3")
qt_standard_project_setup() qt_standard_project_setup()
@ -106,6 +106,7 @@ set_target_properties(example PROPERTIES
if (FLUENTUI_BUILD_STATIC_LIB) if (FLUENTUI_BUILD_STATIC_LIB)
target_link_libraries(example PRIVATE target_link_libraries(example PRIVATE
Qt6::Quick Qt6::Quick
Qt::Svg
fluentui fluentui
fluentuiplugin fluentuiplugin
FramelessHelper::Core FramelessHelper::Core
@ -114,6 +115,7 @@ if (FLUENTUI_BUILD_STATIC_LIB)
else() else()
target_link_libraries(example PRIVATE target_link_libraries(example PRIVATE
Qt6::Quick Qt6::Quick
Qt::Svg
fluentuiplugin fluentuiplugin
FramelessHelper::Core FramelessHelper::Core
FramelessHelper::Quick FramelessHelper::Quick