Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem adding library

I have a header meanshift.h and main file for it meanshift.cpp. I want to add it inside a ros node test.cpp. I tried below code but its not working:

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  /usr/include/CL/
  include/devils_eye_pkg/
)

add_library(mean_shift src/mean_shift.cpp)
target_link_libraries(mean_shift ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

What is the problem in this code? How should i do this ?