blob: 685a0bfec9b32c9f011662481c1e85f3c71a40eb [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
from waflib import Utils
top = '..'
def build(bld):
if not bld.env["WITH_TESTS"]:
return
tests_main = bld(
target='tests-main',
name='tests-main',
features='cxx',
source="main.cpp",
use='ndn-cert BOOST',
defines=['BOOST_TEST_MODULE=\"NDNCERT Tests\"']
)
unit_test = bld.program(
target="../unit-tests",
source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp'],
excl=['main.cpp']),
features=['cxx', 'cxxprogram'],
use='ndn-cert tests-main',
includes=['.'],
install_path=None,
defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode,
)