-
Notifications
You must be signed in to change notification settings - Fork 111
/
build_python_interface.bat
39 lines (29 loc) · 972 Bytes
/
build_python_interface.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
29
30
31
32
33
34
35
36
37
38
39
:: Builds and installs Python interface
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
)
::python interface build
cmake -G %CMAKE_GENERATOR% \
-DPYTHON_LIBRARY=%PYTHON_LIBRARY% \
-DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% \
-DPYTHON_INCLUDE_DIR=%PYTHON_INCLUDE_DIR% \
-DCYTHON_EXECUTABLE=%CYTHON_EXECUTABLE% \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% \
-DBUILD_CPP_EXAMPLES=OFF \
-DBUILD_MATLAB_BINDINGS=OFF \
-DBUILD_PYTHON_BINDINGS=ON ..\
cmake --build . --target ReplicatePythonSourceTree %CMAKE_CONFIGURATION%
cmake --build . --target py_featurePool --config %CMAKE_CONFIGURATION%
cmake --build . --target py_flndmark --config %CMAKE_CONFIGURATION%
:: install
cmake --build . --target INSTALL --config %CMAKE_CONFIGURATION%
cd %OLDDIR%
pause