Skip to content
Snippets Groups Projects

Coupling

Merged Denis Louis requested to merge test_openmp into master
27 files
+ 1689
769
Compare changes
  • Side-by-side
  • Inline
Files
27
envs/msvc.cmd 0 → 100644
+ 60
0
@echo off
:: This file opens a terminal which allows you to compile the code with
:: a 64-bit mingw compiler
:: https://mingw-w64.org/
:: https://www.msys2.org/
::
:: HOW TO USE THIS FILE?
:: [check the PATHs below]
:: [run this file]
:: mkdir build
:: cd build
:: cmake ..
:: make
:: ctest
::
:: How to clean the "build" folder using cmd line?
:: cd build
:: rd /q /s .
echo setting MSVC environment...
:: set the location of gmsh SDK / mingw compiler
set GMSHSDK=%~dp0..\lib\gmsh-sdk
set EIGEN=%~dp0..\lib\eigen
:: perform some tests...
IF NOT EXIST %GMSHSDK% (
ECHO - gmsh-sdk NOT found in %GMSHSDK%!!
@REM PAUSE
@REM EXIT /B
) ELSE (
ECHO - gmsh-sdk found in %GMSHSDK%.
)
IF NOT EXIST %EIGEN% (
ECHO - eigen NOT found in %EIGEN%!!
@REM PAUSE
@REM EXIT /B
) ELSE (
ECHO - eigen found in %EIGEN%.
)
:: where is gmsh.exe and gmsh-**.dll ?
set PATH=%GMSHSDK%\bin;%GMSHSDK%\lib;%PATH%
:: where is gmsh.h ?
set INCLUDE=%EIGEN%;%GMSHSDK%\include;%INCLUDE%
:: where is gmsh.lib ?
set LIB=%GMSHSDK%\lib;%LIB%
:: where is gmsh.py ? (required only if you want to use the python API)
set PYTHONPATH=%GMSHSDK%\lib;%PYTHONPATH%
:: clear local vars
set GMSHSDK=
set EIGEN=
:: open terminal
CD /d "%~dp0"
CD ..
%comspec% /K
Loading