First version.
[libsub.git] / test / wscript
1 def configure(conf):
2     conf.check_cxx(fragment="""
3                             #define BOOST_TEST_MODULE Config test\n
4                             #include <boost/test/unit_test.hpp>\n
5                             int main() {}
6                             """,
7                             msg='Checking for boost unit testing library',
8                             lib='boost_unit_test_framework',
9                             uselib_store='BOOST_TEST')
10
11     conf.env.prepend_value('LINKFLAGS', '-Lsrc')
12
13 def build(bld):
14     obj = bld(features='cxx cxxprogram')
15     obj.name   = 'tests'
16     obj.uselib = 'BOOST_TEST'
17     obj.use    = 'libsub'
18     obj.source = """
19                  stl_reader_test.cc
20                  test.cc
21                  """
22     obj.target = 'tests'
23     obj.install_path = ''