Make unit tests optional.

git-svn-id: svn://localhost/ardour2/branches/3.0@4658 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard
2009-02-25 19:08:26 +00:00
parent b8b6042e35
commit 8ad0123812

View File

@@ -81,18 +81,19 @@ def build(bld):
obj.vnum = EVORAL_LIB_VERSION
obj.install_path = ''
# Unit tests
obj = bld.new_task_gen('cxx', 'program')
obj.source = '''
test/SequenceTest.cpp
test/SMFTest.cpp
test/testrunner.cpp
'''
obj.includes = ['.', './src']
obj.uselib_local = 'libevoral'
obj.uselib = 'CPPUNIT'
obj.target = 'run-tests'
obj.install_path = ''
if bld.env['HAVE_CPPUNIT']:
# Unit tests
obj = bld.new_task_gen('cxx', 'program')
obj.source = '''
test/SequenceTest.cpp
test/SMFTest.cpp
test/testrunner.cpp
'''
obj.includes = ['.', './src']
obj.uselib_local = 'libevoral'
obj.uselib = 'CPPUNIT'
obj.target = 'run-tests'
obj.install_path = ''
def shutdown():
autowaf.shutdown()