Shared libraries with catkin
Folks,
I have a folder called "lib" inside my ROS package. The "lib" folder has two .so libraries (one is named "librobotsdk.so") that my package needs (the libraries inside "lib" are not part of any other ROS package). I am trying to add them to my CMakeList.txt in the next way:
include_directories(${PROJECT_SOURCE_DIR}/lib)
#link_directories(${PROJECT_SOURCE_DIR}/lib)
But when I do something like this inside my CMakeList.txt:
set(EXTRALIB_BIN robotsdk)
then I get the following error:
/usr/bin/ld: cannot find -lrobosdk
How can I include a library (in this case shared libraries) to my ROS path so tha cakin_make can compile it?
Thanks