Ask Your Question
0

Compile with a static ross-unrelated library [closed]

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

ffusion gravatar image

Hello,

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

Comments

1 Answer

Sort by ยป oldest newest most voted
1

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

Stats

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

Seen: 165 times

Last updated: Mar 26 '12