blob: ce1e5da5ee71cbebeb98485a6569b77f62945a27 [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',
Paul Greenwooddc47e0a2019-11-01 16:22:57 -050010 'flyweight_test'
Zane Shelley200c3452019-09-26 11:46:30 -050011]
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
Paul Greenwooddc47e0a2019-11-01 16:22:57 -050022
23# build unit-test framework
24tests = ['hei_operator_register_testcase']
25
26foreach t : tests
27 test(t, executable(t.underscorify(), t + '.cpp', test_src, \
28 include_directories : incdir))
29endforeach