The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
442 B
21 lines
442 B
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 |
|
) |
|
)
|
|
|