From 968b4027f4f13ebc311c3aab741fbc2eea50cca3 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 18 Jul 2018 13:52:16 +0200 Subject: meson: add support for bundled catch Better to use meson's subproject, but let's go with submodule for now. Signed-off-by: Igor Gnatenko --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index c81fbbf..b14fe0c 100644 --- a/meson.build +++ b/meson.build @@ -113,7 +113,12 @@ pkg.generate( ) if get_option('tests') or get_option('offline-tests') - dep_catch = dependency('catch') + dep_catch = dependency('catch', required : false) + if not dep_catch.found() + dep_catch = declare_dependency( + include_directories : include_directories('unittest/Catch/single_include') + ) + endif _catch = static_library( 'catch', sources : [ -- cgit v1.2.1