Hi Alessio, <br><br>You could either use a &quot;forwarded&quot; launcher is it&#39;s done in paraview. <br>See <a href="http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Applications/ParaView/CMakeLists.txt;h=d7850949dbddf218d1a908605748aa0580d5db68;hb=HEAD#l49">Applications/ParaView/CMakeLists.txt</a>, <a href="http://paraview.org/gitweb?p=ParaView.git;a=blob;f=CMake/pv-forward.c.in;h=d58cf8f8908f6981803ebbbeb0839b6a903e6a6d;hb=HEAD">CMake/pv-forward.c.in</a>, <a href="http://paraview.org/gitweb?p=ParaView.git;a=blob;f=CMake/ParaViewMacros.cmake;h=59f330bc4eab48c5602095b40967e16da4221e80;hb=HEAD#l103">add_executable_with_forwarding</a><br>

<br>Or you could also use the CTKAppLauncher. See <a href="http://www.commontk.org/index.php/Tools:_Application_launcher">http://www.commontk.org/index.php/Tools:_Application_launcher</a>. <br><br>See also how the CTK app launcher is integrated in Slicer: <a href="https://github.com/Slicer/Slicer/blob/master/Applications/SlicerQT/CMakeLists.txt#L206">https://github.com/Slicer/Slicer/blob/master/Applications/SlicerQT/CMakeLists.txt#L206</a><br>

<br>Hth<br>Jc<br><br><div class="gmail_quote">On Tue, Jan 31, 2012 at 8:43 AM, Massaro Alessio <span dir="ltr">&lt;<a href="mailto:Alessio.Massaro@mediobanca.co.uk">Alessio.Massaro@mediobanca.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi There<br>
<br>
I googled near and far, but could not find a way to tell CTest where to find the 3rd-party DLLs required to run the test executables.<br>
In particular my executable targets link with a few Boost DLLs/SOs and obviously require them to run.<br>
<br>
I understand on the Linux/Solaris I can use RPATH support in CMake.<br>
But I can&#39;t find a way to do it on my primary target platform, WIN32-msvc9.<br>
<br>
I&#39;ve already tried several variants of calling configure_file in a function the following way:<br>
<br>
       configure_file(&quot;${some_dbg_boost_dll_file}&quot; &quot;${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}&quot; COPYONLY)<br>
<br>
I&#39;m open to all sorts of solutions: copy DLLs in place, set the PATH environment variable, ... anything!<br>
<br>
I just need a pointer to show me some way to do it.<br>
<br>
Thank you in advance!<br>
<span class="HOEnZb"><font color="#888888">--<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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>