Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.8.3)
- project(exercise_414)
- find_package(catkin REQUIRED COMPONENTS
- actionlib
- actionlib_msgs
- roscpp
- )
- ## Generate actions in the 'action' folder
- add_action_files(
- FILES
- CustomActionMsg.action
- # Action2.action
- )
- generate_messages(
- DEPENDENCIES
- actionlib_msgs
- )
- catkin_package(
- CATKIN_DEPENDS actionlib actionlib_msgs roscpp
- )
- ###########
- ## Build ##
- ###########
- add_executable(action_custom_msg src/action_custom_msg.cpp)
- add_dependencies(action_custom_msg ${action_custom_msg_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
- target_link_libraries(action_custom_msg
- ${catkin_LIBRARIES}
- )
- add_executable(move_drone_square1 src/move_drone_square1.cpp)
- add_dependencies(move_drone_square1 ${move_drone_square1_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
- target_link_libraries(move_drone_square1
- ${catkin_LIBRARIES}
- )
- add_dependencies(action_custom_msg exercise_414_generate_messages_cpp)
- include_directories(
- ${catkin_INCLUDE_DIRS}
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement