problem adding library

asked 2020-01-06 00:56:02 -0500

dinesh gravatar image

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 ?

edit retag flag offensive close merge delete

Comments

2

but its not working

as always: just stating "it's not working" is not going to be sufficient for others to help you.

You may want to add a little more detail to your post (such as a verbatim copy of the error message(s)).

gvdhoorn gravatar image gvdhoorn  ( 2020-01-06 02:15:25 -0500 )edit