Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 1 | # build simulator |
| 2 | subdir('simulator') |
| 3 | |
Ben Tyner | a8126fd | 2019-08-01 19:40:07 -0500 | [diff] [blame] | 4 | # supporting files that need compiled/linked |
| 5 | test_src = ['../src/util/hei_bit_string.cpp'] |
| 6 | |
| 7 | # build g-test framework unit tests |
Zane Shelley | 200c345 | 2019-09-26 11:46:30 -0500 | [diff] [blame] | 8 | gtests = [ |
| 9 | 'bit_string_test', |
Paul Greenwood | dc47e0a | 2019-11-01 16:22:57 -0500 | [diff] [blame^] | 10 | 'flyweight_test' |
Zane Shelley | 200c345 | 2019-09-26 11:46:30 -0500 | [diff] [blame] | 11 | ] |
Ben Tyner | a8126fd | 2019-08-01 19:40:07 -0500 | [diff] [blame] | 12 | |
| 13 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 14 | |
| 15 | if gtest.found() |
| 16 | foreach g : gtests |
| 17 | test(g, executable(g.underscorify(), g + '.cpp', test_src, \ |
| 18 | dependencies : gtest, \ |
| 19 | include_directories : incdir)) |
| 20 | endforeach |
| 21 | endif |
Paul Greenwood | dc47e0a | 2019-11-01 16:22:57 -0500 | [diff] [blame^] | 22 | |
| 23 | # build unit-test framework |
| 24 | tests = ['hei_operator_register_testcase'] |
| 25 | |
| 26 | foreach t : tests |
| 27 | test(t, executable(t.underscorify(), t + '.cpp', test_src, \ |
| 28 | include_directories : incdir)) |
| 29 | endforeach |