-
Notifications
You must be signed in to change notification settings - Fork 1
/
SConstruct
34 lines (25 loc) · 990 Bytes
/
SConstruct
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
libs= ['m', 'GL', 'GLU', 'glfw',
'X11', 'Xrandr', 'Xinerama', 'Xi', 'Xxf86vm', 'Xcursor',
'pthread', 'dl', 'boost_system']
env=Environment(CXXFLAGS='-Wall -march=native -std=c++14', LIBS=libs)
debug = ARGUMENTS.get('debug', 0)
if int(debug):
env.Append(CCFLAGS = '-g')
else:
env.Append(CCFLAGS = '-O3')
env.VariantDir('build', 'src', duplicate=0)
objects = [
env.Object('build/planning-utils/geom/Rect.cpp'),
env.Object('build/planning/RrtNode.cpp'),
env.Object('build/planning/Planner.cpp'),
env.Object('build/planning/AStar.cpp'),
env.Object('build/planning/PrmStar.cpp'),
env.Object('build/planning/SamplingPlanner.cpp'),
env.Object('build/planning/OnlineFmtStar.cpp'),
env.Object('build/planning/OnlineRrtStar.cpp')
]
env.Program(['build/main.cpp'] + objects)
# env.Program(['build/generatePaths.cpp'] + objects)
# env.Program(['build/generateTruth.cpp'] + objects)
# env.Program(['build/simulate.cpp'] + objects)
# env.Program(['build/simulate_tree.cpp'] + objects)