-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
26 lines (19 loc) · 818 Bytes
/
Copy pathmeson.build
File metadata and controls
26 lines (19 loc) · 818 Bytes
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
project('lcpfct', 'fortran',
default_options : ['default_library=static', 'buildtype=release'])
fc = meson.get_compiler('fortran')
if fc.get_id() == 'gcc'
add_project_arguments('-mtune=native', '-Werror=array-bounds', '-Wno-unused-label', '-Werror=line-truncation', language: 'fortran')
endif
lcpfct = library('lcpfct', 'src/gasdyn.f', 'src/lcpfct.f')
fast2d_exe = executable('fast2d', 'src/RunFast2d.f90', 'src/fast2d.f',
link_with: lcpfct)
test('Shock2d', fast2d_exe)
shock_exe = executable('shock', 'src/RunShock.f90', 'src/shock.f',
link_with: lcpfct)
test('Shock1d', shock_exe)
convect_exe = executable('convect', 'src/convect.f',
link_with: lcpfct)
test('Convection', convect_exe)
diaphragm_exe = executable('diaphragm', 'src/diaphragm.f',
link_with: lcpfct)
test('Diaphragm', diaphragm_exe)