summaryrefslogtreecommitdiff
path: root/test/wscript
blob: 2954352b1224f6c1b9096b29617f016787f1b676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
def configure(conf):
    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',
                            uselib_store='BOOST_TEST')

    conf.env.prepend_value('LINKFLAGS', '-Lsrc')

def build(bld):
    obj = bld(features='cxx cxxprogram')
    obj.name   = 'tests'
    obj.uselib = 'BOOST_TEST'
    obj.use    = 'libsub'
    obj.source = """
                 dcp_reader_test.cc
                 stl_reader_test.cc
                 stl_writer_test.cc
                 test.cc
                 """
    obj.target = 'tests'
    obj.install_path = ''