[CMake] [CTest] DLLs, scripts, and build types

Gregory Sharp gregsharp.geo at yahoo.com
Mon Mar 2 15:04:55 EST 2009



> 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.

Thank you for the suggestion.  I'm pretty sure that RPATH 
is only for Unix, however, so I use the script as in step (3)
to set PATH.  

-Greg

> >
> > 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?
> >




      


More information about the CMake mailing list