-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcmake_windows.cmd
More file actions
42 lines (37 loc) · 1.14 KB
/
cmake_windows.cmd
File metadata and controls
42 lines (37 loc) · 1.14 KB
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
@echo off
::::::::::::::::::::::::::::
:START
::::::::::::::::::::::::::::
setlocal & pushd .
@echo Yadoms build for Windows
@echo ========================
@echo.
@echo vs2019 : platform toolset "Visual Studio 16 2019"
@echo vs2022 : platform toolset "Visual Studio 17 2022"
@echo vs2026 : platform toolset "Visual Studio 18 2026"
@echo Leave empty to use default toolset
@echo.
@echo.
cmake --version
if "%1%" == "" (
@echo Generating using default generator
cmake -S sources -B projects -DYADOMS_BINARY_DIR=bin -A Win32
goto:eof
)
if "%1%" == "vs2019" (
@echo Generating using "Visual Studio 16 2019"
cmake -S sources -B projects -G "Visual Studio 16 2019" -DYADOMS_BINARY_DIR=bin -A Win32
goto:eof
)
if "%1%" == "vs2022" (
@echo Generating using "Visual Studio 17 2022"
cmake -S sources -B projects -G "Visual Studio 17 2022" -DYADOMS_BINARY_DIR=bin -A Win32
goto:eof
)
if "%1%" == "vs2026" (
@echo Generating using "Visual Studio 18 2026"
cmake -S sources -B projects -G "Visual Studio 18 2026" -DYADOMS_BINARY_DIR=bin -A Win32
goto:eof
)
echo Error: invalid toolset selected
goto:eof