moved cli11 dependency to meson wrap package
Some checks failed
Build ptprnt / build (push) Failing after 29s

This commit is contained in:
2023-10-13 00:20:25 +02:00
parent 226bb1398b
commit 1f012e5184
4 changed files with 22 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ 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')
@@ -45,17 +44,25 @@ ptprnt_lib = library('ptprnt',
ptprnt_dep = declare_dependency(include_directories: incdir,
link_with: ptprnt_lib)
# CLI11
cli11_proj = subproject('cli11')
cli11_dep = cli11_proj.get_variable('CLI11_dep')
if not cli11_dep.found()
error('CLI11 not found, can not proceed')
endif
ptprnt_exe = executable(
'ptprnt',
'src/main.cpp',
install: true,
dependencies : [usb_dep, log_dep, ptprnt_dep, cli11_dep],
dependencies : [usb_dep, log_dep, ptprnt_dep, ],
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],
)
### Unit tests
#cmake = import('cmake')
# GTest
gtest_proj = subproject('gtest')
gtest_dep = gtest_proj.get_variable('gtest_main_dep')
if not gtest_dep.found()