George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame^] | 1 | if cpp.has_header('CLI/CLI.hpp') |
2 | CLI11_dep = declare_dependency() | ||||
3 | else | ||||
4 | CLI11_dep = dependency( | ||||
5 | 'CLI11', | ||||
6 | fallback: [ 'CLI11', 'CLI11_dep' ], | ||||
7 | ) | ||||
8 | endif | ||||
9 | |||||
10 | source = [ | ||||
11 | 'usb_manager_main.cpp', | ||||
12 | ] | ||||
13 | |||||
14 | executable( | ||||
15 | 'phosphor-usb-code-update', | ||||
16 | source, | ||||
17 | dependencies: [ | ||||
18 | CLI11_dep, | ||||
19 | ], | ||||
20 | install: true, | ||||
21 | install_dir: get_option('bindir') | ||||
22 | ) |