blob: 86143aa0ddba0572536352530052f7b37493a61c [file] [log] [blame]
Brandon Wyman3f1242f2020-01-28 13:11:25 -06001test('phosphor-power-supply-tests',
2 executable('phosphor-power-supply-tests',
3 'power_supply_tests.cpp',
4 'mock.cpp',
5 dependencies: [
6 gmock,
7 gtest,
Patrick Williams888bebd2023-05-31 19:19:49 -05008 libgpiodcxx,
9 nlohmann_json_dep,
10 phosphor_logging,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060011 sdbusplus,
12 sdeventplus,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060013 ],
14 implicit_include_directories: false,
15 include_directories: [
16 '.',
17 '..',
18 '../..'
19 ],
20 link_args: dynamic_linker,
Brandon Wyman1d7a7df2020-03-26 10:14:05 -050021 link_with: [
22 libpower,
23 ],
Patrick Williams5c6a6932023-11-29 06:44:29 -060024 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Brandon Wyman3f1242f2020-01-28 13:11:25 -060025 objects: power_supply,
26 )
27)