SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL directory")
SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI directory")
IF(EXISTS ${GUI_ROOT_DIR})
+ MESSAGE("-- SALOME found at " ${GUI_ROOT_DIR})
SET(HAVE_SALOME YES)
FIND_LIBRARY(caf caf ${GUI_ROOT_DIR}/lib/salome)
@SET SRC_DIR=%ROOT_DIR%\sources
@SET OCC_LIB_PREFIX=d
-call %SRC_DIR%\msvc9_env_Salome.bat
+call %SRC_DIR%\msvc9_env_Salome.bat d
mkdir %ROOT_DIR%\build
cd %ROOT_DIR%\build
--- /dev/null
+@ECHO OFF
+
+REM Find absolute path to ROOT_DIR
+@SET PARENT_DIR=%~dp0..
+@SET ROOT_DIR=
+pushd %PARENT_DIR%
+@SET ROOT_DIR=%CD%
+popd
+
+@SET SRC_DIR=%ROOT_DIR%\sources
+
+call %SRC_DIR%\msvc9_env_Salome.bat
+mkdir %ROOT_DIR%\build
+cd %ROOT_DIR%\build
+
+cmake %SRC_DIR% -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
+
+start "" %MSVC_EXE% NewGEOM.sln
set SALOME_ROOT_DIR=%ROOT_DIR%\SALOME
)
-call "%SALOME_ROOT_DIR%\WORK\set_env.bat"
+if "%SOLVESPACE_ROOT_DIR%" == "" (
+ @SET SOLVESPACE_ROOT_DIR=%ROOT_DIR%\products\solvespace-2.0
+)
+
+call %SALOME_ROOT_DIR%\WORK\set_env.bat %1
call "%PDIR%\env_compile.bat"
+
@REM -------------------------
@REM Python
@SET PYTHON_LIB_DIR=%PYTHON_ROOT_DIR%\libs
@SET PATH=%PDIR%\freetype-2.4.11\bin;%PATH%
@SET PATH=%PDIR%\gl2ps-1.3.8\bin;%PATH%
@SET PATH=%PDIR%\qwt-5.2.1\lib;%PATH%
+@SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
@REM -------------------------
+
+
IF "%ARCH%" == "Win64" (
call "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" x64
) ELSE (
)
@SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
-@SET PATH=%ROOT_DIR%\install\bin;%ROOT_DIR%\install\plugins;%PATH%
+@SET PATH=%PATH%;%ROOT_DIR%\install\bin;%ROOT_DIR%\install\plugins
@SET LightAppConfig=%ROOT_DIR%\install\share\salome\resources\newgeom;%GUI_ROOT_DIR%\share\salome\resources\gui
@SET SRC_DIR=%ROOT_DIR%\sources
@SET OCC_LIB_PREFIX=d
-call %SRC_DIR%\msvc9_env_Salome.bat
+@SET SALOME_ROOT_DIR=%ROOT_DIR%\SALOME-7.3.0-WIN32
+@SET SOLVESPACE_ROOT_DIR=%ROOT_DIR%\products\solvespace-2.0
+@SET NEWGEOM_ROOT_DIR=%ROOT_DIR%\install
+@SET PATH=%SALOME_ROOT_DIR%;%PATH%
+
+
+call %SALOME_ROOT_DIR%\env_launch.bat
+
+@SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
+@SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
+@SET PATH=%PATH%;%NEWGEOM_ROOT_DIR%\bin;%NEWGEOM_ROOT_DIR%\plugins
+
+@SET LightAppConfig=%ROOT_DIR%\install\share\salome\resources\newgeom;%SALOME_ROOT_DIR%\MODULES\GUI\share\salome\resources\gui
SuitApp.exe LightApp -style salome --modules=NewGeom --uselicense --noexcepthandling