add_dependencies called with incorrect number of arguments
I tried to model my new C++ node as closely to the Actionlib Simple Action Server tutorial ( http://wiki.ros.org/actionlib_tutoria... ) but I keep getting the following error when running catkin_make:
CMake Error at robot_arm/CMakeLists.txt:20 (add_dependencies):
add_dependencies called with incorrect number of arguments
What could be wrong with my add_dependencies statement?
Only thing I can think of is that ${robot_arm_EXPORTED_TARGETS} is not getting populated such that catkin_make may think this argument is missing. How can I confirm this?
My CMakeLists.txt is:
cmake_minimum_required(VERSION 2.8.3)
project(robot_arm)
find_package(catkin REQUIRED COMPONENTS roscpp actionlib actionlib_msgs)
find_package(Boost REQUIRED COMPONENTS system)
catkin_package(
CATKIN_DEPENDS actionlib_msgs common
)
include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
add_executable(ReceiveOrder ReceiveOrder.cpp)
target_link_libraries(
ReceiveOrder
${catkin_LIBRARIES}
)
add_dependencies(
ReceiveOrder
${robot_arm_EXPORTED_TARGETS}
)