meson/test cases/frameworks/1 boost/meson.build

22 lines
863 B
Meson
Raw Normal View History

project('boosttest', 'cpp',
default_options : ['cpp_std=c++11'])
2013-03-24 19:21:35 +08:00
# 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.
2013-03-24 19:21:35 +08:00
2013-06-02 19:06:43 +08:00
nolinkdep = dependency('boost', modules: 'utility')
2013-08-12 03:55:40 +08:00
linkdep = dependency('boost', modules : ['thread', 'system'])
testdep = dependency('boost', modules : 'test')
nomoddep = dependency('boost')
2013-03-24 19:21:35 +08:00
2014-06-22 22:26:36 +08:00
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)
2013-03-24 19:21:35 +08:00
2013-06-02 18:18:15 +08:00
test('Boost nolinktext', nolinkexe)
test('Boost linktext', linkexe)
test('Boost UTF test', unitexe)
test('Boost nomod', nomodexe)