List files explicitly in cartographer_ros_msgs/CMakeLists.txt (#927)

`DIRECTORY` by itself doesn't work as reliable as expected.
master
Michael Grupp 2018-07-10 20:04:00 +02:00 committed by Wally B. Feed
parent 427fbe6d2e
commit 168f4cc53f
1 changed files with 26 additions and 6 deletions

View File

@ -24,18 +24,38 @@ set(PACKAGE_DEPENDENCIES
find_package(catkin REQUIRED COMPONENTS message_generation ${PACKAGE_DEPENDENCIES}) find_package(catkin REQUIRED COMPONENTS message_generation ${PACKAGE_DEPENDENCIES})
add_message_files( add_message_files(
DIRECTORY DIRECTORY msg
msg FILES
LandmarkEntry.msg
LandmarkList.msg
SensorTopics.msg
StatusCode.msg
StatusResponse.msg
SubmapEntry.msg
SubmapList.msg
SubmapTexture.msg
TrajectoryOptions.msg
TrajectoryStates.msg
) )
add_message_files( add_message_files(
DIRECTORY DIRECTORY msg/metrics
msg/metrics FILES
HistogramBucket.msg
MetricFamily.msg
MetricLabel.msg
Metric.msg
) )
add_service_files( add_service_files(
DIRECTORY DIRECTORY srv
srv FILES
FinishTrajectory.srv
GetTrajectoryStates.srv
ReadMetrics.srv
StartTrajectory.srv
SubmapQuery.srv
WriteState.srv
) )
generate_messages( generate_messages(