blob: facae68c7ba59fb7d5dd3d8d114a1b8711916248 [file] [log] [blame]
top = '..'
def build(bld):
if not bld.env['WITH_TESTS']:
return
bld(
features='cxx',
name='unit-tests-main',
target='unit-tests-main',
source='main.cpp',
defines=['BOOST_TEST_MODULE=PSync Unit Tests'],
use='PSync'
)
bld.program(
target='../unit-tests',
features='cxx cxxprogram',
source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']),
use='PSync unit-tests-main',
install_path=None,
)