make test more stringent by building separate library

This commit is contained in:
Michael Hirsch, Ph.D 2019-06-19 21:52:24 -04:00
parent f7465c0887
commit d3294b58c4
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
project('modules', 'fortran')
e = executable('modprog', 'mymod.f90', 'prog.f90', 'comment_mod.f90')
commented = library('commented', 'comment_mod.f90')
e = executable('modprog', 'mymod.f90', 'prog.f90',
link_with: commented)
test('moduletest', e)