Migrate boost unit test to google test with cmake (ctest)
[anna.git] / test / time / SConscript
1 Import ('env')
2
3 # To avoid other libraries accumulation:
4 localEnv = env.Clone()
5
6 # See http://www.scons.org/doc/2.0.1/HTML/scons-user/c1809.html
7 # about merging flags
8 boost_library = { 'LIBS' : 'boost_unit_test_framework' }
9 localEnv.MergeFlags (boost_library)
10
11 anna_library = { 'LIBS' : [ 'anna_time', 'anna_xml', 'anna_core' ] }
12 localEnv.MergeFlags (anna_library)
13
14 pwd = Dir ('.').abspath;
15 current_directory = str (pwd);
16
17 context = "test/time/"
18 libpath_core = current_directory.replace (context, 'source/core/');
19 libpath_xml = current_directory.replace (context, 'source/xml/');
20 libpath_time = current_directory.replace (context, 'source/time/');
21
22 localEnv.Append(LIBPATH = [libpath_core, libpath_xml, libpath_time])
23
24 result = localEnv.Program ('anna_test_time', Glob ('*.cpp'))
25
26 Return ('result')