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', |
| 10 | 'flyweight_test', |
| 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 |