Ok, thanks a lot! CPack was the way to go...<div><br></div><div>I&#39;ve also modified my CMakeLists.txt on Windows in order to link only the vtk/Qt libraries I&#39;m really needing (see <a href="http://stackoverflow.com/questions/10022993/cmake-build-cross-platform-distribution">http://stackoverflow.com/questions/10022993/cmake-build-cross-platform-distribution</a> for details)</div>
<div><br></div><div>Miguel</div><div><br><div class="gmail_quote">On Thu, Apr 5, 2012 at 11:08 AM, Mériadeg Perrinel <span dir="ltr">&lt;<a href="mailto:meriadegp@yahoo.fr">meriadegp@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Ok, you have many possibilites :</span></div><div><br><span></span></div><div><span>From Linux or Mac Os to Windows, you can &quot;cross compile&quot; with a good cpack configuration ( so of course include CPack at the end of ohter CPack variables configurations like CPack_Generator of your CMakeLists.txt)</span></div>
<div><span>And use NSIS. You can esealy find example ont the net...</span></div><div><br><span></span></div><div><span>From Windows for Windows :</span></div><div><span>You have to install first NSIS and put on the path make (of the compiler use by the project)... But that should work too.</span></div>
<div><span>Or create a SLN from CMake and open it with visual and so use the MSI package installer that are very easy to use.</span></div><div><br><span></span></div><div><br><span></span></div><div><span>cmake ; make
 ; cpack<br></span></div><div><br></div><div><br></div><div>++</div><div></div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt">
 <div dir="ltr"> <font face="Arial"> <hr size="1"><div class="hm HOEnZb">  <b><span style="font-weight:bold">De :</span></b> Miguel Sotaquira &lt;<a href="mailto:msotaquira@gmail.com" target="_blank">msotaquira@gmail.com</a>&gt;<br>
 <b><span style="font-weight:bold">À :</span></b> &quot;<a href="mailto:meriadegp@yahoo.fr" target="_blank">meriadegp@yahoo.fr</a>&quot; &lt;<a href="mailto:meriadegp@yahoo.fr" target="_blank">meriadegp@yahoo.fr</a>&gt; <br>
 <b><span style="font-weight:bold">Envoyé le :</span></b> Mercredi 4 avril 2012 21h43<br> <b><span style="font-weight:bold">Objet :</span></b> Re: [vtkusers] Qt + VTK application: build distribution<br> </div></font><div class="hm HOEnZb">
 </div></div><div><div class="h5"> <br><div>Ok, just to get it right the steps on my Windows machine would be:<div><br></div><div>1. Build Qt and VTK with static libraries</div><div>2. Include CPack in my CMakeLists.txt
 file</div><div>3. Build</div><div><br></div><div>
is this right?</div><div><br></div><div>Thanks,</div><div>Miguel<br><div><br><div>On Wed, Apr 4, 2012 at 9:34 PM, <a rel="nofollow" href="mailto:meriadegp@yahoo.fr" target="_blank">meriadegp@yahoo.fr</a> <span dir="ltr">&lt;<a rel="nofollow" href="mailto:meriadegp@yahoo.fr" target="_blank">meriadegp@yahoo.fr</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, yes cpack is a good way for that, you need to link your apli with qt and vtk builded in static, if you don,t want to ask the user for install them, see tuto for conviburing cmake<br>


Envoyé depuis mon téléphone Nokia<br>
-----Message d&#39;origine-----<br>
De: Miguel Sotaquira<br>
Envoyé: 04/04/2012, 20:00<br>
A: <a rel="nofollow" href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Objet: [vtkusers] Qt + VTK application: build distribution<br>
<br>
<br>
Hi everyone,<br>
<br>
I have an application that I&#39;ve written and built on Mac OS X that uses Qt<br>
and VTK libraries.<br>
<br>
Now I want to create a distribution, a self-contained package that it is<br>
supposed to run on Windows without needing to have Qt or VTK pre-installed.<br>
How can I proceed?<br>
<br>
A web search points at using CPack in the CMakeLists file, but I don&#39;t know<br>
if this is the right direction. An example will be appreciated.<br>
<br>
Thanks,<br>
<br>
Miguel<br>
<br>
_______________________________________________<br>
Powered by <a rel="nofollow" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" 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 VTK FAQ at: <a rel="nofollow" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br></div>