<div dir="ltr">Hi Leila,<br><br>When doing the search for the header files, specify the relative path within the tree and not the actual header file. For example, <br><br>find_path(OPEN_MESH_INCLUDES<br>NAMES OpenMesh/balh/balh/something.h<br>
)<br><br>instead of<br><br>find_path(OPEN_MESH_INCLUDES<br>NAMES something.h)<br><br>Then OPEN_MESH_INCLUDES will contain the toplevel dir.<br><br>Andy<br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 11:03 AM, Leila Baghdadi <span dir="ltr"><<a href="mailto:baghdadi@phenogenomics.ca">baghdadi@phenogenomics.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi guys,<br>
<br>
I am wondering if someone can give me a quick hint here.<br>
<br>
I am trying to link an external library (<a href="http://openmesh.org" target="_blank">openmesh.org</a>) to itk so I can<br>
use their mesh subdivision algorithm on my meshes.<br>
<br>
I have downloaded and built openmesh successfully and I have tried to<br>
create the correct cmake files. however, I seem to be having difficulty<br>
with header files.<br>
<br>
The header files are all scattered in various directories within<br>
openmesh. I have managed to get cmake to locate the main header MeshIO.h<br>
However all the other include files in MeshIo.h are included with full<br>
directory structure i.e, include "OpenMesh/balh/balh/something.h"<br>
<br>
how do I tell cmake to place the root openmesh directory before the<br>
above.<br>
<br>
I hope I am not making this too complicated.<br>
<br>
thanks for your time<br>
<br>
Leila<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lets bike the world together<br><a href="http://legoandy.com">http://legoandy.com</a><br>
</div>