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

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jack O'Quin
日付:  
To: ros-users
CC: ros-users
題目: 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