Created
May 15, 2017 06:35
-
-
Save derofim/8d6c9967805fc9ad182ef12a67538670 to your computer and use it in GitHub Desktop.
opencv cmake build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv_contrib.git | |
REM OR Download https://github.com/opencv/opencv_contrib/archive/3.2.0.zip | |
REM | |
REM git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv.git | |
REM OR Download https://github.com/opencv/opencv/archive/3.2.0.zip | |
REM # Create build directory | |
call cmake -E make_directory "buildcrt" | |
REM # Create build generator files | |
REM # DBUILD_WITH_STATIC_CRT=OFF => /MD else /MT | |
call cmake -E chdir "buildcrt" cmake -E time cmake --clean "D:\OpenCV\opencv-3\opencv" -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DOPENCV_EXTRA_MODULES_PATH="D:\OpenCV\opencv-3\opencv_contrib\modules" -DWITH_CUDA=OFF -DBUILD_WITH_STATIC_CRT=OFF | |
REM # Build project | |
call cmake -E chdir "buildcrt" cmake -E time cmake --build . --config Release |
Author
derofim
commented
May 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment