Skip to content

Commit 4b09f2d

Browse files
committed
Added meson build instructions.
1 parent 2363cc1 commit 4b09f2d

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,32 @@ make
3838
## Build with CMake
3939
This library can also be built using CMake. For instructions see [Running CMake](https://cmake.org/runningcmake/). CMake version 3.24 or higher is required.
4040

41+
## Build with Meson
42+
This library can also be built using Meson. The following dependencies are required:
43+
- a Fortran compiler
44+
- [meson](https://mesonbuild.com) version 0.57 or newer
45+
- a build-system backend, *i.e.* [ninja](https://ninja-build.org) version 1.7 or newer
46+
47+
Setup a build with
48+
49+
```sh
50+
meson setup build
51+
```
52+
53+
You can select the Fortran compiler by the `FC` environment variable.
54+
To compile and run the projects testsuite use
55+
56+
```sh
57+
meson test -C build --print-errorlogs
58+
```
59+
60+
If the testsuite passes you can install with
61+
62+
```sh
63+
meson configure build --prefix=/path/to/install
64+
meson install -C build
65+
```
66+
4167
## Links
4268
- [netlib/dfftpack1.0(fftpack4.0)](http://www.netlib.org/fftpack/)
4369
- [Documents of fft routines in GNU/gsl based on `netlib/fftpack`](https://www.gnu.org/software/gsl/doc/html/fft.html#)

subprojects/test-drive

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)