meson.build 863 B

12345678910111213141516171819202122
  1. project('boosttest', 'cpp',
  2. default_options : ['cpp_std=c++11'])
  3. # We want to have multiple separate configurations of Boost
  4. # within one project. The need to be independent of each other.
  5. # Use one without a library dependency and one with it.
  6. nolinkdep = dependency('boost', modules: 'utility')
  7. linkdep = dependency('boost', modules : ['thread', 'system'])
  8. testdep = dependency('boost', modules : 'test')
  9. nomoddep = dependency('boost')
  10. nolinkexe = executable('nolinkedexe', 'nolinkexe.cc', dependencies : nolinkdep)
  11. linkexe = executable('linkedexe', 'linkexe.cc', dependencies : linkdep)
  12. unitexe = executable('utf', 'unit_test.cpp', dependencies: testdep)
  13. nomodexe = executable('nomod', 'nomod.cpp', dependencies : nomoddep)
  14. test('Boost nolinktext', nolinkexe)
  15. test('Boost linktext', linkexe)
  16. test('Boost UTF test', unitexe)
  17. test('Boost nomod', nomodexe)