0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install...
[occt.git] / adm / templates / sample.bat
CommitLineData
234e52be 1@echo off
2
3if ["%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
4b3541c6 19 PAUSE
234e52be 20 exit /B
21)
22
32856b63 23call "%~dp0env.bat" %2 %3 %4
4b3541c6 24set "EXE_PATH=%CSF_OCCTBinPath%/%1.exe"
32856b63 25
4b3541c6 26if not exist "%EXE_PATH%" (
27 echo Executable %EXE_PATH% not found.
234e52be 28 echo Probably you didn't compile the application.
4b3541c6 29 PAUSE
234e52be 30 exit /B
31)
32
4b3541c6 33"%EXE_PATH%"
234e52be 34