fix: Fix compilation error

QApplication: No such file or directory
This commit is contained in:
liuzhangjian 2025-01-14 20:16:31 +08:00
parent 7204e18afe
commit 29686d07ba

View File

@ -24,8 +24,8 @@ else ()
endif () endif ()
#Qt #Qt
find_package(QT NAMES Qt6 Qt5 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) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Quick Svg Network Widgets)
# #
find_program(QT_LUPDATE NAMES lupdate lupdate-qt6) find_program(QT_LUPDATE NAMES lupdate lupdate-qt6)
@ -141,6 +141,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::Quick Qt${QT_VERSION_MAJOR}::Quick
Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::Svg
Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Network
Qt${QT_VERSION_MAJOR}::Widgets
fluentuiplugin fluentuiplugin
) )