Skip to content
Snippets Groups Projects
Commit fb469df8 authored by Tristan Walter's avatar Tristan Walter
Browse files

trex build windows

parent 2e431d98
No related branches found
No related tags found
No related merge requests found
@setlocal enableextensions enabledelayedexpansion
@echo off
for /f %%w in ('python -c "from shutil import which; print(which(\"python\"))"') do set var=%%w
echo var is %var%
for /f %%w in ('python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())"') do set pythoninclude=%%w
echo pythoninclude is %pythoninclude%
for /f %%w in ('python ../find_library.py') do set findlib=%%w
echo findlib is %findlib%
echo Generator %CMAKE_GENERATOR%
echo Python %PYTHON%
git submodule update --recursive --init
cmake .. -DWITH_GITSHA1=ON -DPYTHON_INCLUDE_DIR:FILEPATH=%pythoninclude% -DPYTHON_LIBRARY:FILEPATH=%findlib% -DPYTHON_EXECUTABLE:FILEPATH=%var% -DWITH_PYLON=OFF -DTREX_BUILD_OPENCV=ON -DCMAKE_SKIP_RPATH=ON -DTREX_BUILD_PNG=ON -DTREX_BUILD_ZIP=ON -DTREX_CONDA_PACKAGE_INSTALL=ON -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE -DTREX_WITH_TESTS:BOOL=OFF -DTREX_BUILD_GLFW=ON -DTREX_BUILD_ZLIB=ON
cmake --build . --target Z_LIB --config Release
cmake --build . --target libzip --config Release
cmake --build . --target libpng_custom --config Release
cmake --build . --target CustomOpenCV --config Release
cmake ..
cmake --build . --target INSTALL --config Release
endlocal
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment