blob: facae68c7ba59fb7d5dd3d8d114a1b8711916248 [file] [log] [blame]
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05001top = '..'
2
3def build(bld):
4 if not bld.env['WITH_TESTS']:
5 return
6
7 bld(
8 features='cxx',
9 name='unit-tests-main',
10 target='unit-tests-main',
11 source='main.cpp',
12 defines=['BOOST_TEST_MODULE=PSync Unit Tests'],
13 use='PSync'
14 )
15
16 bld.program(
17 target='../unit-tests',
18 features='cxx cxxprogram',
19 source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']),
20 use='PSync unit-tests-main',
21 install_path=None,
22 )