Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(exercise_414)
  3.  
  4. find_package(catkin REQUIRED COMPONENTS
  5. actionlib
  6. actionlib_msgs
  7. roscpp
  8. )
  9.  
  10. ## Generate actions in the 'action' folder
  11. add_action_files(
  12. FILES
  13. CustomActionMsg.action
  14. # Action2.action
  15. )
  16.  
  17. generate_messages(
  18. DEPENDENCIES
  19. actionlib_msgs
  20. )
  21.  
  22. catkin_package(
  23. CATKIN_DEPENDS actionlib actionlib_msgs roscpp
  24. )
  25.  
  26. ###########
  27. ## Build ##
  28. ###########
  29.  
  30. add_executable(action_custom_msg src/action_custom_msg.cpp)
  31. add_dependencies(action_custom_msg ${action_custom_msg_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  32. target_link_libraries(action_custom_msg
  33. ${catkin_LIBRARIES}
  34. )
  35. add_executable(move_drone_square1 src/move_drone_square1.cpp)
  36. add_dependencies(move_drone_square1 ${move_drone_square1_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  37. target_link_libraries(move_drone_square1
  38. ${catkin_LIBRARIES}
  39. )
  40.  
  41. add_dependencies(action_custom_msg exercise_414_generate_messages_cpp)
  42.  
  43. include_directories(
  44. ${catkin_INCLUDE_DIRS}
  45. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement