-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_visual_studio_solution.bat
More file actions
38 lines (31 loc) · 1.4 KB
/
Copy pathmake_visual_studio_solution.bat
File metadata and controls
38 lines (31 loc) · 1.4 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
@echo off
echo Example:
echo -G "Visual Studio 17 2022"
echo.
echo Visual Studio 18 2026 = Generates Visual Studio 2026 project files.
echo Use -A option to specify architecture.
echo * Visual Studio 17 2022 = Generates Visual Studio 2022 project files.
echo Use -A option to specify architecture.
echo Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
echo Use -A option to specify architecture.
echo Visual Studio 15 2017 = Generates Visual Studio 2017 project files.
echo Use -A option to specify architecture.
echo Visual Studio 14 2015 = Deprecated. Generates Visual Studio 2015 project files.
echo Use -A option to specify architecture.
if "%~1"=="" (
echo.
echo Erreur : vous devez specifier le nom du projet.
echo.
echo Usage:
echo make_visual_studio_solution.bat projetc_name "Visual sutdio version"
echo Example :
echo make_visual_studio_solution.bat HelloWorld "Visual Studio 15 2017"
echo.
exit /b 1
)
set "TARGET_PROJECT_NAME=%~1"
set "TARGET_VISUAL_STUDIO=%~2"
echo Project name : %TARGET_PROJECT_NAME% with "%TARGET_VISUAL_STUDIO%"
mkdir build
cd build
cmake -DTARGET_NAME=%TARGET_PROJECT_NAME% -G "%TARGET_VISUAL_STUDIO%" ..\