If the compiled version of the library that you want to integrate provides pkg-config (i.e. *.pc) file then it should be very easy to add it as a dependency to ROS package. Another way is to write a CMake find module yourself.