[CMake] Use Qt Libarys in cmake

Manuel Schmidt manuel at schmidtman.de
Sun May 6 05:12:30 EDT 2007


> Manuel Schmidt wrote:
> > Hello List,
> > i m just trying cmake to build a small project. I m using Xml Stuff in
> > it, so my *.pro file had something like  'QT += xml'.
> > So far i think my CMakeLists.txt is right but the Xml lib is missing.
> > CMake succeeds but make fails claiming that QDomDocument is not declared.
> >
> > My CMakeLists.txt is obviously wrong, but what would be the correct way
> > to incude the non default Qt Libs ?
>
> You need to insert this line:
>
> SET(QT_USE_QTXML TRUE)
>
> The same convention applies to other non-standard modules, like network,
> SVG and SQL.
>
> Hope this helps.
>
> Matt

Yes, thank you Matt
this help'd alot. =) 



-- 
Cheers 
Manuel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070506/6ea2b778/attachment.pgp


More information about the CMake mailing list