Skip to content

Commit

Permalink
Workaround for issue with python modules and installing messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepurvis committed Sep 12, 2013
1 parent 9b42943 commit e0b4510
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ catkin_python_setup()

## Generate messages in the 'msg' folder
file(GLOB msg_files RELATIVE ${PROJECT_SOURCE_DIR}/msg msg/*.msg)
add_message_files(FILES ${msg_files})
add_message_files(msg FILES ${msg_files})
generate_messages(DEPENDENCIES geometry_msgs std_msgs)

catkin_package(CATKIN_DEPENDS geometry_msgs std_msgs message_runtime)
Expand All @@ -27,5 +27,10 @@ install(PROGRAMS
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)

# Workaround for https://github.com/ros/genmsg/issues/34
install(FILES ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}/__init__.py
DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION})

0 comments on commit e0b4510

Please sign in to comment.