安装时,勾选了WebSocket模块
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets Svg Network WebSockets SerialPortOpenGL)
cmake报错:
error: Found package configuration file:C:/Qt/6.8.0/mingw_64/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND.
Reason given by package:Failed to find required Qt component "WebSockets".
Expected Config file at"C:/Qt/6.8.0/mingw_64/lib/cmake/Qt6WebSockets/Qt6WebSocketsConfig.cmake"does NOT exist