-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_windows.bat
31 lines (22 loc) · 1.54 KB
/
install_windows.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
@echo off
echo BAT install_windows start!
REM Set the current directory to where the batch file is located
cd /d %~dp0
REM Clone the repository only if it doesn't already exist
if not exist ..\wood git clone https://github.com/petrasvestartas/wood.git
REM Navigate to the cmake directory and create a build directory
cd cmake\
if not exist build mkdir build
cd build
REM Step 5: Download libraries
cmake --fresh -DGET_LIBS=ON -DCOMPILE_LIBS=OFF -DBUILD_MY_PROJECTS=OFF -DRELEASE_DEBUG=ON -DCMAKE_BUILD_TYPE="Release" -G "Visual Studio 17 2022" -A x64 -DCGAL_CMAKE_EXACT_NT_BACKEND=BOOST_BACKEND -DCGAL_DISABLE_GMP=ON -DCMAKE_DISABLE_FIND_PACKAGE_GMP=ON .. && cmake --build . --config Release
REM Step 6: Build 3rd-party libraries
cmake --fresh -DGET_LIBS=OFF -DBUILD_MY_PROJECTS=ON -DCOMPILE_LIBS=ON -DRELEASE_DEBUG=ON -DCMAKE_BUILD_TYPE="Release" -G "Visual Studio 17 2022" -A x64 -DCGAL_CMAKE_EXACT_NT_BACKEND=BOOST_BACKEND -DCGAL_DISABLE_GMP=ON -DCMAKE_DISABLE_FIND_PACKAGE_GMP=ON .. && cmake --build . --config Release
REM Step 7: Build the wood code
cmake --fresh -DGET_LIBS=OFF -DBUILD_MY_PROJECTS=ON -DCOMPILE_LIBS=OFF -DRELEASE_DEBUG=ON -DCMAKE_BUILD_TYPE="Release" -G "Visual Studio 17 2022" -A x64 -DCGAL_CMAKE_EXACT_NT_BACKEND=BOOST_BACKEND -DCGAL_DISABLE_GMP=ON -DCMAKE_DISABLE_FIND_PACKAGE_GMP=ON .. && cmake --build . --config Release
REM Step 8: Build the wood code after making changes (e.g., in main.cpp)
cd /d %~dp0\cmake\build
cmake --build . -v --config Release --parallel 8 && ..\build\Release\wood.exe
cd ..\..
echo BAT install_windows end!
pause