2869cd52c5e6054f9513dad0a35dd92d72d69547
[dcpomatic.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                               """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework', uselib_store = 'BOOST_TEST')
7
8 def build(bld):
9     obj = bld(features = 'cxx cxxprogram')
10     obj.name   = 'short-unit-tests'
11     obj.uselib = 'BOOST_TEST'
12     obj.use    = 'libdvdomatic'
13     obj.source = 'short.cc'
14     obj.target = 'short-unit-tests'
15     obj.install_path = ''
16
17     obj = bld(features = 'cxx cxxprogram')
18     obj.name   = 'long-unit-tests'
19     obj.uselib = 'BOOST_TEST'
20     obj.use    = 'libdvdomatic'
21     obj.source = 'long.cc'
22     obj.target = 'long-unit-tests'
23     obj.install_path = ''