Sorry - wrong list. Please ignore.<div><br></div><div>Daniel.<br><br><div class="gmail_quote">On 24 November 2012 15:09, Daniel Stonier <span dir="ltr"><<a href="mailto:d.stonier@gmail.com" target="_blank">d.stonier@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>Hi all,</div><div><br></div><div>I had to bang my head around this for a while today. </div><div><br>
</div><div><b>Problem</b></div><div><b><br></b></div><div>My catkin package foo depends on Eigen, which of course, has headers installed in a non-standard location. I can do a find_package(Eigen) in foo and foo is happy.</div>

<div><br></div><div>Next problem, my new catkin package bar depends on foo, so indirectly requires those eigen headers. Now bar shouldn't have to do a find-package(Eigen), so the question was how to get catkin to export that eigen include directory.</div>

<div><br></div><div><b>Solution</b></div><div><b><br></b></div><div>I hunted around all the other core ros packages which depended on eigen, but they didn't do anything special.</div><div><br></div><div>Finally, checking out the catkin_package.cmake code, there is a variable DEPENDS (not CATKIN_DEPENDS) you can set that will export the appropriate include directory without repeating the find_package lookup for a non-ros package. That seems to be a nice solution.</div>

<div><br></div><div><b>Issues</b></div><div><b><br></b></div><div>Firstly, is this the right approach? If it is, it's probably a really key point to document somewhere (if I missed it, enlighten me please). Secondly, all those core ros packages probably do the same, otherwise packages depending on them and subsequently Eigen indirectly will have to do additional find_package(Eigen) calls for no reason.</div>

<div><br></div><div>This probably is important for other external dependencies like log4cxx as well (though being in ubuntu's system include directory, the problem hides until someone compiles or cross-compiles on a slightly non-standard platform - windows being one).</div>

<div><br></div><div>Cheers,</div><div>Daniel.</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br><div>Yujin R&D: <a href="http://rnd.yujinrobot.com/" target="_blank">http://rnd.yujinrobot.com/<br>
</a><br></div><br>
</div>