-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathbuild_clandmark_libs.bat
28 lines (19 loc) · 986 Bytes
/
build_clandmark_libs.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 CLandmark libraries (both static and dynamic version)
call build_setup_variables.bat
set OLDDIR=%CD%
if NOT EXIST %BUILD_DIR% (
mkdir %BUILD_DIR%
)
cd %BUILD_DIR%
:: build static version of the libraries
cmake -G %CMAKE_GENERATOR% -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DBUILD_CPP_EXAMPLES=OFF -DBUILD_MATLAB_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF ..\
cmake --build . --target clandmark --config %CMAKE_CONFIGURATION%
cmake --build . --target flandmark --config %CMAKE_CONFIGURATION%
:: build dynamic version of the libraries
cmake -G %CMAKE_GENERATOR% -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DBUILD_CPP_EXAMPLES=OFF -DBUILD_MATLAB_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF ..\
cmake --build . --target clandmark --config %CMAKE_CONFIGURATION%
cmake --build . --target flandmark --config %CMAKE_CONFIGURATION%
:: install
cmake --build . --target INSTALL --config %CMAKE_CONFIGURATION%
cd %OLDDIR%
pause