0027237: genproj file does not take into account any arguments
[occt.git] / adm / templates / codeblocks.bat
CommitLineData
7c65581d 1@echo off
2
3rem Setup environment
4call "%~dp0env.bat" %1 %2 %3
5
6rem Define path to project file
7set "PRJFILE=%~dp0\adm\wnt\cbp\OCCT.workspace"
8if not exist "%PRJFILE%" set "PRJFILE=%~dp0\adm\wnt\cbp\Products.workspace"
9if not "%4" == "" (
10 set "PRJFILE=%4"
11)
12
13if "%CB_PATH%"=="" if exist "%PROGRAMFILES%\CodeBlocks" set "CB_PATH=%PROGRAMFILES%\CodeBlocks\codeblocks.exe"
944d808c 14if "%CB_PATH%"=="" if exist "%PROGRAMFILES(x86)%\CodeBlocks" set "CB_PATH=%PROGRAMFILES(x86)%\CodeBlocks\codeblocks.exe"
7c65581d 15if "%CB_PATH%"=="" set "CB_PATH=codeblocks.exe"
16
17set "CASBIN=wnt\cbp"
18set "PATH=%~dp0%CASBIN%\bin%CASDEB%;%PATH%"
19
20start "" "%CB_PATH%" "%PRJFILE%"