Ashlesh Gawande | 0b2897e | 2018-06-20 14:40:47 -0500 | [diff] [blame] | 1 | top = '..' |
2 | |||||
3 | def 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 | ) |