2013-03-24 19:21:35 +08:00
|
|
|
project('boosttest', 'cxx')
|
|
|
|
|
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-01 19:06:36 +08:00
|
|
|
nolinkdep = find_dep('boost', modules: 'utility')
|
|
|
|
linkdep = find_dep('boost', modules : 'thread')
|
2013-03-24 19:21:35 +08:00
|
|
|
|
2013-04-01 19:58:22 +08:00
|
|
|
nolinkexe = executable('nolinkedexe', 'nolinkexe.cc', deps : nolinkdep)
|
2013-03-24 21:04:51 +08:00
|
|
|
linkexe = executable('linkedexe', 'linkexe.cc', deps : linkdep)
|
2013-03-24 19:21:35 +08:00
|
|
|
|
2013-06-02 18:18:15 +08:00
|
|
|
test('Boost nolinktext', nolinkexe)
|
|
|
|
test('Boost linktext', linkexe)
|