]> SALOME platform Git repositories - modules/shaper.git/blob - build_Salome_eclipse.bat
Salome HOME
Add new test
[modules/shaper.git] / build_Salome_eclipse.bat
1 @ECHO OFF
2
3 REM Find absolute path to ROOT_DIR
4 @SET PARENT_DIR=%~dp0..
5 @SET ROOT_DIR=
6 pushd %PARENT_DIR%
7 @SET ROOT_DIR=%CD%
8 popd
9
10 @SET SRC_DIR=%ROOT_DIR%\sources
11 @SET OCC_LIB_PREFIX=d
12 @SET NEWGEOM_ROOT_DIR=%ROOT_DIR%\install
13 @SET SalomeAppConfig=%ROOT_DIR%\install\share\salome\resources\newgeom;%GUI_ROOT_DIR%\share\salome\resources\gui
14
15 call %SRC_DIR%\env_Salome.bat d
16 mkdir %ROOT_DIR%\build-eclipse
17 cd %ROOT_DIR%\build-eclipse
18
19 @SET CMAKE_ARGS=-G ^"Eclipse CDT4 - NMake Makefiles^"
20 @SET CMAKE_ARGS=%CMAKE_ARGS% -D_ECLIPSE_VERSION=4.3
21 @SET CMAKE_ARGS=%CMAKE_ARGS% -DCMAKE_BUILD_TYPE=Debug
22 @SET CMAKE_ARGS=%CMAKE_ARGS% -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=OFF
23 @SET CMAKE_ARGS=%CMAKE_ARGS% -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
24 @SET CMAKE_ARGS=%CMAKE_ARGS% -DPYTHON_EXECUTABLE=%PYTHONHOME%\python_d.exe
25 @SET CMAKE_ARGS=%CMAKE_ARGS% %SRC_DIR%
26
27 cmake %CMAKE_ARGS%
28
29 @REM Should be defined at ..\local_env.bat
30 start %ECLIPSE_EXE%