blob: ec5410fcb6c467f118917b739ae5cda4f4dc1ce1 [file] [log] [blame]
Zane Shelley11b89942019-11-07 11:07:28 -06001# Simulator sources
Ben Tyner032bf9e2020-05-06 21:27:54 -05002sim_libhei = [
Zane Shelley11b89942019-11-07 11:07:28 -06003 'simulator.cpp',
Ben Tyner032bf9e2020-05-06 21:27:54 -05004 'hei_user_interface.cpp',
5 '../hei_user_defines.cpp'
Zane Shelleyad103b92019-07-31 15:57:54 -05006]
7
Zane Shelley11b89942019-11-07 11:07:28 -06008# Test cases
Ben Tyner032bf9e2020-05-06 21:27:54 -05009test_libhei = [
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',
18 executable('simulator', sim_libhei, test_libhei,
19 dependencies : gtest,
20 link_with : libhei_static,
21 include_directories: incdir))
Zane Shelley11b89942019-11-07 11:07:28 -060022endif