此外在运行cmake. 的时候会出现如下错误
[main] Configuring folder: 代码框架
[proc] Executing command: “C:\Program Files\CMake\bin\cmake.EXE” –no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hd:/onedrive/Program/cg/GamesCG/homework/Assignment1/代码框架 -Bd:/onedrive/Program/cg/GamesCG/homework/Assignment1/代码框架/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error at CMakeLists.txt:4 (find_package):
[cmake] By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH this project has
[cmake] asked CMake to find a package configuration file provided by “OpenCV”, but
[cmake] CMake did not find one.
[cmake]
[cmake] Could not find a package configuration file provided by “OpenCV” with any
[cmake] of the following names:
[cmake]
[cmake] OpenCVConfig.cmake
[cmake] opencv-config.cmake
[cmake]
[cmake] Add the installation prefix of “OpenCV” to CMAKE_PREFIX_PATH or set
[cmake] “OpenCV_DIR” to a directory containing one of the above files. If “OpenCV”
[cmake] provides a separate development package or SDK, be sure it has been
[cmake] installed.
[cmake]
[cmake]
[cmake] — Configuring incomplete, errors occurred!
[cmake] See also “D:/onedrive/Program/cg/GamesCG/homework/Assignment1/代码框架/build/CMakeFiles/CMakeOutput.log”.