cmake_minimum_required(VERSION 2.8)
#
# NOTE: Although this is the pcl_msgs package, we're pretending that it's the pcl package, so that we can generate messages 
# that appear in the pcl/ directory and the pcl:: namespace.  This is not very elegant, but it should be part of a transition
# to pcl using the ROS-generated messages.
#
project(pcl)

find_package(ROS COMPONENTS catkin genmsg std_msgs sensor_msgs)

# Catkin needs to think that this is the pcl project
catkin_project(pcl
               INCLUDE_DIRS include)

add_message_files(
  DIRECTORY msg
  FILES ModelCoefficients.msg PointIndices.msg PolygonMesh.msg Vertices.msg)

generate_messages(DEPENDENCIES std_msgs sensor_msgs)

# We install our stack.yaml to pcl_msgs, so as not to overwrite the real pcl's stack.yaml
install(FILES stack.yaml
  DESTINATION share/pcl_msgs
)
# We install our .msg files to pcl/, so that message generators can find them as pcl/Foo.msg
install(DIRECTORY msg
  DESTINATION share/pcl
  PATTERN ".hg" EXCLUDE
  )
