William A. Kennington III | 0b3c389 | 2021-04-20 16:00:55 -0700 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests')) |
| 2 | gmock = dependency('gmock', disabler: true, required: get_option('tests')) |
William A. Kennington III | b933771 | 2019-01-15 18:27:13 -0800 | [diff] [blame] | 3 | |
| 4 | tests = [ |
| 5 | 'watchdog', |
| 6 | ] |
| 7 | |
| 8 | foreach t : tests |
William A. Kennington III | 0b3c389 | 2021-04-20 16:00:55 -0700 | [diff] [blame] | 9 | test( |
| 10 | t, |
| 11 | executable( |
| 12 | t.underscorify(), |
| 13 | t + '.cpp', |
| 14 | implicit_include_directories: false, |
William A. Kennington III | 080ffd7 | 2021-04-20 16:45:24 -0700 | [diff] [blame^] | 15 | dependencies: [watchdog_dep, gtest, gmock])) |
William A. Kennington III | b933771 | 2019-01-15 18:27:13 -0800 | [diff] [blame] | 16 | endforeach |