1libpldm_headers = ['.', './oem/ibm'] 2 3sources = [ 4 'pldm_cmd_helper.cpp', 5 'pldm_base_cmd.cpp', 6 'pldm_platform_cmd.cpp', 7 'pldm_bios_cmd.cpp', 8 'pldm_fru_cmd.cpp', 9 'pldm_fw_update_cmd.cpp', 10 'pldmtool.cpp', 11] 12 13if get_option('oem-ibm').allowed() 14sources += [ 15 'oem/ibm/pldm_oem_ibm.cpp', 16 ] 17endif 18 19executable( 20 'pldmtool', 21 sources, 22 implicit_include_directories: false, 23 include_directories: include_directories(libpldm_headers), 24 dependencies: [ 25 CLI11_dep, 26 libpldm_dep, 27 libpldmutils, 28 nlohmann_json_dep, 29 phosphor_dbus_interfaces, 30 sdbusplus, 31 ], 32 install: true, 33 install_dir: get_option('bindir')) 34