summaryrefslogtreecommitdiff
path: root/test/wscript
blob: 136cf36d24e035639815d92d1b0a04f89455c079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def configure(conf):
    if conf.options.target_windows:
        boost_lib_suffix = '-mt'
    else:
        boost_lib_suffix = ''

    conf.check_cxx(fragment = """
                              #define BOOST_TEST_MODULE Config test\n
    			      #include <boost/test/unit_test.hpp>\n
                              int main() {}
                              """,
                              msg = 'Checking for boost unit testing library',
                              lib = 'boost_unit_test_framework%s' % boost_lib_suffix,
                              uselib_store = 'BOOST_TEST')

def build(bld):
    obj = bld(features = 'cxx cxxprogram')
    obj.name   = 'tests'
    obj.uselib = 'BOOST_TEST'
    obj.use    = 'libdcp'
    obj.source = 'tests.cc'
    obj.target = 'tests'
    obj.install_path = ''