0023095: Porting demo and samples on OCCT 6.5.3
[occt.git] / samples / qt / Tutorial / generation-vc-projects.bat
index 3bb98b3..b306354 100644 (file)
@@ -3,17 +3,8 @@ REM Variable QTDIR and PATH to qmake executable must be defined without fail
 
 REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10),
 REM second argument specifies architecture) (win32 or win64)
+REM third argument specifies Debug or Release mode
 
-call "%~dp0..\..\..\ros\env_build.bat" %1 %2
-
-IF NOT DEFINED QTDIR GOTO ERR_QTDIR
-
-SET PATH=%QTDIR%\bin;%PATH%
+call ..\..\..\env.bat %1 %2 %3
 
 qmake -tp vc -r Tutorial.pro
-
-GOTO END
-:ERR_QTDIR
-ECHO Environment variable "QTDIR" has not been defined. Abort.
-
-:END