xref: /openbmc/pldm/test/meson.build (revision 06fca441)
1pldmd_inc = include_directories('../')
2test_src = declare_dependency(
3          sources: [
4            '../pldmd/instance_id.cpp'],
5          include_directories:pldmd_inc)
6
7tests = [
8  'pldmd_instanceid_test',
9  'pldmd_registration_test',
10]
11
12foreach t : tests
13  test(t, executable(t.underscorify(), t + '.cpp',
14                     implicit_include_directories: false,
15                     link_args: dynamic_linker,
16                     build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
17                     dependencies: [
18                         libpldm_dep,
19                         nlohmann_json,
20                         gtest,
21                         test_src]),
22       workdir: meson.current_source_dir())
23endforeach
24