cd %ROOT_DIR%\build
REM Add -DADD_MODELS_TESTS=TRUE to enable test models
-cmake %SRC_DIR% -G "Visual Studio 14 Win64" -DPYTHON_EXECUTABLE=%PYTHONHOME%\python_d.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
+cmake %SRC_DIR% -G "Visual Studio 15 Win64" -DPYTHON_EXECUTABLE=%PYTHONHOME%\python_d.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
start "" %MSVC_EXE% SHAPER.sln
set SALOME_ROOT_DIR=%ROOT_DIR%\SALOME
)
-if "%SOLVESPACE_ROOT_DIR%" == "" (
- SET SOLVESPACE_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\solvespace-2.1
-)
-SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
-
if "%PLANEGCS_ROOT_DIR%" == "" (
SET PLANEGCS_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\planegcs-0.18
)
cd /d %SALOME_ROOT_DIR%\WORK
call set_env.bat %1
-if %2 == run (
+if "%2" == run (
call "%PDIR%\env_launch.bat"
) else (
call "%PDIR%\env_compile.bat"
@SET _NO_DEBUG_HEAP=1
-if "%VS140COMNTOOLS%" == "" (
- echo Could not find MS Visual Studio: variable VS140COMNTOOLS is not defined!
+if "%VS150COMNTOOLS%" == "" (
+ echo Could not find MS Visual Studio: variable VS150COMNTOOLS is not defined!
exit 1
-) else if exist "%VS140COMNTOOLS%\..\IDE\devenv.exe" (
- set MSVC_EXE="%VS140COMNTOOLS%\..\IDE\devenv.exe"
-) else if exist "%VS140COMNTOOLS%\..\IDE\VCExpress.exe" (
- set MSVC_EXE="%VS140COMNTOOLS%\..\IDE\VCExpress.exe"
+) else if exist "%VS150COMNTOOLS%\..\IDE\devenv.exe" (
+ set MSVC_EXE="%VS150COMNTOOLS%\..\IDE\devenv.exe"
+) else if exist "%VS150COMNTOOLS%\..\IDE\VCExpress.exe" (
+ set MSVC_EXE="%VS150COMNTOOLS%\..\IDE\VCExpress.exe"
) else (
- echo "Could not find MS Visual Studio in %VS140COMNTOOLS%\..\IDE"
- echo Check environment variable VS140COMNTOOLS!
+ echo "Could not find MS Visual Studio in %VS150COMNTOOLS%\..\IDE"
+ echo Check environment variable VS150COMNTOOLS!
exit 1
)
-call "%VS140COMNTOOLS%..\Tools\vsvars32.bat"
+call "%VS150COMNTOOLS%..\Tools\vsvars32.bat"
@SET SHAPER_ROOT_DIR=%ROOT_DIR%\install
@SET PATH=%SHAPER_ROOT_DIR%\lib\salome;%PATH%