return catch2

This commit is contained in:
dmitry 2023-07-01 02:23:37 +03:00
parent dbc7471f83
commit 0b602632f2
1 changed files with 9 additions and 0 deletions

View File

@ -480,6 +480,15 @@ if scdoc.found()
endforeach endforeach
endif 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) clangtidy = find_program('clang-tidy', required: false)