Alexander Afanasyev | 3fd14f0 | 2014-03-26 14:34:39 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | from waflib import Utils |
| 4 | |
| 5 | top = '..' |
| 6 | |
| 7 | def build(bld): |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 8 | if not bld.env['WITH_TESTS']: |
| 9 | return |
Shuo Chen | ca32918 | 2014-03-19 18:05:18 -0700 | [diff] [blame] | 10 | |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 11 | bld.objects(target='tests-base', |
| 12 | source=bld.path.ant_glob('*.cpp'), |
| 13 | use='repo-objects') |
Shuo Chen | ca32918 | 2014-03-19 18:05:18 -0700 | [diff] [blame] | 14 | |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 15 | bld.program(name='unit-tests', |
| 16 | target='../unit-tests', |
| 17 | source=bld.path.ant_glob('unit/**/*.cpp'), |
| 18 | use='tests-base', |
| 19 | install_path=None) |
| 20 | |
| 21 | bld.program(name='integrated-tests', |
| 22 | target='../integrated-tests', |
| 23 | source=bld.path.ant_glob('integrated/**/*.cpp'), |
| 24 | use='tests-base', |
| 25 | install_path=None) |