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 |
| 8 | gtests = ['bit_string_test'] |
| 9 | |
| 10 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 11 | |
| 12 | if gtest.found() |
| 13 | foreach g : gtests |
| 14 | test(g, executable(g.underscorify(), g + '.cpp', test_src, \ |
| 15 | dependencies : gtest, \ |
| 16 | include_directories : incdir)) |
| 17 | endforeach |
| 18 | endif |