blob: 1ae20c8cc368cbc37e0e4f2820c63c683a6aa8b8 [file] [log] [blame]
Manojkiran Eda06fca442022-08-18 07:52:11 +05301pldmd_inc = include_directories('../')
Tom Joseph53279882021-04-28 06:29:13 -07002test_src = declare_dependency(
Manojkiran Eda06fca442022-08-18 07:52:11 +05303 include_directories:pldmd_inc)
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05004
5tests = [
Deepak Kodihallibc669f12019-11-28 08:52:07 -06006 'pldmd_registration_test',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05007]
8
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05009foreach t : tests
10 test(t, executable(t.underscorify(), t + '.cpp',
11 implicit_include_directories: false,
12 link_args: dynamic_linker,
13 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060014 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050015 libpldm_dep,
Brad Bishopd169dd12021-07-29 13:24:15 -040016 nlohmann_json,
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060017 gtest,
Tom Joseph53279882021-04-28 06:29:13 -070018 test_src]),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050019 workdir: meson.current_source_dir())
20endforeach