错误如下:
:-1: error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
:-1: error: CMake process exited with exit code 1.
:-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
解决方法:添加CMake和Ninja到环境变量中,下面是Qt默认路径
C:\Qt\Tools\CMake_64\bin
C:\Qt\Tools\Ninja