Following this tutorial: https://www.youtube.com/watch?v=CnXUTG9XYGI
At 3:50 in the tutorial he writes in to the terminal ( mkdir build ) and ( cmake -B .\build\ ).
After running cmake -B .\build\ this error happened:
CMake Error at CMakeLists.txt:5 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
SEE THE IMAGE FOR FULL TERMINAL
I will show you how to install OpenCV C++ in Windows 10 and use it in debug and release using VS Code and CMake. I will go over installing CMake, downloading OpenCV build files, setting up your environment variables, creating the CMakeLists.txt, making a simple OpenCV program, configure the build, build the OpenCV project in debug, build the O...