blob: e780a2ea069676b989e41b2fe28817661cdc3653 [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
Ben Tyner032bf9e2020-05-06 21:27:54 -05005test_src = ['../src/util/hei_bit_string.cpp',
Zane Shelley7649b8b2020-05-08 20:12:35 -05006 'sim_tracing.cpp']
Ben Tynera8126fd2019-08-01 19:40:07 -05007
8# build g-test framework unit tests
Zane Shelley200c3452019-09-26 11:46:30 -05009gtests = [
10 'bit_string_test',
Zane Shelley6eb61902020-05-15 22:25:58 -050011 'flyweight_test',
12 'operator_register_test',
Zane Shelley200c3452019-09-26 11:46:30 -050013]
Ben Tynera8126fd2019-08-01 19:40:07 -050014
15gtest = dependency('gtest', main : true, required : false, method : 'system')
16
17if gtest.found()
18 foreach g : gtests
19 test(g, executable(g.underscorify(), g + '.cpp', test_src, \
20 dependencies : gtest, \
21 include_directories : incdir))
22 endforeach
23endif
Paul Greenwooddc47e0a2019-11-01 16:22:57 -050024