0027197: Configuration - fix compilation issues when using mingw
[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%"=="" set "CB_PATH=codeblocks.exe"
15
16 set "CASBIN=wnt\cbp"
17 set "PATH=%~dp0%CASBIN%\bin%CASDEB%;%PATH%"
18
19 start "" "%CB_PATH%" "%PRJFILE%"