Ah thanks.<div>But how to know what to copy from QT so that one can still build applications?</div><div><br></div><div>That is, what is needed so that CMake accepts the copied files as a complete qt installation?</div><div>
<br></div><div>.lib files,</div><div>.dll:s</div><div><br></div><div>which plugins?</div><div>mkspecs</div><div>which exe files?</div><div><br></div><div>Do I have to parse the FindQt4.cmake file, or is there a faster way to figure this out?</div>
<div><br></div><div><br></div><div><br></div><div><div class="gmail_quote">On Mon, Apr 27, 2009 at 7:13 PM, Christian Ehrlicher <span dir="ltr"><<a href="mailto:Ch.Ehrlicher@gmx.de">Ch.Ehrlicher@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Am Montag 27 April 2009 18:47:07 schrieb Anders Backman:<br>
<div><div></div><div class="h5">> Hi all.<br>
> I have a problem where I pack the necessary stuff from qt into a dependency<br>
> zip file (.h, .lib, .dll and qmake.exe).<br>
><br>
> I have the path to qmake setup, so that qmake can be found.<br>
><br>
> Then I unpack that to some specified directory and run cmake on my own<br>
> code.<br>
><br>
> My projectgs CMakeLists.txt call FIND_PACKAGE( Qt4 ) which among other<br>
> things call:<br>
><br>
> qmake -query QT_INSTALL_LIBS (<br>
><br>
> Now this returns with the ORIGINAL build directory, not the new one where<br>
> qmake actually exists.<br>
><br>
> Is there anything one can do to fix this?<br>
> I want CMake to use qmake so that it can locate things in relative to where<br>
> qmake actually is, and not where it was when I built qt.<br>
</div></div>This is not a cmake problem - you can't move the qt installation around. If<br>
you want to do this you have to provide a proper qt.conf (<br>
<a href="http://doc.trolltech.com/4.5/qt-conf.html" target="_blank">http://doc.trolltech.com/4.5/qt-conf.html</a> )<br>
<br>
HTH<br>
Christian<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>
</div>