[CMake] Override find_package path for qt / multiarchitecture build windows 64 and windows 32

David Cole david.cole at kitware.com
Fri Feb 25 11:41:35 EST 2011


Just:

  set( QT_QMAKE_EXECUTABLE ${QT_BINARY_DIR}/qmake.exe )

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.


On Fri, Feb 25, 2011 at 10:21 AM, Thomas Wolf <thomas.wolf at vision.ee.ethz.ch
> wrote:

> follow up:
>
> with an additional:
>
> >>>
>                set( QT_INCLUDE_DIR $ENV{QTDIR}/include )
>                set( QT_HEADERS_DIR $ENV{QTDIR}/include )
>                set( QT_LIBRARY_DIR $ENV{QTDIR}/lib )
>                set( QT_BINARY_DIR $ENV{QTDIR}/bin )
>                set( QT_LIBRARY_DIR_TMP ${QT_LIBRARY_DIR} )
>                set( QT_QMAKE_EXECUTABLE ${QT_BINARY_DIR}/qmake.exe )
>                find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED )
> <<<
>
> it seems to work. I keep you updated. On a sidenote, i discovered your
> bug request for cmake 2.8.3 regarding this topic.
>
> With PATH and CMAKE_PREFIX_PATH i did not succeed so far..
>
> Still the question remins open, how the systems loader can find the
> proper dll versions... does QT have proper embedded manifests with the
> loader beeing able to distinguish between 64bit and 32bit? in that case,
> the QTDIR/bin for 32 bit and QTDIR64/bin for 64 bit can both be put into
> the system's environment path..
>
> Have a nice weekend,
> Thomas
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110225/69595628/attachment.htm>


More information about the CMake mailing list