title: cmake with git for windows, MinGW and make
body: <p>Firstly, I have installed MinGW from <a href="https://sourceforge.net/projects/mingw/files/" rel="noreferrer">https://sourceforge.net/projects/mingw/files/</a> and the mingw32-gcc-g++ and mingw32-gcc-objs with it. I have added C:\MinGW\bin to my path.</p>
  
  <p>Secondly, I have installed Git for windows (not really important, the result is the same on cmd.exe).</p>
  
  <p>Thirdly, I have installed the complete package "make" with <a href="http://gnuwin32.sourceforge.net/packages/make.htm" rel="noreferrer">http://gnuwin32.sourceforge.net/packages/make.htm</a></p>
  
  <p>After that, I have installed cmake 3.5.1 with the .msi.</p>
  
  <p>But when I run <code>cmake ../src</code> the result is :</p>
  
  <pre><code>-- The C compiler identification is unknown
  -- The CXX compiler identification is unknown
  CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_C_COMPILER could be found.
  
  
  
  CMake Error at CMakeLists.txt:5 (project):
    No CMAKE_CXX_COMPILER could be found.
  
  -- Configuring incomplete, errors occurred!
  See also "C:/Users/pauka/Dropbox/ETUDE/SRI/S8/STA_Stage/sources/tests/bin/CMakeFiles/CMakeOutput.log".
  See also "C:/Users/pauka/Dropbox/ETUDE/SRI/S8/STA_Stage/sources/tests/bin/CMakeFiles/CMakeError.log".
  </code></pre>
  
  <p>So cmake can't find gcc or g++. But when I run gcc -version, the output is good... What should I configure for cmake ?</p>
  
  <p>My CMakeLists.txt is :</p>
  
  <pre><code># Ajustez en fonction de votre version de CMake
  cmake_minimum_required (VERSION 2.8)
  
  # Nom du projet
  project (main)
  
  find_package (OpenCV REQUIRED)
  
  # Exécutable "main", compilé à partir du fichier main.cpp
  add_executable (tracking_color tracking_color.cpp)
  add_executable (feuille feuille.cpp)
  add_executable (detect_circles detect_circles.cpp)
  add_executable (segmentation segmentation.cpp)
  add_executable (watershed_perso watershed_perso.cpp)
  add_executable (main main.cpp utils.h)
  add_executable (info_coins info_coins.cpp)
  
  # main sera linké avec les bibliothèques d'OpenCV
  target_link_libraries (tracking_color ${OpenCV_LIBS})
  target_link_libraries (feuille ${OpenCV_LIBS})
  target_link_libraries (detect_circles ${OpenCV_LIBS})
  target_link_libraries (segmentation ${OpenCV_LIBS})
  target_link_libraries (watershed_perso ${OpenCV_LIBS})
  target_link_libraries (info_coins ${OpenCV_LIBS})
  target_link_libraries (main ${OpenCV_LIBS})
  </code></pre>