Skip to content
Snippets Groups Projects
CMakeLists.txt 4.9 KiB
Newer Older
Steve Tonneau's avatar
Steve Tonneau committed
# Copyright (c) 2012 CNRS
# Author: Florent Lamiraux
#
# This file is part of hpp-rbprm-corba.
# hpp-rbprm-corba 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-rbprm-corba 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-rbprm-corba.  If not, see
# <http://www.gnu.org/licenses/>.

# Requires at least CMake 2.6 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CXX_DISABLE_WERROR true)

INCLUDE(cmake/base.cmake)
INCLUDE(cmake/idl.cmake)
INCLUDE(cmake/python.cmake)

SET(PROJECT_NAME hpp-rbprm-corba)
SET(PROJECT_DESCRIPTION "Corba server for reachability based planning")
SET(PROJECT_URL "")

Steve Tonneau's avatar
Steve Tonneau committed
# Set to 1 for profiling
#~ add_definitions(-DPROFILE)

Steve Tonneau's avatar
Steve Tonneau committed
SET(CUSTOM_HEADER_DIR hpp/corbaserver/rbprm)

SETUP_PROJECT ()

SET(${PROJECT_NAME}_HEADERS
  include/hpp/corbaserver/rbprm/server.hh
)

# 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")
ADD_REQUIRED_DEPENDENCY("hpp-rbprm")
ADD_REQUIRED_DEPENDENCY("omniORB4 >= 4.1.4")
Steve Tonneau's avatar
Steve Tonneau committed
ADD_REQUIRED_DEPENDENCY("hpp-model-urdf >= 3")
ADD_REQUIRED_DEPENDENCY("hpp-affordance-corba")
Steve Tonneau's avatar
Steve Tonneau committed

PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
ADD_SUBDIRECTORY(src)

CONFIG_FILES (include/hpp/corbaserver/rbprm/doc.hh)

SET(CATKIN_PACKAGE_SHARE_DESTINATION
  ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})

install(FILES
  data/package.xml
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
  )
install(FILES
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hrp2_trunk.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hrp2_trunk_flexible.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hrp2_rom.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hrp2_larm_rom.urdf
  data/urdf/hrp2_rarm_rom.urdf
  data/urdf/hrp2_lleg_rom.urdf
  data/urdf/hrp2_rleg_rom.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hyq/hyq_trunk.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hyq/hyq_trunk_large.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/hyq/hyq_rhleg_rom.urdf
  data/urdf/hyq/hyq_rfleg_rom.urdf
  data/urdf/hyq/hyq_lhleg_rom.urdf
  data/urdf/hyq/hyq_lfleg_rom.urdf
  data/urdf/hyq/hyq_rom.urdf
  data/urdf/box_rom.urdf
  data/urdf/box.urdf
  data/urdf/scene.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/scene_wall.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/truck.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/stair_bauzil.urdf
  data/urdf/climb.urdf
  data/urdf/stepladder.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/groundcrouch.urdf
  data/urdf/darpa.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/urdf/car.urdf
Steve Tonneau's avatar
Steve Tonneau committed
  #~ data/urdf/scene2.urdf
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf
  )
install(FILES
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hrp2_trunk.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hrp2_trunk_flexible.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hrp2_rom.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hrp2_larm_rom.srdf
  data/srdf/hrp2_rarm_rom.srdf
  data/srdf/hrp2_lleg_rom.srdf
  data/srdf/hrp2_rleg_rom.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hyq/hyq_trunk.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hyq/hyq_trunk_large.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/hyq/hyq_rhleg_rom.srdf
  data/srdf/hyq/hyq_rfleg_rom.srdf
  data/srdf/hyq/hyq_lhleg_rom.srdf
  data/srdf/hyq/hyq_lfleg_rom.srdf
  data/srdf/hyq/hyq_rom.srdf
  data/srdf/box_rom.srdf
  data/srdf/box.srdf
  data/srdf/scene.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/scene_wall.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/truck.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/stair_bauzil.srdf
  data/srdf/climb.srdf
  data/srdf/stepladder.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/groundcrouch.srdf
  data/srdf/darpa.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  data/srdf/car.srdf
Steve Tonneau's avatar
Steve Tonneau committed
  #~ data/srdf/scene2.srdf
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/srdf
  )
install(FILES
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/darpa.stl
	data/meshes/darpareduced.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/car.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/car_simple.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hrp2_trunk.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hrp2_trunk_body.stl
	data/meshes/hrp2_trunk_torso.stl
        data/meshes/hrp2_trunk_body_view.dae
        data/meshes/hrp2_trunk_torso_view.dae
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hrp2_rom.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hrp2_larm_rom.stl
	data/meshes/hrp2_rarm_rom.stl
	data/meshes/hrp2_lleg_rom.stl
	data/meshes/hrp2_rleg_rom.stl
	data/meshes/box.stl
	data/meshes/box_rom.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/robot_box.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/chair_simple.stl
	data/meshes/ground.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/groundcrouch.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/truck.stl
	data/meshes/truck_vision.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/stair_bauzil.stl
        data/meshes/stair_bauzil_reduced.stl
	data/meshes/climb.stl
	data/meshes/stepladder.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/chair.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/car.stl
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/meshes
  )
Steve Tonneau's avatar
Steve Tonneau committed
install(FILES
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hyq/hyq_all.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hyq/hyq_trunk.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hyq/hyq_trunk_large.stl
Steve Tonneau's avatar
Steve Tonneau committed
	data/meshes/hyq/hyq_rom.stl
	data/meshes/hyq/hyq_rhleg_rom.stl
	data/meshes/hyq/hyq_rfleg_rom.stl
	data/meshes/hyq/hyq_lhleg_rom.stl
	data/meshes/hyq/hyq_lfleg_rom.stl
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/meshes/hyq
  )
Steve Tonneau's avatar
Steve Tonneau committed
SETUP_PROJECT_FINALIZE()