Have you considered tweaking your rpath settings? This <a href="http://www.cmake.org/Wiki/CMake_RPATH_handling" target="_blank">link</a> has proved to be very useful to me in the past.<br><br>Cheers,<br><br>Adolfo<br><br><div class="gmail_quote">
On Sun, Mar 1, 2009 at 10:34 PM, Gregory Sharp <span dir="ltr"><<a href="mailto:gregsharp.geo@yahoo.com">gregsharp.geo@yahoo.com</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;">
<br>
Hello, I ran into a problem with getting the CTest to run when<br>
linking with a DLL.<br>
<br>
1) My program links with ITK, and I build this as a DLL on windows.<br>
<br>
2) During testing, my program needs to find the ITK dll. I do not<br>
wish to add to the global path.<br>
<br>
3) My understanding is that the workaround for (2) is to create a<br>
script which sets the path. So I make a CMake script. CTest launches<br>
the CMake script, which sets the path, and runs my executable.<br>
<br>
4) However, my CMake script needs to know the name of the executable.<br>
The executable can be in Release, or Debug, or whatever.<br>
Now I'm stuck, because I can't figure out how CMake can find the<br>
right directory. There is a similar issue for finding the ITK dll,<br>
which can be in release or debug subdirectory.<br>
<br>
I appreciate any advice. Maybe there is a simple way?<br>
<br>
Thank you,<br>
--<br>
Greg Sharp<br>
<a href="mailto:gregsharp@geocities.com">gregsharp@geocities.com</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<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>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>