-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
31 lines (22 loc) · 942 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
31
project('lineclip', 'fortran',
version: '1.0.0',
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])
fc = meson.get_compiler('fortran')
std18 = fc.first_supported_argument(['-std=f2018', '-stand f18', '/stand:f18'])
add_project_arguments(std18, language : 'fortran')
assert_lib = library('assert',
sources: ['assert.f90'])
lineclip_lib = library('lineclip', 'lineclipping.f90',
link_with: [assert_lib])
lineclip_exe = executable('RunLineclip', 'DemoLineclip.f90',
link_with: [lineclip_lib, assert_lib])
test('clip', lineclip_exe, timeout: 10)
# -- coarray
coarrays = dependency('coarray', required: false, disabler: true)
CoarrayLineclip_exe = executable('CoarrayLineclip', 'DemoCoarrayLineclip.f90',
link_with: [assert_lib, lineclip_lib],
dependencies: coarrays)
cafrun = find_program('cafrun', required: false)
test('CoarrayClip', cafrun,
args: CoarrayLineclip_exe,
timeout: 10)