Skip to content

Commit

Permalink
added the 'add_dependencies' for including all project message depend…
Browse files Browse the repository at this point in the history
…encies in the build
  • Loading branch information
jrgnicho committed May 16, 2014
1 parent 714a904 commit c28a88c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ catkin_package(
###########

add_executable(target_recognition_service src/services/target_recognition_service.cpp)
add_dependencies(target_recognition_service ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(target_recognition_service ${catkin_LIBRARIES})

add_executable(generate_cloud_node src/nodes/generate_point_cloud.cpp)
add_dependencies(generate_cloud_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(generate_cloud_node ${catkin_LIBRARIES})

add_executable(pick_and_place_node
Expand All @@ -86,6 +88,7 @@ add_executable(pick_and_place_node
src/tasks/place_box.cpp
src/tasks/create_motion_plan.cpp
src/utilities/pick_and_place_utilities.cpp)
add_dependencies(pick_and_place_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(pick_and_place_node ${catkin_LIBRARIES})


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ catkin_package(
###########

add_executable(target_recognition_service src/services/target_recognition_service.cpp)
add_dependencies(target_recognition_service ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(target_recognition_service ${catkin_LIBRARIES})

add_executable(generate_cloud_node src/nodes/generate_point_cloud.cpp)
add_dependencies(generate_cloud_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(generate_cloud_node ${catkin_LIBRARIES})

add_executable(pick_and_place_node
Expand All @@ -86,6 +88,7 @@ add_executable(pick_and_place_node
src/tasks/place_box.cpp
src/tasks/create_motion_plan.cpp
src/utilities/pick_and_place_utilities.cpp)
add_dependencies(pick_and_place_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(pick_and_place_node ${catkin_LIBRARIES})


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ catkin_package(
###########

add_executable(target_recognition_service src/services/target_recognition_service.cpp)
add_dependencies(target_recognition_service ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(target_recognition_service ${catkin_LIBRARIES})

add_executable(generate_cloud_node src/nodes/generate_point_cloud.cpp)
add_dependencies(generate_cloud_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(generate_cloud_node ${catkin_LIBRARIES})

add_executable(pick_and_place_node
Expand All @@ -86,6 +88,7 @@ add_executable(pick_and_place_node
src/tasks/place_box.cpp
src/tasks/create_motion_plan.cpp
src/utilities/pick_and_place_utilities.cpp)
add_dependencies(pick_and_place_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(pick_and_place_node ${catkin_LIBRARIES})


Expand Down

0 comments on commit c28a88c

Please sign in to comment.