[CMake] Mixed linking

Norbert Pfeiler norbert.pfeiler+cmake at gmail.com
Thu Feb 5 19:13:20 EST 2015


Hey,

to build a static qt executable for windows you may be interested in using
msys2.
It offers a prepackaged static qt5 with patches for static linking with
cmake (as the official files are a bit broken for mingw).
Currently you have to define »QT_STATIC« and explicitly include your
required plugins in the code to get it working.
In our case we only link statically on windows, on linux and mac we deploy
the dynamic libraries.

Best, Norbert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150206/568d37c6/attachment.html>


More information about the CMake mailing list