forked from geospace-code/h5fortran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
30 lines (24 loc) · 834 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
project('Object-oriented HDF5 Fortran', 'fortran',
meson_version : '>=0.50',
version : '1.0.0')
fc = meson.get_compiler('fortran')
if fc.get_id() == 'gcc'
add_global_arguments('-O', '-fimplicit-none', '-Wextra', '-Wpedantic', language : 'fortran')
quiet = ['-Wno-compare-reals', '-Wno-maybe-uninitialized']
else
quiet = ['-w']
endif
hdf5 = dependency('hdf5', language : 'fortran')
h5run = fc.run('use h5lt; end', dependencies: hdf5)
if h5run.returncode() != 0
error('HDF5 linking problems: ' + h5run.stderr())
endif
subdir('src')
ooh5 = library('oohdf5', hdf5_src, dependencies: hdf5)
# --- testing
subdir('tests')
shapes = executable('shapes_hdf5', 'tests/GetShape.f90',
dependencies: hdf5,
link_with: ooh5,
fortran_args: quiet)
test('Shapes', shapes, args: ['p5.h5','group69/flux_node'], is_parallel: false)