Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 1 | # Simulator sources |
| 2 | sim_src = [ |
| 3 | 'simulator.cpp', |
| 4 | 'user_interface.cpp', |
| 5 | ] |
| 6 | |
| 7 | # Isolator sources |
| 8 | iso_src = [ |
Paul Greenwood | 701fcc1 | 2019-08-15 19:29:31 -0500 | [diff] [blame] | 9 | '../../src/isolator/hei_isolator.cpp', |
Zane Shelley | 7bf1f6d | 2019-10-18 16:03:51 -0500 | [diff] [blame] | 10 | '../../src/isolator/hei_isolation_node.cpp', |
Zane Shelley | b77b573 | 2019-08-30 22:01:06 -0500 | [diff] [blame] | 11 | '../../src/register/hei_hardware_register.cpp', |
Paul Greenwood | 701fcc1 | 2019-08-15 19:29:31 -0500 | [diff] [blame] | 12 | '../../src/util/hei_bit_string.cpp', |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 13 | ] |
| 14 | |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 15 | # Test cases |
| 16 | test_src = [ |
| 17 | 'sample_test_case.cpp', |
| 18 | ] |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 19 | |
Zane Shelley | 11b8994 | 2019-11-07 11:07:28 -0600 | [diff] [blame] | 20 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 21 | |
| 22 | if gtest.found() |
| 23 | test('simulator', \ |
| 24 | executable('simulator', sim_src, iso_src, test_src, \ |
| 25 | dependencies : gtest, include_directories: incdir)) |
| 26 | endif |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 27 | |