Skip to content

Commit

Permalink
Merge pull request #584 from Kakueeen/main
Browse files Browse the repository at this point in the history
修复编译错误
  • Loading branch information
zhuzichu520 authored Jan 16, 2025
2 parents 7204e18 + 29686d0 commit 09e0430
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ else ()
endif ()

#导入Qt相关依赖包
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Quick Svg Network)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Quick Svg Network)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Quick Svg Network Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Quick Svg Network Widgets)

#添加国际化脚本
find_program(QT_LUPDATE NAMES lupdate lupdate-qt6)
Expand Down Expand Up @@ -141,6 +141,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::Quick
Qt${QT_VERSION_MAJOR}::Svg
Qt${QT_VERSION_MAJOR}::Network
Qt${QT_VERSION_MAJOR}::Widgets
fluentuiplugin
)

Expand Down

0 comments on commit 09e0430

Please sign in to comment.