robotology / gazebo-fmi

FMI import plugins for the Gazebo Simulator.
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Add RPATH handling CMake code #45

Closed traversaro closed 5 years ago

traversaro commented 5 years ago

To avoid problems in finding the library /lib/libFMIActuatorPlugin.so when installed, we should add the necessary CMake code to handle rpath.

The following three lines from https://github.com/robotology/how-to-export-cpp-library/blob/782e9b1b13867686463b2a8a5b2b9d67aa176099/CMakeLists.txt#L106 should work fine (assuming that we also update the AddInstallRPATHSupport contained in the cmake dir of this repo).

traversaro commented 5 years ago

Fixed (a bit in a silent way) in https://github.com/robotology/gazebo-fmi/pull/60 .