More Win32 fixes.
[libsub.git] / test / wscript
1 def configure(conf):
2     if conf.env.TARGET_WINDOWS:
3         boost_lib_suffix = '-mt'
4
5     conf.check_cxx(fragment="""
6                             #define BOOST_TEST_MODULE Config test\n
7                             #include <boost/test/unit_test.hpp>\n
8                             int main() {}
9                             """,
10                             msg='Checking for boost unit testing library',
11                             lib='boost_unit_test_framework%s' % boost_lib_suffix,
12                             uselib_store='BOOST_TEST')
13
14     conf.env.prepend_value('LINKFLAGS', '-Lsrc')
15
16 def build(bld):
17     obj = bld(features='cxx cxxprogram')
18     obj.name   = 'tests'
19     obj.uselib = 'BOOST_TEST CXML'
20     obj.use    = 'libsub'
21     obj.source = """
22                  dcp_reader_test.cc
23                  dcp_to_stl_binary_test.cc
24                  iso6937_test.cc
25                  stl_binary_reader_test.cc
26                  stl_binary_writer_test.cc
27                  stl_text_reader_test.cc
28                  subrip_reader_test.cc
29                  time_test.cc
30                  test.cc
31                  """
32     obj.target = 'tests'
33     obj.install_path = ''