How to link C library in Cmake file?
I was using one ftdi library to communicate with robot, to run that piece of code i used to compile like
gcc -o demo demo.c -L. -lftd2xx -Wl,-rpath,/usr/local/lib
Now i am using this C library in ROS, then how to link that library with ROS, What should I change in CmakeLists.txt and how to write that.