William A. Kennington III | b933771 | 2019-01-15 18:27:13 -0800 | [diff] [blame^] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
2 | gmock = dependency('gmock', disabler: true, required: build_tests) | ||||
3 | |||||
4 | tests = [ | ||||
5 | 'watchdog', | ||||
6 | ] | ||||
7 | |||||
8 | foreach t : tests | ||||
9 | test(t, executable(t.underscorify(), t + '.cpp', | ||||
10 | implicit_include_directories: false, | ||||
11 | link_with: libwatchdog, | ||||
12 | dependencies: [gtest, gmock])) | ||||
13 | endforeach |