Some refactorings to incoporate CLI parsing
Some checks failed
Build ptprnt / build (push) Failing after 31s

This commit is contained in:
2023-10-13 00:02:44 +02:00
parent 7d0cb89bda
commit 3431cc2225
10 changed files with 101 additions and 40 deletions

View File

@@ -7,6 +7,7 @@ project('ptprnt', 'cpp',
usb_dep = dependency('libusb-1.0')
log_dep = dependency('spdlog')
pangocairo_dep = dependency('pangocairo')
cli11_dep = dependency('CLI11')
incdir = include_directories('src')
@@ -48,7 +49,7 @@ ptprnt_exe = executable(
'ptprnt',
'src/main.cpp',
install: true,
dependencies : [usb_dep, log_dep, ptprnt_dep],
dependencies : [usb_dep, log_dep, ptprnt_dep, cli11_dep],
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],
)