blob: 6a939ff56cbe9377328e9477af5401d1ba782111 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
project('threads', 'cpp', 'c',
default_options : ['cpp_std=c++11'])
cc = meson.get_compiler('c')
if cc.has_function_attribute('unused')
add_project_arguments('-DHAVE_UNUSED', language: 'c')
endif
threaddep = dependency('threads')
test('cppthreadtest',
executable('cppthreadprog', 'threadprog.cpp',
dependencies : threaddep
)
)
test('cthreadtest',
executable('cthreadprog', 'threadprog.c',
dependencies : threaddep
)
)
|