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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
project(
'jkc',
'cpp',
version : '0.1',
meson_version : '>= 1.3.0',
default_options : ['warning_level=3', 'cpp_std=c++23'],
)
conf_data = configuration_data()
conf_data.set('version', meson.project_version())
configure_file(input: 'src/config.h.in',
output: 'config.h',
configuration : conf_data)
dependencies = [
]
inc = include_directories('src')
exe = executable(
'jkc',
sources: [
'src/args.cc',
'src/args.hh',
'src/u.hh',
'src/u16.hh',
'src/u8.hh',
'src/umod8.hh',
'src/main.cc',
],
include_directories: inc,
install : true,
dependencies : dependencies,
)
gtest_main_dep = dependency('gtest_main', fallback : ['gtest_main'])
test_dependencies = [
gtest_main_dep,
]
test('args', executable(
'test_args',
sources: [
'src/args.cc',
'src/args.hh',
'test/args.cc',
],
include_directories: inc,
dependencies : test_dependencies))
test('u', executable(
'test_u',
sources: [
'src/u.hh',
'src/u16.hh',
'src/u8.hh',
'src/umod8.hh',
'test/u.cc',
],
include_directories: inc,
dependencies : test_dependencies))
|