ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Compile with a static ross-unrelated library [closed]

asked 2012-03-26 21:44:33 -0500

ffusion gravatar image


I want to use a math libary that performs some calculatios, lib.a for example, in a ros package. I use the include statement in myNode.cpp but how do I link it to the executasble? Where do I have to pu the -lfoo -L. flags?

Thanks very much in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2012-03-27 09:30:43


1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-26 22:01:12 -0500

dornhege gravatar image

Use target_link_libraries as in any other cmake file.

edit flag offensive delete link more

Question Tools


Asked: 2012-03-26 21:44:33 -0500

Seen: 206 times

Last updated: Mar 26 '12