-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
117 lines (97 loc) · 2.87 KB
/
CMakeLists.txt
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
# Project properties
SET(PROJECT_ORG loco-3d)
SET(PROJECT_NAME sl1m)
SET(PROJECT_DESCRIPTION "Implementation of the sl1m solver for multi contact planning")
SET(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
# Project configuration
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
# JRL-cmakemodule setup
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/python.cmake)
# Project definition
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
FINDPYTHON()
SET(${PROJECT_NAME}_SOURCES
__init__.py
constants_and_tools.py
fix_sparsity.py
planner_l1.py
planner.py
problem_definition.py
qp.py
)
SET(${PROJECT_NAME}_PLANNER_SCENARIOS_SOURCES
__init__.py
complex1.py
complex.py
escaliers.py
flat_ground.py
lp_complex1.py
lp_complex_path.py
lp_complex.py
lp_stair_bauzil_10.py
lp_stair_bauzil_hrp2_path_10.py
lp_stair_bauzil_hrp2_path.py
lp_stair_bauzil.py
stairs_10cm.py
)
SET(${PROJECT_NAME}_PLANNER_SCENARIOS_TALOS_SOURCES
__init__.py
complex1.py
constraints.py
lp_complex1_path.py
lp_complex1.py
lp_ramp_path.py
lp_rubbles_path.py
lp_slalom_debris_path.py
lp_slalom_debris.py
maze.py
ramp_noGuide.py
rubbles.py
rubble_stairs.py
slalom_debris.py
)
SET(${PROJECT_NAME}_RBPRM_SOURCES
__init__.py
constants_and_tools.py
surfaces_from_planning.py
)
SET(${PROJECT_NAME}_STANDALONE_SCENARIOS_SOURCES
__init__.py
complex.py
constraints.py
escaliers.py
)
SET(${PROJECT_NAME}_TOOLS_SOURCES
__init__.py
geom_utils.py
obj_to_constraints.py
plot_plytopes.py
plot_utils.py
polytope_conversion_utils.py
transformations.py
)
FOREACH(src ${${PROJECT_NAME}_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME} ${src})
ENDFOREACH(src ${PROJECT_NAME}_SOURCES)
FOREACH(src ${${PROJECT_NAME}_PLANNER_SCENARIOS_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME}/planner_scenarios ${src})
ENDFOREACH(src ${PROJECT_NAME}_PLANNER_SCENARIOS_SOURCES)
FOREACH(src ${${PROJECT_NAME}_PLANNER_SCENARIOS_TALOS_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME}/planner_scenarios/talos ${src})
ENDFOREACH(src ${PROJECT_NAME}_PLANNER_SCENARIOS_TALOS_SOURCES)
FOREACH(src ${${PROJECT_NAME}_RBPRM_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME}/rbprm ${src})
ENDFOREACH(src ${PROJECT_NAME}_RBPRM_SOURCES)
FOREACH(src ${${PROJECT_NAME}_STANDALONE_SCENARIOS_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME}/stand_alone_scenarios ${src})
ENDFOREACH(src ${PROJECT_NAME}_STANDALONE_SCENARIOS_SOURCES)
FOREACH(src ${${PROJECT_NAME}_TOOLS_SOURCES})
PYTHON_INSTALL_ON_SITE(${PROJECT_NAME}/tools ${src})
ENDFOREACH(src ${PROJECT_NAME}_TOOLS_SOURCES)
INSTALL(DIRECTORY sl1m/stand_alone_scenarios/constraints_files
DESTINATION ${PYTHON_SITELIB}/sl1m/stand_alone_scenarios)
ADD_LIBRARY(${PROJECT_NAME} INTERFACE)
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)