Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 1 | # Simulator sources |
Zane Shelley | a7535ad | 2021-07-15 22:13:45 -0500 | [diff] [blame^] | 2 | sim_src = files( |
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 | a7535ad | 2021-07-15 22:13:45 -0500 | [diff] [blame^] | 6 | ) |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 7 | |
Zane Shelley | a7535ad | 2021-07-15 22:13:45 -0500 | [diff] [blame^] | 8 | subdir('testcases') |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 9 | |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 10 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 11 | |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 12 | # Build simulator linked locally |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 13 | if gtest.found() |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 14 | test('simulator', |
Zane Shelley | 7649b8b | 2020-05-08 20:12:35 -0500 | [diff] [blame] | 15 | executable('simulator', sim_src, test_src, |
Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame] | 16 | dependencies : gtest, |
| 17 | link_with : libhei_static, |
Zane Shelley | bcb4395 | 2021-07-08 22:13:57 -0500 | [diff] [blame] | 18 | include_directories: [ incdir, '.' ])) |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 19 | endif |