title: cmake is not working in opencv c++ project
body: <p>I need your help !
  I have this C++ code in this link </p>
  
  <p>[link] <a href="https://github.com/royshil/FoodcamClassifier" rel="noreferrer">https://github.com/royshil/FoodcamClassifier</a></p>
  
  <p>and I've been trying since two days to compaile it , and I've failed
  they say that I have to use cmake , I've tried the "GUI version  and it gave me errors realted to the cmake itself . 
  so I took the cpp and header files and made a new project but I have now 100 errors related to the opencv library and I swear to god I'm sure of the include folders and the libs of it in my project ! don't know what's the matter with it !</p>
  
  <h2>any idea ?</h2>
  
  <p>Here's the errors : </p>
  
  <pre>
  'CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt
  CMake Error at CMakeLists.txt:4 (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
  
  
  
  OpenCV_DIR-NOTFOUND
  Configuring incomplete, errors occurred!
  CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt
  CMake Error: : System Error: Permission denied
  CMake Error: : System Error: Permission denied '
  </pre>