Skip to content

Commit 2e12e0a

Browse files
committed
doc
1 parent 33fa56d commit 2e12e0a

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ h5fortran is designed for easy use using static or shared linking from your proj
3030
* CMake ExternalProject
3131
* CMake FetchContent
3232
* CMake + Git submodule
33+
* Fortran Package Manager (fpm)
3334
* Meson subproject
3435

3536
Uses Fortran `submodule` for clean template structure.
@@ -69,6 +70,10 @@ In general we hold to the geospace-code [code of conduct](https://github.com/geo
6970

7071
## Build
7172

73+
h5fortran can be built with any one of CMake, [fpm](https://fpm.fortran-lang.org/), or [Meson](https://mesonbuild.com/).
74+
75+
### CMake
76+
7277
Using CMake:
7378

7479
```sh
@@ -91,6 +96,25 @@ To save time, if not intended to use self-tests, you can skip the build of the t
9196
cmake -B build -DBUILD_TESTING=off
9297
```
9398

99+
### Fortran Package Manager (fpm)
100+
101+
FPM requires HDF5 ≥ 1.10.6.
102+
103+
```sh
104+
fpm build
105+
fpm test
106+
fpm install
107+
```
108+
109+
### Meson
110+
111+
```sh
112+
meson build
113+
meson compile -C build
114+
meson test -C build
115+
meson install -C build
116+
```
117+
94118
## Build HDF5
95119

96120
To build the HDF5 and ZLIB libraries:
@@ -154,7 +178,6 @@ For detailed [examples](./Examples/) see [Examples.md](./Examples.md).
154178
* The first character of the filename should be a character, NOT whitespace to avoid file open/creation errors.
155179
* Polymorphic array rank is implemented.
156180

157-
158181
### h5fortran: missing Fortran datatypes
159182

160183
* arrays of rank > 7: prototyped in reader_nd.f90, writer_nd.f90. Fortran 2008 arrays are up to rank 15, but only recent compilers support.

0 commit comments

Comments
 (0)