diff options
Diffstat (limited to 'tests/meson.build')
-rw-r--r-- | tests/meson.build | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/meson.build b/tests/meson.build index 560a725..471fa73 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -6,18 +6,26 @@ tests = [ 'autoptr', - 'lib-net', 'media', 'registry', 'operations', ] +test_link_with = [libgrl] +test_deps = [libgrl_dep] + +if enable_grlnet + tests += ['lib-net'] + test_link_with += libgrlnet + test_deps += libgrlnet_dep +endif + foreach t: tests source = t + '.c' exe = executable(t, source, install: false, - link_with: [libgrl, libgrlnet], - dependencies: [libgrl_dep, libgrlnet_dep]) + link_with: test_link_with, + dependencies: test_deps) test(t, exe, timeout:10) endforeach |