It’s usually very time-consuming to start a new project because you have to manually add the libs and include directories. And when there’s a lot of them. It’s a headache.
Fortunately CMake has made this a really easy step. You only create the CMakeLists.txt file where your project properties reside and CMake does the rest.
In this tutorial I’ll try to explain how to get up and running in no time with OpenCV and Visual Studio 2010.