From 0b602632f2e607fac2944bc71d791506943a42ca Mon Sep 17 00:00:00 2001 From: dmitry Date: Sat, 1 Jul 2023 02:23:37 +0300 Subject: [PATCH] return catch2 --- meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 9ef4db0..085dcd0 100644 --- a/meson.build +++ b/meson.build @@ -480,6 +480,15 @@ if scdoc.found() endforeach endif +catch2 = dependency( + 'catch2', + version: '>=2.0.0', + fallback: ['catch2', 'catch2_dep'], + required: get_option('tests'), +) +if catch2.found() + subdir('test') +endif clangtidy = find_program('clang-tidy', required: false)