Update for VS installed by default
[occt.git] / samples / qt / voxeldemo / Run_MSVC.bat
CommitLineData
7fd59977 1@echo off
2rem Launch MS VC with environment prepared for building OCCT qt Voxel demo
3
4rem Set build environment
5
6call %~dp0..\..\..\ros\env_build.bat vc8 win32
7
8
9SET BIN_DIR=Release
10SET CSF_GraphicShr=OpenGl\Release\VoxelOpenGl.dll
11
12SET PATH=OpenGl\Release;%QTDIR%\bin;%QTDIR%;%PATH%
13
14SET CSF_TEX_FONT=2
15SET MMGT_REENTRANT=1
16
17
18rem Define path to project file
19set PRJFILE=%~dp0VoxelDemo.sln
20
21rem Launch Visual Studio - either professional (devenv) or Express, as available
18473fc8 22if exist "%DevEnvDir%\devenv.exe" (
23 start devenv.exe "%PRJFILE%" /useenv
24) else if exist "%DevEnvDir%\VCExpress.exe" (
25 start VCExpress.exe "%PRJFILE%" /useenv
7fd59977 26) else (
27 echo Error: Could not find MS Visual Studio ^(%VCVER%^)
28 echo Check relevant environment variable ^(e.g. VS80COMNTOOLS for vc8^)
29)
30