gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests')) | |
gmock = dependency('gmock', disabler: true, required: get_option('tests')) | |
tests = [ | |
'watchdog', | |
] | |
foreach t : tests | |
test( | |
t, | |
executable( | |
t.underscorify(), | |
t + '.cpp', | |
implicit_include_directories: false, | |
dependencies: [watchdog_dep, gtest, gmock])) | |
endforeach |