tomlplusplus/toml-test/meson.build

29 lines
550 B
Meson
Raw Normal View History

2022-05-01 12:09:09 +00:00
tt_deps = [ tomlplusplus_dep ]
if not get_option('use_vendored_libs')
tt_deps += dependency('nlohmann_json', fallback: ['json', 'nlohmann_json_dep'])
endif
tt_args = []
tt_args += devel_args
if not get_option('use_vendored_libs')
tt_args += '-DUSE_VENDORED_LIBS=0'
endif
if get_option('build_tt_encoder')
executable(
'tt_encoder',
'tt_encoder.cpp',
2022-05-01 12:09:09 +00:00
cpp_args: tt_args,
dependencies: tt_deps
)
endif
if get_option('build_tt_decoder')
executable(
'tt_decoder',
'tt_decoder.cpp',
2022-05-01 12:09:09 +00:00
cpp_args: tt_args,
dependencies: tt_deps
)
endif