-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
33 lines (26 loc) · 1.22 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
project('LinkedListIterator', ['c', 'cpp'],
default_options : ['cpp_std=c++11', 'c_std=c99'],
version: '0.1.0',
license: 'MIT')
# doctest_proj = subproject('doctest')
# doctest_dep = doctest_proj.get_variable('doctest_dep')
# # NB: Doctest dependency is needed on anything that includes doctest.h even if
# # we use DOCTEST_CONFIG_DISABLE
# This is a header-only library, so there is no library to link.
# Everything we build is test.
#
# First show the all the parts of the C code do what is expected...
c_stack_test_exe = executable('test-c-stack',
['c-stack-test-main.c',
'c_stack.c',
'test_infrastructure.c'])
test('c stack tests', c_stack_test_exe, args: [])
c_deque_test_exe = executable('test-c-deque',
['c-deque-test-main.c',
'c_deque.c',
'test_infrastructure.c'])
test('c deque tests', c_deque_test_exe, args: [])
# Then show that the C++ interface imports that functionality...
test_files = ['c_stack.c', 'c_deque.c']
test_exe = executable('test-LinkedListIterator',
['test-main.cpp'] + test_files)