meson.build 459 B

1234567891011121314151617
  1. project('gmock test', 'cpp')
  2. # Using gmock without gtest is a pain so just
  3. # don't support that then.
  4. gtest = dependency('gtest', main : true, required : false)
  5. if not gtest.found()
  6. error('MESON_SKIP_TEST: gtest not installed.')
  7. endif
  8. gmock = dependency('gmock', required : false)
  9. if not gmock.found()
  10. error('MESON_SKIP_TEST: gmock not installed.')
  11. endif
  12. e = executable('gmocktest', 'gmocktest.cc', dependencies : [gtest, gmock])
  13. test('gmock test', e)