Have you considered tweaking your rpath settings? This
link<http://www.cmake.org/Wiki/CMake_RPATH_handling>has proved to be
very useful to me in the past.

Cheers,

Adolfo

On Sun, Mar 1, 2009 at 10:34 PM, Gregory Sharp <gregsharp....@yahoo.com>wrote:

>
> Hello,  I ran into a problem with getting the CTest to run when
> linking with a DLL.
>
> 1) My program links with ITK, and I build this as a DLL on windows.
>
> 2) During testing, my program needs to find the ITK dll.  I do not
> wish to add to the global path.
>
> 3) My understanding is that the workaround for (2) is to create a
> script which sets the path.  So I make a CMake script.  CTest launches
> the CMake script, which sets the path, and runs my executable.
>
> 4) However, my CMake script needs to know the name of the executable.
> The executable can be in Release, or Debug, or whatever.
> Now I'm stuck, because I can't figure out how CMake can find the
> right directory.  There is a similar issue for finding the ITK dll,
> which can be in release or debug subdirectory.
>
> I appreciate any advice.  Maybe there is a simple way?
>
> Thank you,
> --
> Greg Sharp
> gregsh...@geocities.com
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Adolfo Rodríguez Tsouroukdissian

Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to