From c7a8b42f3120af0822c6bb0e6c1756980ac48c8f Mon Sep 17 00:00:00 2001 From: asafkahlon <35964924+asafkahlon@users.noreply.github.com> Date: Wed, 9 Jun 2021 11:07:25 +0300 Subject: Add an option to disable building tests (#533) Signed-off-by: Asaf Kahlon --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 6feb0a5..79a18c6 100644 --- a/meson.build +++ b/meson.build @@ -125,7 +125,7 @@ thread_dep = dependency('threads') # # Read build files from sub-directories # -subdirs = [ 'lib', 'include', 'test' ] +subdirs = [ 'lib', 'include'] if get_option('utils') and not platform.endswith('bsd') and platform != 'dragonfly' subdirs += [ 'util', 'doc' ] endif @@ -134,6 +134,10 @@ if get_option('examples') subdirs += 'example' endif +if get_option('tests') + subdirs += 'test' +endif + foreach n : subdirs subdir(n) endforeach -- cgit v1.2.1