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

Thomas Wolf thomas.wolf at vision.ee.ethz.ch
Fri Feb 25 10:21:12 EST 2011


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


More information about the CMake mailing list