[CMake] FindQt in a Specific place?

John Drescher drescherjm at gmail.com
Wed Jan 13 14:02:29 EST 2010


On Wed, Jan 13, 2010 at 1:07 PM, James Willis <JWillis2 at lgc.com> wrote:
> Is there any good way of telling findqt (I don't really care about findqt3) where to find Qt?
>
> Like say you did:
> set(QT_QMAKE_LOCATION /home/myself/qt4.6.0/bin)
> so that I later upgrade and do:
> set(QT_QMAKE_LOCATION /home/myself/qt4.6.1/bin) later without having to muck with my path, but still have findQt find Qt there?
>
> I was looking at writing such a feature, if it's not there, and if you'd be willing to take it as a patch.
>

I am pretty sure you can pass this on the command line to cmake
instead of polluting your CMakeLists.txt with installation specific
data.

John


More information about the CMake mailing list