forked from scivision/fortran2018-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
47 lines (35 loc) · 1.46 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
conf_data = configuration_data()
conf_data.set('real_prec', 'integer,parameter :: wp=real' + realbits)
configure_file(input : 'polymorphic.in.f90',
output : 'polymorphic.f90',
configuration : conf_data)
cast = executable('cast_int2real', 'cast_int2real.f90')
test('CastInt2Real', cast, suite: 'real')
polymorph = executable('polymorph', meson.current_build_dir() / 'polymorphic.f90')
test('Polymorphic', polymorph, suite: 'real')
coerce = executable('coerce', 'coerce.f90')
test('Coerce', coerce, suite: 'real')
eps = executable('epsilon', 'epsilon.f90')
test('Epsilon1', eps, suite: 'real')
if f08kind
divprec = executable('divprec', 'div_precision.f90')
test('DivisionPrecision', divprec, suite: 'real')
floatprec = executable('floatprec', 'floating_precision.f90')
test('FloatPrecision', floatprec, suite: 'real')
hugeprec = executable('hugeprec', 'huge_precision.f90')
test('HugePrecision', hugeprec, suite: 'real')
precprob = executable('precprob', 'precision_problems.f90')
test('PrecisionProblems', precprob, suite: 'real')
endif
if f18prop
properties = executable('properties', 'properties.f90')
test('Fortran2018 Properties', properties, suite: 'real')
endif
assert_lib = library('assert', 'assert.f90')
if f08kind
nan = executable('nan', 'nans.f90')
test('NaN', nan, suite: 'real')
testassert_exe = executable('testassert', 'finite.f90',
link_with: assert_lib)
test('Assert', testassert_exe, suite: 'real')
endif