[CMake] Moving QT getting FIND_PACKAGE( Qt4 ) to work

Andreas Pakulat apaku at gmx.de
Mon Apr 27 15:01:45 EDT 2009


On 27.04.09 19:54:12, Anders Backman wrote:
> Ah thanks.But how to know what to copy from QT so that one can still build
> applications?
> 
> That is, what is needed so that CMake accepts the copied files as a complete
> qt installation?
> 
> .lib files,
> .dll:s

That, the executables, the headers and the mkspecs. Thats enough to get
cmake happy. But not necessarily to get your app to build and/or run
properly. What you really need from a Qt installation depends on which
plugins you use, wether you want to use designer or any of the other
tools. Wether you need examples/demos or the documentation.

> which plugins?
> mkspecs
> which exe files?
> 
> Do I have to parse the FindQt4.cmake file, or is there a faster way to
> figure this out?

That won't help as it'll only find the bare minimum to link a minimal Qt
sample app. For running a full app you'll need more.

Its a shame that Qt on windows doesn't support the -prefix switch for
configure like on linux, that would allow to create a minimal Qt
installation suitable to zip it up.

One other possibility to find out is to download the binary package (not
the SDK, the mingw one) and check whats included there. You can probably
leave out demos/examples and documentation if this is just for building.

Andreas

-- 
An avocado-tone refrigerator would look good on your resume.


More information about the CMake mailing list