Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multiphysics 0471
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Denis Louis
Multiphysics 0471
Commits
cf110c27
Commit
cf110c27
authored
3 years ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
add msvc env
parent
2bc6278a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Coupling
,
!5
Optimization du code FEM
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
envs/msvc.cmd
+60
-0
60 additions, 0 deletions
envs/msvc.cmd
with
60 additions
and
0 deletions
envs/msvc.cmd
0 → 100644
+
60
−
0
View file @
cf110c27
@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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment