From ce7b1530219a638b0852805544e99f673c38ca86 Mon Sep 17 00:00:00 2001 From: Ali-Amir Aldan Date: Fri, 26 May 2023 10:05:06 -0700 Subject: [PATCH] Add option to disable building unit tests in Meson build file. --- meson.build | 4 +++- meson_options.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 meson_options.txt diff --git a/meson.build b/meson.build index 5b361d63..ed5033ac 100644 --- a/meson.build +++ b/meson.build @@ -14,4 +14,6 @@ project( ) subdir('src/catch2') -subdir('tests') +if get_option('tests') + subdir('tests') +endif diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 00000000..76904873 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('tests', type: 'boolean', value: true, description: 'Build the unit tests')