cli-parser #4
11
meson.build
11
meson.build
@@ -7,6 +7,7 @@ project('ptprnt', 'cpp',
|
|||||||
usb_dep = dependency('libusb-1.0')
|
usb_dep = dependency('libusb-1.0')
|
||||||
log_dep = dependency('spdlog')
|
log_dep = dependency('spdlog')
|
||||||
pangocairo_dep = dependency('pangocairo')
|
pangocairo_dep = dependency('pangocairo')
|
||||||
|
cli11_dep = dependency('CLI11')
|
||||||
|
|
||||||
incdir = include_directories('src')
|
incdir = include_directories('src')
|
||||||
|
|
||||||
@@ -38,24 +39,18 @@ ptprnt_srcs = [
|
|||||||
ptprnt_lib = library('ptprnt',
|
ptprnt_lib = library('ptprnt',
|
||||||
include_directories: incdir,
|
include_directories: incdir,
|
||||||
install: true,
|
install: true,
|
||||||
dependencies: [usb_dep, log_dep, pangocairo_dep],
|
dependencies: [usb_dep, log_dep, pangocairo_dep, cli11_dep],
|
||||||
sources: [ptprnt_hpps, ptprnt_srcs])
|
sources: [ptprnt_hpps, ptprnt_srcs])
|
||||||
|
|
||||||
ptprnt_dep = declare_dependency(include_directories: incdir,
|
ptprnt_dep = declare_dependency(include_directories: incdir,
|
||||||
link_with: ptprnt_lib)
|
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_exe = executable(
|
||||||
'ptprnt',
|
'ptprnt',
|
||||||
'src/main.cpp',
|
'src/main.cpp',
|
||||||
install: true,
|
install: true,
|
||||||
dependencies : [usb_dep, log_dep, ptprnt_dep, cli11_dep],
|
dependencies : [usb_dep, log_dep, cli11_dep, ptprnt_dep],
|
||||||
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],
|
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <CLI/CLI.hpp>
|
|
||||||
#include <spdlog/common.h>
|
#include <spdlog/common.h>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user