<div>Just:</div><div><br></div> set( QT_QMAKE_EXECUTABLE ${QT_BINARY_DIR}/qmake.exe )<br><br><div>should be sufficient here. Everything else that FindQt does switches off of the qmake setting... If you change the qmake executable, all the other variables will adapt correctly.</div>
<div><br></div><div><br><div class="gmail_quote">On Fri, Feb 25, 2011 at 10:21 AM, Thomas Wolf <span dir="ltr"><<a href="mailto:thomas.wolf@vision.ee.ethz.ch">thomas.wolf@vision.ee.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
follow up:<br>
<br>
with an additional:<br>
<br>
>>><br>
set( QT_INCLUDE_DIR $ENV{QTDIR}/include )<br>
set( QT_HEADERS_DIR $ENV{QTDIR}/include )<br>
set( QT_LIBRARY_DIR $ENV{QTDIR}/lib )<br>
set( QT_BINARY_DIR $ENV{QTDIR}/bin )<br>
set( QT_LIBRARY_DIR_TMP ${QT_LIBRARY_DIR} )<br>
set( QT_QMAKE_EXECUTABLE ${QT_BINARY_DIR}/qmake.exe )<br>
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED )<br>
<<<<br>
<br>
it seems to work. I keep you updated. On a sidenote, i discovered your<br>
bug request for cmake 2.8.3 regarding this topic.<br>
<br>
With PATH and CMAKE_PREFIX_PATH i did not succeed so far..<br>
<br>
Still the question remins open, how the systems loader can find the<br>
proper dll versions... does QT have proper embedded manifests with the<br>
loader beeing able to distinguish between 64bit and 32bit? in that case,<br>
the QTDIR/bin for 32 bit and QTDIR64/bin for 64 bit can both be put into<br>
the system's environment path..<br>
<br>
Have a nice weekend,<br>
<div><div></div><div class="h5">Thomas<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>
</div></div></blockquote></div><br></div>