-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
28 lines (24 loc) · 961 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
project(
'cppconfig',
'cpp',
version : '0.0.1',
default_options : ['warning_level=3', 'cpp_std=c++17'],
license : 'GPL3'
)
yaml_cpp_dep = dependency('yaml-cpp')
nlohmann_json_dep = dependency('nlohmann_json')
cppdict_dep = dependency('cppdict')
catch_dep = dependency('catch2', main : true)
cppconfig_dep = declare_dependency(
include_directories: include_directories('include'),
dependencies:[yaml_cpp_dep, nlohmann_json_dep, cppdict_dep]
)
library('cppconfig', extra_files:['include/cppconfig/cppconfig.hpp', 'include/cppconfig/io/yaml.hpp', 'include/cppconfig/io/json.hpp'])
foreach test:['yaml','json']
exe = executable(test,'tests/'+test+'/test.cpp',
dependencies:[cppconfig_dep, catch_dep],
cpp_args : '-DCATCH_CONFIG_NO_POSIX_SIGNALS',
install: false
)
test(test, exe)
endforeach