New-Cli-Installer/subprojects/packagefiles/spdlog/meson.build
Vladislav Nepogodin 45cc463df1
♻ update deps
2023-12-03 19:39:03 +04:00

30 lines
856 B
Meson

project('spdlog', 'cpp', version : '1.12.0', license: 'MIT',
default_options : ['cpp_std=c++20'])
inc = include_directories('include')
thread_dep = dependency('threads')
spdlog_dependencies = [thread_dep]
spdlog_compile_args = []
if get_option('external_fmt')
fmt_dep = dependency('fmt')
spdlog_dependencies += fmt_dep
spdlog_compile_args += '-DSPDLOG_FMT_EXTERNAL'
endif
if get_option('compile_library')
spdlog_compile_args += '-DSPDLOG_COMPILED_LIB'
subdir('src')
spdlog_dep = declare_dependency(include_directories : inc, dependencies : spdlog_dependencies, link_with : spdlog_lib, compile_args : spdlog_compile_args)
else
spdlog_dep = declare_dependency(include_directories : inc, dependencies : spdlog_dependencies, compile_args : spdlog_compile_args)
endif
if get_option('tests')
subdir('tests')
endif