Import ('env') # To avoid other libraries accumulation (boost testing, i.e.) localEnv = env.Clone() # See http://www.scons.org/doc/2.0.1/HTML/scons-user/c1809.html # about merging flags boost_library = { 'LIBS' : 'boost_unit_test_framework' } localEnv.MergeFlags (boost_library) anna_library = { 'LIBS' : [ 'anna_time', 'anna_xml', 'anna_core' ] } localEnv.MergeFlags (anna_library) pwd = Dir ('.').abspath; current_directory = str (pwd); context = "test/time/" libpath_core = current_directory.replace (context, 'source/core/'); libpath_xml = current_directory.replace (context, 'source/xml/'); libpath_time = current_directory.replace (context, 'source/time/'); localEnv.Append(LIBPATH = [libpath_core, libpath_xml, libpath_time]) result = localEnv.Program ('anna_test_time', Glob ('*.cpp')) Return ('result')