blob: 590e3814c5628c648601200e1ebe66cd120a6b56 [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',
11]
Zane Shelleyad103b92019-07-31 15:57:54 -050012
Zane Shelley11b89942019-11-07 11:07:28 -060013gtest = dependency('gtest', main : true, required : false, method : 'system')
14
Ben Tyner032bf9e2020-05-06 21:27:54 -050015# Build simulator linked locally
Zane Shelley11b89942019-11-07 11:07:28 -060016if gtest.found()
Ben Tyner032bf9e2020-05-06 21:27:54 -050017 test('simulator',
Zane Shelley7649b8b2020-05-08 20:12:35 -050018 executable('simulator', sim_src, test_src,
Ben Tyner032bf9e2020-05-06 21:27:54 -050019 dependencies : gtest,
20 link_with : libhei_static,
21 include_directories: incdir))
Zane Shelley11b89942019-11-07 11:07:28 -060022endif