diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2022-06-01 06:48:23 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-06-01 11:55:27 +0200 |
commit | 1b0be1d5bea76c1d02a7afebc431844e933ed4a8 (patch) | |
tree | 2f6056d3a19a46146960167f7d6db8d59e327f25 /tests | |
parent | 340872d8cbda8d654e419463d2cacfb621446457 (diff) | |
download | libmediaart-1b0be1d5bea76c1d02a7afebc431844e933ed4a8.tar.gz |
meson: add tests option
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/meson.build b/tests/meson.build index 28834c0..2e7ddf1 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,7 +1,9 @@ -mediaart_test = executable('mediaart-test', - 'mediaarttest.c', - dependencies: libmediaart_dep, -) +if get_option('tests') + mediaart_test = executable('mediaart-test', + 'mediaarttest.c', + dependencies: libmediaart_dep, + ) -test('mediaart', mediaart_test, - env: 'G_TEST_SRCDIR=' + meson.current_source_dir()) + test('mediaart', mediaart_test, + env: 'G_TEST_SRCDIR=' + meson.current_source_dir()) +endif |