So here is step by step retelling of readme:
- Download and install OpenCV
- Download and install CMake
- Run cmake-gui.exe
- In the “Where is the source code” field choose your new OpenCV directory (C:\OpenCV\sources)
In “Where to build the binaries” choose directory for VS compiled OpneCV (C:\OpenCV\builds) - Press Configure button and choose Visual Studio 14 2015 or Visual Studio 14 2015 Win64 (or whatever) as building environment
- Press one more time Configure and then Generate, so the VS project will be generated in the C:\OpenCV\builds
- Open the solution and build it for Release and Debug configurations
- Build also the INSTALL project in the solution (again for Release and Debug configurations). That will copy OpenCV headers and binaries to C:\OpenCV\builds\install
- Now you can copy the content of the C:\OpenCV\builds\install to another folder, e.g. C:\OpenCV\build
- Reconfigure your application project:
- Include directories are C:\OpenCV\build\include\opencv and C:\OpenCV\build\include\opencv2
- Additional library directories are C:\OpenCV\build\[x86|x64]\vcXX\lib
- The dll files are in C:\OpenCV\build\[x86|x64]\vcXX\bin