Re: [ros-users] Linking with code from other packages

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: Jack O'Quin
Datum:  
Aan: ros-users
CC: ros-users
Onderwerp: Re: [ros-users] Linking with code from other packages
On Fri, May 14, 2010 at 9:11 AM, Daniel Cabrini Hauagge
<> wrote:
> Hi All,
>
> Does anybody know there's an elegant way to link with code from other
> packages? Some cmake macro that I can use for that?


Just add a package dependency to your manifest.xml, include the
exported headers and build. No special cmake macros needed.

But, the referenced package must export things properly for that to
work. It needs to put headers in appropriate places, build shared
libraries (if any) using the cmake rosbuild_add_library() macro, and
<export> the cpp cflags and lflags in its manifest.xml.
--
joq