[CMake] Use Qt Libarys in cmake
Matthew Smith
indigojo at blogistan.co.uk
Sun May 6 04:00:21 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
--
http://www.blogistan.co.uk/qt/
More information about the CMake
mailing list