forked from jmirabel/hpp_ros_interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·67 lines (56 loc) · 2.07 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
# Copyright (c) 2012 CNRS
# Author: Florent Lamiraux
#
# This file is part of hpp-corbaserver.
# hpp-corbaserver 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-corbaserver 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-corbaserver. If not, see
# <http://www.gnu.org/licenses/>.
# Requires at least CMake 2.6 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/python.cmake)
SET(PROJECT_NAME hpp_ros_interface)
SET(PROJECT_DESCRIPTION "")
SET(PROJECT_URL "")
SET(PROJECT_VERSION "")
SET(INSTALL_DOCUMENTATION OFF)
SETUP_PROJECT()
FINDPYTHON(2.7 REQUIRED EXACT)
find_package(catkin REQUIRED COMPONENTS
dynamic_graph_bridge_msgs
geometry_msgs
sensor_msgs
sot_hpp_msgs
std_msgs
trajectory_msgs)
catkin_package()
ADD_OPTIONAL_DEPENDENCY("hpp-corbaserver")
ADD_OPTIONAL_DEPENDENCY("hpp-manipulation-corba")
ADD_OPTIONAL_DEPENDENCY("dynamic_graph_bridge_msgs")
ADD_SUBDIRECTORY(src)
INSTALL(PROGRAMS
scripts/hpp_node.py
scripts/path_execution_fsm.py
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts)
INSTALL(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
IF(HPP_CORBASERVER_FOUND
AND EXISTS ${HPP_CORBASERVER_PREFIX}/bin/hppcorbaserver)
INSTALL(PROGRAMS ${HPP_CORBASERVER_PREFIX}/bin/hppcorbaserver
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
ENDIF()
IF(HPP_MANIPULATION_CORBA_FOUND
AND EXISTS ${HPP_MANIPULATION_CORBA_PREFIX}/bin/hpp-manipulation-server)
INSTALL(PROGRAMS ${HPP_MANIPULATION_CORBA_PREFIX}/bin/hpp-manipulation-server
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
ENDIF()
SETUP_PROJECT_FINALIZE()