Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 1 | # Simulator sources |
Zane Shelley | 7649b8b | 2020-05-08 20:12:35 -0500 | [diff] [blame] | 2 | sim_src = [ |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 3 | 'simulator.cpp', |
Zane Shelley | 7649b8b | 2020-05-08 20:12:35 -0500 | [diff] [blame] | 4 | 'sim_hardware_access.cpp', |
| 5 | '../sim_tracing.cpp' |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 6 | ] |
| 7 | |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 8 | # Test cases |
Zane Shelley | 7649b8b | 2020-05-08 20:12:35 -0500 | [diff] [blame] | 9 | test_src = [ |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 10 | 'sample_test_case.cpp', |
Zane Shelley | bcb4395 | 2021-07-08 22:13:57 -0500 | [diff] [blame^] | 11 | 'test_cases/exp20_foxhound7.cpp', |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 12 | ] |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 13 | |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 14 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 15 | |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 16 | # Build simulator linked locally |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 17 | if gtest.found() |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 18 | test('simulator', |
Zane Shelley | 7649b8b | 2020-05-08 20:12:35 -0500 | [diff] [blame] | 19 | executable('simulator', sim_src, test_src, |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 20 | dependencies : gtest, |
| 21 | link_with : libhei_static, |
Zane Shelley | bcb4395 | 2021-07-08 22:13:57 -0500 | [diff] [blame^] | 22 | include_directories: [ incdir, '.' ])) |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 23 | endif |