0030967: Configuration, genproj.tcl - generate OCCProducts solution for products
[occt.git] / adm / templates / msvc.bat
CommitLineData
910970ab 1@echo off
f4b0c772 2rem This file has been generated by genproj.tcl script from CASROOT/adm/templates/msvc.bat
910970ab 3
4rem Setup environment
5call "%~dp0env.bat" %1 %2 %3
6
7rem Define path to project file
f4b0c772 8set "PRJFILE=%~dp0\adm\msvc\%VCVER%\__SOLUTION__.sln"
910970ab 9if not exist "%PRJFILE%" set "PRJFILE=%~dp0\adm\msvc\%VCVER%\Products.sln"
10if not "%4" == "" (
11 set "PRJFILE=%4"
12)
13
910970ab 14rem Launch Visual Studio - either professional (devenv) or Express, as available
15if 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%^)
d6cda17a 21 echo For VS 2010-2015, check relevant environment variable ^(e.g. VS100COMNTOOLS^)
910970ab 22)