import os.path
import os
-def BoostUnitTests(env, target, source, test_source=None, LIBS = [], DEPENDS = [], **kw):
+def BoostUnitTests(env, target, source, test_source=None, LIBS = [], OBJECTS = [], DEPENDS = [], **kw):
path, name = os.path.split(target)
if test_source:
if type(test_source) is not type([]):
testEnv.Prepend(LIBS = LIBS)
sources = []
if source:
- sources = sources + env.Object(source)
+ sources = sources + env.Object(source) + OBJECTS
sources = sources + test_source
binName = os.path.join(path,'.' + name +'.bin')
testRunner = testEnv.Program(binName, sources)