0024629: Possibility to install binaries in vc*/bin(d), vc*/lib(d) directories
[occt.git] / adm / templates / sample.bat
1 @echo off
2
3 if ["%1"] == [""] (
4   echo Launch selected sample as follows:
5   echo   sample.bat SampleName vc10 win32 d
6   echo or to use last sample build configuration:
7   echo   sample.bat SampleName
8   echo available samples:
9   echo    Geometry
10   echo    Modeling
11   echo    Viewer2d
12   echo    Viewer3d
13   echo    ImportExport
14   echo    Ocaf
15   echo    Triangulation
16   echo    HLR
17   echo    Animation
18   echo    Convert
19   exit /B
20 )
21
22 call "%~dp0env.bat" %2 %3 %4
23
24 if not exist "%~dp0/%BIN_TAIL%/%1.exe" (
25   echo Executable %~dp0/%BIN_TAIL%/%1.exe not found.
26   echo Probably you didn't compile the application.
27   exit /B
28 )
29
30 "%~dp0/%BIN_TAIL%/%1.exe"
31