-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
54 lines (50 loc) · 1.11 KB
/
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
50
51
52
53
54
project(
'columns',
['c', 'cpp'],
version: 'v0.0.1',
default_options: 'c_std=c11'
)
columns_dep = declare_dependency(
include_directories: 'include',
)
if get_option('enable-tests')
test(
'test1',
executable(
'test1',
sources: 'tests/test1.cpp',
override_options: '-cpp_std=c++11',
dependencies: [
columns_dep,
dependency('gtest', main: true)
]
)
)
test(
'test2',
executable(
'test2',
sources: 'tests/test2.c',
override_options: '-c_std=c11',
dependencies: [
columns_dep,
dependency('cunit')
]
)
)
test(
'test3',
executable(
'test3',
sources: [
'tests/test3.cpp',
'tests/messages_def.c',
],
override_options: '-cpp_std=c++11',
dependencies: [
columns_dep,
dependency('gtest', main: true)
]
)
)
endif