anchor.diff:  call :subGen
   
   REM msvc12 ========================
  +:gen12
   set COMP=msvc12
   set ARCHN=32
   call :subGen
  
positive.code: REM =========================================================
  
  REM  === THIS IS WHERE OpenCV SOURCE TREE IS FROM THE CWD ===
  set OPENCV_BASE_DIR=opencv-current-src
  
  REM =================== SET ALL IMPORTANT PATHS ===================
  
  set msvc9_DIR=C:\Program Files (x86)\Microsoft Visual Studio 9.0
  set msvc10_DIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
  set msvc11_DIR=D:\Program Files (x86)\Microsoft Visual Studio 11.0
  set msvc12_DIR=D:\Program Files (x86)\Microsoft Visual Studio 12.0
  REM MinGW directories will be: %MINGW_ROOT%-32 and %MINGW_ROOT%-64  
  REM  (NOTE: Use "/" for paths in this one)
  set MINGW_ROOT=d:/MinGW
  set MINGW_ROOT_BKSLH=d:\MinGW
  set CMAKE_DIR=D:\Program Files (x86)\CMake 2.8\bin
  REM ==============================================================
  
  del BUILD_ALL_OPENCV.bat 2> NUL
  
  REM msvc9 ========================
  set COMP=msvc9
  set ARCHN=32
  call :subGen
  
  set ARCHN=64
  call :subGen
  
  REM msvc10 ========================
  set COMP=msvc10
  set ARCHN=32
  call :subGen
  
  set ARCHN=64
  call :subGen
  
  REM msvc11 ========================
  set COMP=msvc11
  set ARCHN=32
  call :subGen
  
negative.code: 
  REM ---------------- Call CMake ----------------
  call %PATH_FIL%
  set ALL_PARAMS=-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_CUDA=OFF -DOPENCV_EXTRA_MODULES_PATH=../%OPENCV_CONTRIB_DIR%/modules -DBUILD_opencv_aruco=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_contrib_world=OFF -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_latentsvm=OFF -DBUILD_opencv_photo=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_superres=OFF -DBUILD_opencv_ts=OFF -DBUILD_opencv_world=OFF -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_xphoto=OFF
  
  REM Create Project:
  echo on
  "%CMAKE_DIR%\cmake.exe" ../%OPENCV_BASE_DIR% -G "%CMAKE_GEN%" %ALL_PARAMS% %CMAKE_EXTRA1% %CMAKE_EXTRA2% %CMAKE_EXTRA3% 
  
  REM and insist to make sure all vars have been fixed:
  "%CMAKE_DIR%\cmake.exe" . %ALL_PARAMS%
  echo off
  
  
  