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