Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 1 | psutils = executable( |
| 2 | 'psutils', |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 3 | 'version.cpp', |
Lei YU | d19df25 | 2019-10-25 17:31:52 +0800 | [diff] [blame] | 4 | 'updater.cpp', |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 5 | 'main.cpp', |
| 6 | dependencies: [ |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 7 | cli11_dep, |
| 8 | libi2c_dep, |
| 9 | nlohmann_json_dep, |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 10 | phosphor_dbus_interfaces, |
| 11 | phosphor_logging, |
| 12 | ], |
Lei YU | 7c2fbbb | 2019-11-06 14:56:02 +0800 | [diff] [blame] | 13 | include_directories: [libpower_inc, libi2c_inc], |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 14 | install: true, |
| 15 | link_with: [ |
| 16 | libpower, |
| 17 | ] |
| 18 | ) |
Lei YU | 093b591 | 2019-10-22 15:28:51 +0800 | [diff] [blame] | 19 | |
Shawn McCarney | ff48143 | 2020-02-13 10:38:44 -0600 | [diff] [blame] | 20 | if get_option('tests').enabled() |
| 21 | subdir('test') |
| 22 | endif |