Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Add option to disable building unit tests in Meson build file.

Commit
ce7b1530219a638b0852805544e99f673c38ca86
Author
Ali-Amir Aldan ·
Parents
535205e2ac0d

Files · Download .tar.gz

Changes

 meson.build       | 4 +++-
 meson_options.txt | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

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')