30 lines
572 B
Meson
30 lines
572 B
Meson
project(
|
|
'testlib',
|
|
'c',
|
|
version: '0.1',
|
|
default_options: ['c_std=c17','warning_level=3'],
|
|
)
|
|
|
|
src = files(
|
|
'hashmap/myhashmap.c',
|
|
'queue/myqueue.c',
|
|
'string/mystring.c',
|
|
'vector/myvector.c',
|
|
)
|
|
|
|
testlib = files(
|
|
'test/test.c',
|
|
'test/hashmap/hm1.c',
|
|
'test/queue/q1.c',
|
|
'test/string/str1.c',
|
|
'test/string/str2.c',
|
|
'test/string/str3.c',
|
|
'test/vector/v1.c',
|
|
)
|
|
|
|
sources = src + testlib
|
|
|
|
inc_dir = include_directories('string', 'queue', 'hashmap', 'vector')
|
|
|
|
executable('testlib', sources, include_directories: inc_dir)
|