title: Could not find module FindOpenCV.cmake ( Error in configuration process)
body: <p>I wrote a <code>CMakeLists.txt</code> for a project in <strong>C++</strong>, which uses <strong>OpenCV</strong> libraries. When I try to create the project using cmake, I get the next configuration problem:</p>
  
  <pre><code>CMake Error at CMakeLists.txt:15 (find_package):
    Could not find module FindOpenCV.cmake or a configuration file for package
    OpenCV.
  
    Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
    directory containing a CMake configuration file for OpenCV.  The file will
    have one of the following names:
  
      OpenCVConfig.cmake
      opencv-config.cmake
  </code></pre>
  
  <p>The fact is that I have an environment variable for the path which I use in Visual Studio with no problems. If I don't include OpenCV, then I can configure and generate with no problem, but I need to solve the problem. I don't understand why cmake cannot find the OpenCV path or how to fix it.</p>
  
  <p>I also used the recommendations mentioned in this link:
  <a href="http://opencv.willowgarage.com/wiki/FindOpenCV.cmake" rel="noreferrer">FindOpenCV.cmake</a></p>
  
  <p>Does anybody had this problem too?</p>