forked from pantor/inja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
49 lines (33 loc) · 928 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
project('inja', 'cpp', default_options: ['cpp_std=c++17'])
#option('build_tests', type: 'boolean', value: true)
#option('build_benchmark', type: 'boolean', value: true)
inja_dep = declare_dependency(
include_directories: include_directories('include', 'third_party/include')
)
amalg_script = files('scripts/update_single_include.sh')
amalg_files = files(
'include/inja/inja.hpp',
'include/inja/renderer.hpp',
'include/inja/environment.hpp',
)
amalg_tgt = run_target( 'amalg',
command: amalg_script
)
inja_test = executable(
'inja_test',
'test/test.cpp',
dependencies: inja_dep
)
inja_single_test = executable(
'inja_single_test',
'test/test.cpp',
'single_include/inja/inja.hpp',
dependencies: [inja_dep]
)
inja_benchmark = executable(
'inja_benchmark',
'test/benchmark.cpp',
dependencies: inja_dep
)
test('Inja unit test', inja_test)
test('Inja single include test', inja_single_test)