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