-
Notifications
You must be signed in to change notification settings - Fork 2
/
opencv_setup.bat
20 lines (16 loc) · 1005 Bytes
/
opencv_setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cd opencv
del /s /q out
mkdir out
cd out
mkdir Release
cd Release
cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -DOPENCV_DNN_OPENCL=OFF -DWITH_QUIRC=OFF -DWITH_PROTOBUF=OFF -DWITH_OPENJPEG=OFF -DWITH_WEBP=OFF -DWITH_OPENEXR=OFF -DWITH_PNG=OFF -DWITH_TIFF=OFF -DWITH_JASPER=OFF -DWITH_JPEG=OFF -DWITH_GSTREAMER=OFF -DWITH_FFMPEG=OFF -DBUILD_LIST=core,highgui ../..
cmake --build . --config Release --target install
cd ..
mkdir Debug
cd Debug
cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -DOPENCV_DNN_OPENCL=OFF -DWITH_QUIRC=OFF -DWITH_PROTOBUF=OFF -DWITH_OPENJPEG=OFF -DWITH_WEBP=OFF -DWITH_OPENEXR=OFF -DWITH_PNG=OFF -DWITH_TIFF=OFF -DWITH_JASPER=OFF -DWITH_JPEG=OFF -DWITH_GSTREAMER=OFF -DWITH_FFMPEG=OFF -DBUILD_LIST=core,highgui ../..
cmake --build . --config Debug --target install
cd ..
cd ..
cd ..