Import('env lib') myenv = env.Clone() myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib') myenv.Prepend(LIBS=['pyrit']) l = [] l.append( myenv.Program(['vector.cc']) ) myenv.Alias('tests', l)