234e52be |
1 | @echo off |
2 | |
3 | if ["%1"] == [""] ( |
4 | echo Launch selected sample as follows: |
32856b63 |
5 | echo sample.bat SampleName vc10 win32 d |
6 | echo or to use last sample build configuration: |
7 | echo sample.bat SampleName |
234e52be |
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 | |
32856b63 |
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. |
234e52be |
26 | echo Probably you didn't compile the application. |
27 | exit /B |
28 | ) |
29 | |
32856b63 |
30 | "%~dp0/%BIN_TAIL%/%1.exe" |
234e52be |
31 | |