-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
29 lines (22 loc) · 1020 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
project('Redis Client', 'cpp',
license : ['Boost'],
version : '0.1',
default_options : ['cpp_std=c++17', 'warning_level=3', 'werror=true'])
thread_dep = dependency('threads')
# begin asio: https://think-async.com/Asio/
add_global_arguments('-I' + get_option('asio_include_dir'), language : 'cpp')
add_global_arguments('-DASIO_STANDALONE', language : 'cpp')
add_global_arguments('-DASIO_NO_DEPRECATED', language : 'cpp')
# end asio
# clipp: https://github.com/muellan/clipp/
add_global_arguments('-I' + get_option('clipp_include_dir'), language : 'cpp')
# spdlog: https://github.com/gabime/spdlog
add_global_arguments('-I' + get_option('spdlog_include_dir'), language : 'cpp')
# json
add_global_arguments('-I' + get_option('json_include_dir'), language : 'cpp')
inc_dir = include_directories('include')
src = ['src/main.cpp', 'src/redis_client.cpp']
executable('redis_client_test',
sources : src,
include_directories : inc_dir,
dependencies : [thread_dep])