2016-01-03 02:59:27 +08:00
|
|
|
project('boosttest', 'cpp',
|
|
|
|
default_options : ['cpp_std=c++11'])
|
2013-03-24 19:21:35 +08:00
|
|
|
|
2013-04-01 19:58:22 +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'])
|
2015-01-24 21:48:09 +08:00
|
|
|
testdep = dependency('boost', modules : 'test')
|
2015-09-12 18:41:01 +08:00
|
|
|
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)
|
2015-01-24 21:48:09 +08:00
|
|
|
unitexe = executable('utf', 'unit_test.cpp', dependencies: testdep)
|
2015-09-12 18:41:01 +08:00
|
|
|
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)
|
2015-01-24 21:48:09 +08:00
|
|
|
test('Boost UTF test', unitexe)
|
2015-09-12 18:41:01 +08:00
|
|
|
test('Boost nomod', nomodexe)
|