[Development] Installing Qt5Config.cmake from the Qt repo?
Stephen Kelly
stephen.kelly at kdab.com
Mon Nov 7 16:02:22 CET 2011
On Thursday, November 03, 2011 16:34:21 Stephen Kelly wrote:
> On Thursday, November 03, 2011 01:05:49 Stephen Kelly wrote:
> > I think ossi still has some feedback on it that we can work on later,
> > but
> > I've tested it, and it works just as the shell script version worked.
> > Additionally, as most of the reusable functionality is now defined in
> > the
> > mkspec directory, it should be trivial to add cmake config files to
> > modules outside of qtbase.git too.
>
> The latest version incorporates the feedback.
>
> https://qt.gitorious.org/+kdab-developers/qt/kdab-developers-
> qtbase/commit/5f20b95e3376fd4af3051cc1eb5d60c05fd8cde1
>
> The two remaining issues are:
> * Generated cmake files are put in the source directory. There is no way to
> get the build directory within qmake. There is QT.core.sources but this
> points to the build directory, which I suspect is a bug. It should point to
> the source dir, leaving me with no way to get the build dir.
> * It only works for modules inside qtbase.git. The reason is that qmake has
> no way to find files from the installed mkspecs location. I believe this
> has to be fixed in qmake anyway and there are patches coming.
>
I've resolved both of these issues now. Any Qt5 module inside or outside
qtbasae.git can do
CONFIG += cmake_files
to generate the cmake config files. I tested that with qtxmlpatterns.git. I
couldn't get other qt5 modules to build.
I added a test to the branch too.
https://qt.gitorious.org/+kdab-developers/qt/kdab-developers-
qtbase/commits/cmake_files
Hopefully I will be able to put it through gerrit soon.
Thanks,
--
Stephen Kelly <stephen at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111107/bfe5b00a/attachment.sig>
More information about the Development
mailing list