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.
26 lines
989 B
26 lines
989 B
project('boosttest', 'cpp') |
|
|
|
if meson.get_compiler('cpp').get_id() != 'msvc' |
|
add_global_arguments('-std=c++11', language : 'cpp') |
|
else |
|
add_global_arguments('/EHsc', language : 'cpp') |
|
endif |
|
|
|
# We want to have multiple separate configurations of Boost |
|
# within one project. The need to be independent of each other. |
|
# Use one without a library dependency and one with it. |
|
|
|
nolinkdep = dependency('boost', modules: 'utility') |
|
linkdep = dependency('boost', modules : ['thread', 'system']) |
|
testdep = dependency('boost', modules : 'test') |
|
nomoddep = dependency('boost') |
|
|
|
nolinkexe = executable('nolinkedexe', 'nolinkexe.cc', dependencies : nolinkdep) |
|
linkexe = executable('linkedexe', 'linkexe.cc', dependencies : linkdep) |
|
unitexe = executable('utf', 'unit_test.cpp', dependencies: testdep) |
|
nomodexe = executable('nomod', 'nomod.cpp', dependencies : nomoddep) |
|
|
|
test('Boost nolinktext', nolinkexe) |
|
test('Boost linktext', linkexe) |
|
test('Boost UTF test', unitexe) |
|
test('Boost nomod', nomodexe)
|
|
|