On 2009-04-27 18:47+0200 Anders Backman wrote:

Hi all.
I have a problem where I pack the necessary stuff from qt into a dependency
zip file (.h, .lib, .dll and qmake.exe).

I have the path to qmake setup, so that qmake can be found.

Then I unpack that to some specified directory and run cmake on my own code.

My projectgs CMakeLists.txt call FIND_PACKAGE( Qt4 ) which among other
things call:

qmake -query QT_INSTALL_LIBS (

Now this returns with the ORIGINAL build directory, not the new one where
qmake actually exists.

You have gotten a lot of answers, but I think they are too complicated. I am
a Qt newbie, but what works for me under Linux is simply to adjust the PATH
so that the "qmake" command refers to the version that I want.  I don't know
why your PATH adjustment did not work, but it certainly works for me.  The
PATH adjustment must be done, of course, before building a Qt dependent
project (PLplot in this case) in an initially empty build tree.  For
example:

PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH

cmake ....

works like a charm.  I only get that downloaded (and unpacked) version of
Qt4.5.1 referred to in the PLplot build rather than my Qt4.4.3 system version.

HTH.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
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

Reply via email to