0030967: Configuration, genproj.tcl - generate OCCProducts solution for products
[occt.git] / adm / templates / msvc.bat
1 @echo off
2 rem This file has been generated by genproj.tcl script from CASROOT/adm/templates/msvc.bat
3
4 rem Setup environment
5 call "%~dp0env.bat" %1 %2 %3
6
7 rem Define path to project file
8 set "PRJFILE=%~dp0\adm\msvc\%VCVER%\__SOLUTION__.sln"
9 if not exist "%PRJFILE%" set "PRJFILE=%~dp0\adm\msvc\%VCVER%\Products.sln"
10 if not "%4" == "" (
11   set "PRJFILE=%4"
12 )
13
14 rem Launch Visual Studio - either professional (devenv) or Express, as available
15 if exist "%DevEnvDir%\devenv.exe"  (
16   start "" "%DevEnvDir%\devenv.exe" "%PRJFILE%"
17 ) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe"  (
18   start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
19 ) else (
20   echo Error: Could not find MS Visual Studio ^(%VCVER%^)
21   echo For VS 2010-2015, check relevant environment variable ^(e.g. VS100COMNTOOLS^)
22 )