Make unit tests optional.
authorDavid Robillard <d@drobilla.net>
Wed, 25 Feb 2009 19:08:26 +0000 (19:08 +0000)
committerDavid Robillard <d@drobilla.net>
Wed, 25 Feb 2009 19:08:26 +0000 (19:08 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4658 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/wscript

index 54120cdd5e80290b69677480272c515996d54fd0..91577b95c0780ff3dc3e84d3c229916ba9135427 100644 (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()