The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
322 B

project('find fortran library', 'fortran')
fc = meson.get_compiler('fortran')
sources = ['main.f90', 'gzip.f90']
zlib = fc.find_library('z', required: false)
if not zlib.found()
error('MESON_SKIP_TEST: Z library not available.')
endif
exe = executable('zlibtest', sources, dependencies : zlib)
test('testzlib', exe)