Debian Codegraph @

test cases/common/94 threads/meson.build

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