0030967: Configuration, genproj.tcl - generate OCCProducts solution for products
[occt.git] / adm / templates / codeblocks.bat
1 @echo off
2
3 rem Setup environment
4 call "%~dp0env.bat" %1 %2 %3
5
6 rem Define path to project file
7 set "PRJFILE=%~dp0\adm\wnt\cbp\OCCT.workspace"
8 if not exist "%PRJFILE%" set "PRJFILE=%~dp0\adm\wnt\cbp\Products.workspace"
9 if not "%4" == "" (
10   set "PRJFILE=%4"
11 )
12
13 if "%CB_PATH%"=="" if exist "%PROGRAMFILES%\CodeBlocks" set "CB_PATH=%PROGRAMFILES%\CodeBlocks\codeblocks.exe"
14 if "%CB_PATH%"=="" if exist "%PROGRAMFILES(x86)%\CodeBlocks" set "CB_PATH=%PROGRAMFILES(x86)%\CodeBlocks\codeblocks.exe"
15 if "%CB_PATH%"=="" set "CB_PATH=codeblocks.exe"
16
17 set "CASBIN=wnt\cbp"
18 set "PATH=%~dp0%CASBIN%\bin%CASDEB%;%PATH%"
19
20 start "" "%CB_PATH%" "%PRJFILE%"