blob: cdf8812e0526352512a3d50868a606ba1e891f6a [file] [log] [blame]
Zane Shelleyad103b92019-07-31 15:57:54 -05001# build simulator
2subdir('simulator')
3
Ben Tynera8126fd2019-08-01 19:40:07 -05004# supporting files that need compiled/linked
5test_src = ['../src/util/hei_bit_string.cpp']
6
7# build g-test framework unit tests
Zane Shelley200c3452019-09-26 11:46:30 -05008gtests = [
9 'bit_string_test',
10 'flyweight_test',
11]
Ben Tynera8126fd2019-08-01 19:40:07 -050012
13gtest = dependency('gtest', main : true, required : false, method : 'system')
14
15if 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
21endif