Skip to content

Commit 2cece27

Browse files
committed
Spack environnement to build with cmake
1 parent c03d7cd commit 2cece27

3 files changed

Lines changed: 87 additions & 2 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ build-linux-ubuntu*
66
spack-build*
77
spack-configure*
88

9+
spack-env/.spack-env
10+
spack-env/spack.lock
11+
build
12+
install
13+
914
CMakeUserPresets.json
1015

1116
__pycache__

CMakePresets.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"name": "ci",
66
"cacheVariables": {
77
"TRITON": "ON",
8+
"T_INTERNAL_EXTENSION": "not_defined",
9+
"ERD_INTERNAL_EXTENSION": "not_defined",
10+
"USER_TEAM": "undef_user_team",
11+
"DOXYGEN_PATH": "not_defined",
12+
"DKOC_LICENCE": "unavailable",
813
"GUIToolkitsVariables_ROOT": "$env{INSTALL_DIR}/guitoolkitsvariables",
914
"VtkContrib_ROOT": "$env{INSTALL_DIR}/vtkcontrib",
1015
"VTK_ROOT": "$env{INSTALL_DIR}/VTK-7.1.1",
@@ -25,12 +30,22 @@
2530
"OpenCASCADE_ROOT": "$env{INSTALL_DIR}/OCCT-7_8_1/",
2631
"Cgns_ROOT": "$env{INSTALL_DIR}/CGNS-4.4.0",
2732
"Mesquite_ROOT": "$env{INSTALL_DIR}/mesquite-2.99",
28-
"CMAKE_PREFIX_PATH": "$env{INSTALL_DIR}/tetgen1.6.0;$env{INSTALL_DIR}/gmsh-4.13.1-Linux64-sdk",
33+
"CMAKE_PREFIX_PATH": "$env{INSTALL_DIR}/tetgen1.6.0;$env{INSTALL_DIR}/gmsh-4.13.1-Linux64-sdk"
34+
}
35+
},
36+
{
37+
"name": "spack-env",
38+
"cacheVariables": {
39+
"USE_TRITON": "ON",
40+
"SMOOTH3D": "ON",
41+
"USE_SMOOTH3D": "ON",
42+
"WITH_DOC": "OFF",
2943
"T_INTERNAL_EXTENSION": "not_defined",
3044
"ERD_INTERNAL_EXTENSION": "not_defined",
3145
"USER_TEAM": "undef_user_team",
3246
"DOXYGEN_PATH": "not_defined",
33-
"DKOC_LICENCE": "unavailable"
47+
"DKOC_LICENCE": "unavailable",
48+
"CMAKE_PREFIX_PATH": "$env{HOME}/magix3d-spack-env"
3449
}
3550
}
3651
]

spack-env/spack.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#
2+
# This file contains the specification for a Spack environment
3+
# that includes the dependencies required to compile Magix3D.
4+
# It is useful for compiling with CMake during the development phase.
5+
#
6+
# To use it, do not forget to activate your Spack (setup-env) and then
7+
# go to the directory containing this file (spack-env directory) and enter
8+
# the folowing commands:
9+
# - spack env activate .
10+
# - spack concretize -f
11+
# - spack install
12+
#
13+
# You can then configure with CMake using the dedicated "spack-env" preset.
14+
# - cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install --preset spack-env
15+
# - cmake --build build -j8 --target install
16+
#
17+
# Then Magix3D executable is available in the install/bin directory.
18+
#
19+
# Of course, only the final compilation step needs to be repeated
20+
# during your development process.
21+
#
22+
# Good luck !
23+
#
24+
25+
spack:
26+
definitions:
27+
- packages:
28+
- hdf5~mpi
29+
- cgns~mpi
30+
- mesquite~mpi
31+
- vtk-maillage~opengl2+qt~mpi
32+
- guitoolkitsvariables
33+
- vtkcontrib
34+
- tkutil
35+
- preferences
36+
- pythonutil
37+
- gmds
38+
- qualif
39+
- qqualif
40+
- lima
41+
- qtutil
42+
- qwtcharts
43+
- qtpython
44+
- qtvtk
45+
- opencascade@7.8.1
46+
- cgns
47+
- mesquite
48+
- tetgen
49+
- smooth3d
50+
- gmsh
51+
- xerces-c
52+
- libxt
53+
- swig
54+
55+
view:
56+
vx1:
57+
root: ${HOME}/magix3d-spack-env
58+
link_type: symlink
59+
60+
specs:
61+
- $packages
62+
63+
concretizer:
64+
unify: true
65+

0 commit comments

Comments
 (0)