我在使用 CMake 时遇到了一些问题。当我尝试为 Visual Studio 2019 配置构建时,它显示错误。当我检查 CMakeLists.txt 时,一切看起来都很好,但仍然有问题。该文件是由 Qt 自动创建的,我只是添加了一些东西来连接一些目录。我可以做什么来解决这个问题?
这是错误:
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
The CXX compiler identification is MSVC 19.28.29334.0
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: D:/VS/VS-IDE/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:27 (find_package):
Could not find a package configuration file provided by "QT" with any of
the following names:
Qt6Config.cmake …Run Code Online (Sandbox Code Playgroud)