blob: 82e2336e95b4ee20a852289558e433ee8f69d0c3 [file] [log] [blame]
Zane Shelley11b89942019-11-07 11:07:28 -06001# Simulator sources
Zane Shelleya7535ad2021-07-15 22:13:45 -05002sim_src = files(
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 Shelleya7535ad2021-07-15 22:13:45 -05006)
Zane Shelleyad103b92019-07-31 15:57:54 -05007
Zane Shelleya7535ad2021-07-15 22:13:45 -05008subdir('testcases')
Zane Shelleyad103b92019-07-31 15:57:54 -05009
Zane Shelley11b89942019-11-07 11:07:28 -060010gtest = dependency('gtest', main : true, required : false, method : 'system')
11
Ben Tyner032bf9e2020-05-06 21:27:54 -050012# Build simulator linked locally
Zane Shelley11b89942019-11-07 11:07:28 -060013if gtest.found()
Ben Tyner032bf9e2020-05-06 21:27:54 -050014 test('simulator',
Zane Shelley7649b8b2020-05-08 20:12:35 -050015 executable('simulator', sim_src, test_src,
Ben Tyner032bf9e2020-05-06 21:27:54 -050016 dependencies : gtest,
17 link_with : libhei_static,
Zane Shelleybcb43952021-07-08 22:13:57 -050018 include_directories: [ incdir, '.' ]))
Zane Shelley11b89942019-11-07 11:07:28 -060019endif