tests: skip gtest test if gtest not installed

pull/2803/head
Dylan Baker 7 years ago
parent 0ec7dd5ac5
commit cece4472f6
  1. 5
      test cases/frameworks/2 gtest/meson.build

@ -1,6 +1,9 @@
project('gtest', 'cpp')
gtest = dependency('gtest', main : true)
gtest = dependency('gtest', main : true, required : false)
if not gtest.found()
error('MESON_SKIP_TEST: gtest not installed.')
endif
gtest_nomain = dependency('gtest', main : false)
e = executable('testprog', 'test.cc', dependencies : gtest)

Loading…
Cancel
Save