-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.bat
More file actions
47 lines (37 loc) · 688 Bytes
/
build.bat
File metadata and controls
47 lines (37 loc) · 688 Bytes
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
40
41
42
43
44
45
46
47
@echo off
:label
set CONFIG=
echo Choisis la configuration :
echo 1 - Debug
echo 2 - Release
echo 3 - Exit
set /p choice=Ton choix (1 ou 2) :
if "%choice%"=="1" set CONFIG=Debug
if "%choice%"=="2" set CONFIG=Release
if "%choice%" == "3" (
IF EXIST build (
echo Deleting the build folder...
rmdir /s /q build
)
exit /b
)
if not defined CONFIG (
echo Choix invalide !
pause
cls
goto label
)
IF EXIST build (
echo Deleting the build folder...
rmdir /s /q build
)
echo Creating the build folder...
mkdir build
cd build
cmake -G "Visual Studio 18 2026" ..
cmake --build . --config %CONFIG%
ctest --output-on-failure -C %CONFIG%
pause
cd ..
cls
goto label