12ad76bd3SBrandon Wyman 2*3f1242f3SBrandon Wymanphosphor_psu_monitor = executable( 32ad76bd3SBrandon Wyman 'phosphor-psu-monitor', 42ad76bd3SBrandon Wyman 'main.cpp', 5a0f33ce3SBrandon Wyman 'psu_manager.cpp', 6aed1f75dSBrandon Wyman 'power_supply.cpp', 7*3f1242f3SBrandon Wyman 'util.cpp', 857939e84SBrandon Wyman dependencies: [ 957939e84SBrandon Wyman sdbusplus, 102bac8609SBrandon Wyman sdeventplus, 1157939e84SBrandon Wyman ], 12a0f33ce3SBrandon Wyman include_directories: '..', 13a0f33ce3SBrandon Wyman install: true, 14a0f33ce3SBrandon Wyman link_with: [ 15a0f33ce3SBrandon Wyman libpower, 16a0f33ce3SBrandon Wyman ] 17a0f33ce3SBrandon Wyman) 18*3f1242f3SBrandon Wyman 19*3f1242f3SBrandon Wymanpower_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') 20*3f1242f3SBrandon Wyman 21*3f1242f3SBrandon Wymanif get_option('tests').enabled() 22*3f1242f3SBrandon Wyman subdir('test') 23*3f1242f3SBrandon Wymanendif 24