-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
87 lines (73 loc) · 4.06 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Import('env')
local_env = env.Clone()
local_env.AppendUnique(CPPPATH = ['libraries/googletest/gtest-1.7.0/include'])
local_env.AppendUnique(CPPPATH = ['libraries/googlemock/gmock-1.7.0/include'])
local_env.AppendUnique(CPPPATH = ['../source'])
local_env.AppendUnique(LIBPATH = ['libraries/googletest', 'libraries/googlemock'])
local_env.AppendUnique(LIBS = ['gtest', 'gmock', 'pthread'])
enable_gcov = ARGUMENTS.get('enable_gcov', False)
if enable_gcov:
local_env.AppendUnique(CXXFLAGS = ['-fprofile-arcs', '-ftest-coverage'])
local_env.AppendUnique(LINKFLAGS = '-fprofile-arcs')
source_files = ['tests/main.cpp']
source_files += ['tests/allocator_tester.cpp']
source_files += ['tests/binary_indexed_tree_tester.cpp']
source_files += ['tests/binary_indexed_tree_2d_tester.cpp']
source_files += ['tests/binary_indexed_tree_3d_tester.cpp']
source_files += ['tests/binary_search_tree_tester.cpp']
source_files += ['tests/cyclic_array_tester.cpp']
source_files += ['tests/disjoint_sets_tester.cpp']
source_files += ['tests/geometry/convex_hull_tester.cpp']
source_files += ['tests/geometry/distance_tester.cpp']
source_files += ['tests/geometry/line_segment_tester.cpp']
source_files += ['tests/geometry/point_tester.cpp']
source_files += ['tests/geometry/point_comparators_tester.cpp']
source_files += ['tests/geometry/point_on_line_segment_tester.cpp']
source_files += ['tests/geometry/points_collinear_tester.cpp']
source_files += ['tests/geometry/line_segments_intersect_tester.cpp']
source_files += ['tests/graphs/bipartite_graph_tester.cpp']
source_files += ['tests/graphs/breadth_first_search_tester.cpp']
source_files += ['tests/graphs/connected_components_tester.cpp']
source_files += ['tests/graphs/depth_first_search_tester.cpp']
source_files += ['tests/graphs/graph_tester.cpp']
source_files += ['tests/graphs/max_flow_dinic_tester.cpp']
source_files += ['tests/graphs/max_flow_edmonds_karp_tester.cpp']
source_files += ['tests/graphs/maximum_matching_hopcroft_karp_tester.cpp']
source_files += ['tests/graphs/minimum_spanning_tree_kruskal_tester.cpp']
source_files += ['tests/graphs/minimum_spanning_tree_prim_tester.cpp']
source_files += ['tests/graphs/shortest_paths_dijkstra_tester.cpp']
source_files += ['tests/graphs/shortest_paths_floyd_warshall_tester.cpp']
source_files += ['tests/graphs/strongly_connected_components_tarjan_tester.cpp']
source_files += ['tests/graphs/topological_sort_tester.cpp']
source_files += ['tests/graphs/weighted_graph_tester.cpp']
source_files += ['tests/greatest_common_divisor_tester.cpp']
source_files += ['tests/interval_tree_tester.cpp']
source_files += ['tests/interval_tree_2d_tester.cpp']
source_files += ['tests/interval_tree_3d_tester.cpp']
source_files += ['tests/interval_tree_4d_tester.cpp']
source_files += ['tests/least_common_multiple_tester.cpp']
source_files += ['tests/longest_strictly_decreasing_subsequence_tester.cpp']
source_files += ['tests/longest_strictly_increasing_subsequence_tester.cpp']
source_files += ['tests/longest_weakly_decreasing_subsequence_tester.cpp']
source_files += ['tests/longest_weakly_increasing_subsequence_tester.cpp']
source_files += ['tests/majority_element_tester.cpp']
source_files += ['tests/meta/greatest_common_divisor_tester.cpp']
source_files += ['tests/multiply_without_overflow_tester.cpp']
source_files += ['tests/modular_inverse_tester.cpp']
source_files += ['tests/nth_fibonacci_number_tester.cpp']
source_files += ['tests/palindromic_substrings_manacher_tester.cpp']
source_files += ['tests/prefix_function_tester.cpp']
source_files += ['tests/prime_numbers_generator_tester.cpp']
source_files += ['tests/priority_queue_tester.cpp']
source_files += ['tests/red_black_tree_tester.cpp']
source_files += ['tests/sieve_of_eratosthenes_tester.cpp']
source_files += ['tests/shortest_text_template_tester.cpp']
source_files += ['tests/queue_tester.cpp']
source_files += ['tests/stack_tester.cpp']
source_files += ['tests/vector_tester.cpp']
target = 'test'
program = local_env.Program(target, source_files)
Default(program)
env.Alias(target, '.')
local_env.Depends(program, env.Alias('gtest'))
local_env.Depends(program, env.Alias('gmock'))