forked from humanoid-path-planner/hpp_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
108 lines (96 loc) · 2.94 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
#
# Copyright (c) 2014 CNRS
# Authors: Florent Lamiraux
#
#
# This file is part of hpp_tutorial
# hpp_tutorial is free software: you can redistribute it
# and/or modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, either version
# 3 of the License, or (at your option) any later version.
#
# hpp_tutorial is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Lesser Public License for more details. You should have
# received a copy of the GNU Lesser General Public License along with
# hpp_tutorial If not, see
# <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/python.cmake)
SET(PROJECT_NAME hpp_tutorial)
SET(PROJECT_DESCRIPTION
"Tutorial for humanoid path planner platform."
)
SET(PROJECT_URL "")
FINDPYTHON()
SETUP_PROJECT()
# Activate hpp-util logging if requested
SET (HPP_DEBUG FALSE CACHE BOOL "trigger hpp-util debug output")
IF (HPP_DEBUG)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHPP_DEBUG")
ENDIF()
ADD_DOC_DEPENDENCY("hpp-core >= 3")
ADD_REQUIRED_DEPENDENCY("hpp-corbaserver >= 3")
# Create and install executable running the corba server
ADD_EXECUTABLE (hpp-tutorial-server
src/tutorial.cc
)
# Link executable with hpp-corbaserver library
PKG_CONFIG_USE_DEPENDENCY (hpp-tutorial-server hpp-corbaserver)
# Install executable
INSTALL (TARGETS hpp-tutorial-server DESTINATION ${CMAKE_INSTALL_BINDIR})
SET(CATKIN_PACKAGE_SHARE_DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})
install(FILES
package.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(FILES
urdf/pr2.urdf
urdf/box.urdf
urdf/cup.urdf
urdf/box_color.urdf
urdf/rod.urdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf
)
install(FILES
srdf/pr2.srdf
srdf/pr2_manipulation.srdf
srdf/box.srdf
srdf/cup.srdf
srdf/rod.srdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/srdf
)
install(FILES
meshes/box.dae
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/meshes
)
install (FILES
src/hpp/corbaserver/pr2/robot.py
src/hpp/corbaserver/pr2/__init__.py
DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/pr2)
install (FILES
src/hpp/corbaserver/rod/robot.py
src/hpp/corbaserver/rod/__init__.py
DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rod)
install (FILES
src/hpp/corbaserver/manipulation/pr2/robot.py
src/hpp/corbaserver/manipulation/pr2/__init__.py
DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/manipulation/pr2)
# Installation for documentation
install(FILES
urdf/pr2.urdf
urdf/box.urdf
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/doxygen-html/urdf
)
install(FILES
script/tutorial_1.py
script/tutorial_2.py
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/doxygen-html/script
)
SETUP_PROJECT_FINALIZE()