Skip to content

Commit

Permalink
fix: Fix compilation error
Browse files Browse the repository at this point in the history
QApplication: No such file or directory
  • Loading branch information
Kakueeen committed Jan 14, 2025
1 parent 7204e18 commit 29686d0
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 29686d0

Please sign in to comment.