-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.bat
39 lines (32 loc) · 858 Bytes
/
build.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
@ECHO OFF & PUSHD %~DP0
:Menu
Echo.&Echo 1.GenerateSolution
Echo.&Echo 2.BuildDebug32
Echo.&Echo 3.BuildRelease32
Echo.&Echo 4.BuildDebug64
Echo.&Echo 5.BuildRelease64
Echo.&Echo.
set /p a=Input Number:
If Not "%a%"=="" Set a=%a:~0,1%
If "%a%"=="1" Goto GenerateSolution
If "%a%"=="2" Goto BuildDebug32
If "%a%"=="3" Goto BuildRelease32
If "%a%"=="4" Goto BuildDebug64
If "%a%"=="5" Goto BuildRelease64
Exit
:GenerateSolution
cmake -G "Visual Studio 17 2022" -A "x64" sample/CMakeLists.txt -B build/64
cmake -G "Visual Studio 17 2022" -A "Win32" sample/CMakeLists.txt -B build/32
Goto Menu
:BuildDebug32
cmake --build build/32 --config Debug
Goto Menu
:BuildRelease32
cmake --build build/32 --config Release
Goto Menu
:BuildDebug64
cmake --build build/64 --config Debug
Goto Menu
:BuildRelease64
cmake --build build/64 --config Release
Goto Menu