QT_INSTALL_DIR, KDELibsDependencies.cmake and flexible install location of Qt

Alexander Neundorf neundorf at kde.org
Thu Dec 31 12:07:05 CET 2009


On Thursday 31 December 2009, Patrick Spendrin wrote:
> Alexander Neundorf schrieb:
...
> > So, instead of the full path to e.g. QtCore.dll there is just
> > "Qt4_QTCORE", which is the name of an "imported" library target for
> > QtCore (maybe it could be named "Imported_Library_Qt4_QTCORE" to make
> > clearer what it is). Where this points to, will be resolved at cmake-time
> > of the application developer (i.e. not at kdelibs-cmake time). Still have
> > to play a bit more with this...
> >
> > Would this solve "your" issue ?
>
> Yes, that would be great. This way it could be set by FindQt4.cmake or
> set by hand instead.

Can you please give the attached patch a try ?
It creates imported targets for the Qt libraries in FindQt4.cmake, so they can 
have the correct release/debug versions for the different buildtypes, and the 
location of the Qt libs is resolved at user-cmake-time.
I have successfully built kdelibs and kdeutils with it.

Also please have a look at the generated KDELibs4LibraryTargets*.cmake files 
and let me know if you see any issues.

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindQt4-imported-targets.patch
Type: text/x-diff
Size: 3510 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20091231/25b9474e/attachment.bin 


More information about the Kde-windows mailing list