blob: 1bcdc6a639e998e0e9465c5889190ce5bc1715f3 [file] [log] [blame]
Zane Shelley11b89942019-11-07 11:07:28 -06001# Simulator sources
Zane Shelley7649b8b2020-05-08 20:12:35 -05002sim_src = [
Zane Shelley11b89942019-11-07 11:07:28 -06003 'simulator.cpp',
Zane Shelley7649b8b2020-05-08 20:12:35 -05004 'sim_hardware_access.cpp',
5 '../sim_tracing.cpp'
Zane Shelleyad103b92019-07-31 15:57:54 -05006]
7
Zane Shelley11b89942019-11-07 11:07:28 -06008# Test cases
Zane Shelley7649b8b2020-05-08 20:12:35 -05009test_src = [
Zane Shelley11b89942019-11-07 11:07:28 -060010 'sample_test_case.cpp',
Zane Shelleybcb43952021-07-08 22:13:57 -050011 'test_cases/exp20_foxhound7.cpp',
Zane Shelley11b89942019-11-07 11:07:28 -060012]
Zane Shelleyad103b92019-07-31 15:57:54 -050013
Zane Shelley11b89942019-11-07 11:07:28 -060014gtest = dependency('gtest', main : true, required : false, method : 'system')
15
Ben Tyner032bf9e2020-05-06 21:27:54 -050016# Build simulator linked locally
Zane Shelley11b89942019-11-07 11:07:28 -060017if gtest.found()
Ben Tyner032bf9e2020-05-06 21:27:54 -050018 test('simulator',
Zane Shelley7649b8b2020-05-08 20:12:35 -050019 executable('simulator', sim_src, test_src,
Ben Tyner032bf9e2020-05-06 21:27:54 -050020 dependencies : gtest,
21 link_with : libhei_static,
Zane Shelleybcb43952021-07-08 22:13:57 -050022 include_directories: [ incdir, '.' ]))
Zane Shelley11b89942019-11-07 11:07:28 -060023endif