Skip to content

Commit

Permalink
modify target node name and add needed libs
Browse files Browse the repository at this point in the history
  • Loading branch information
EliaTarasov authored and TSC21 committed Jun 19, 2018
1 parent 147cb56 commit 9c69a95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ if (BUILD_ROS_INTERFACE)
${sensor_msgs_INCLUDE_DIRS}
${mav_msgs_INCLUDE_DIRS}
)
add_executable(gazebo_motor_failure_plugin
add_executable(gazebo_motor_failure_node
src/gazebo_motor_failure_plugin.cpp
)
target_link_libraries(gazebo_motor_failure_node ${catkin_LIBRARIES} ${roscpp_LIBRARIES} ${GAZEBO_libraries})

add_dependencies(gazebo_motor_failure_plugin
${catkin_EXPORTED_TARGETS}
Expand All @@ -338,6 +339,8 @@ if (BUILD_ROS_INTERFACE)
target_link_libraries(gazebo_motor_failure_plugin
${catkin_LIBRARIES}
${mavros_LIBRARIES}
${roscpp_LIBRARIES}
${GAZEBO_libraries}
)
message(STATUS "adding gazebo_motor_failure_plugin to build")
endif()
Expand Down

0 comments on commit 9c69a95

Please sign in to comment.