-
Notifications
You must be signed in to change notification settings - Fork 111
/
build_examples.bat
28 lines (19 loc) · 731 Bytes
/
build_examples.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
:: Builds and installs C++ examples
call build_setup_variables.bat
set OLDDIR=%CD%
if NOT EXIST %BUILD_DIR% (
mkdir %BUILD_DIR%
)
cd %BUILD_DIR%
:: check if the library was compiled
IF NOT EXIST %INSTALL_PATH%\bin\clandmark.dll (
call %OLDDIR%\build_clandmark_libs.bat
)
:: build examples
cmake -G %CMAKE_GENERATOR% -DOPENCV_DIR=%OpenCV_DIR% -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DBUILD_CPP_EXAMPLES=ON -DBUILD_MATLAB_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF ..\
cmake --build . --target static_input --config %CMAKE_CONFIGURATION%
cmake --build . --target video_input --config %CMAKE_CONFIGURATION%
:: install
cmake --build . --target INSTALL --config %CMAKE_CONFIGURATION%
cd %OLDDIR%
pause