[CMake] Get Qt DLL paths for INSTALL

clinton at elemtech.com clinton at elemtech.com
Wed Jun 18 16:19:33 EDT 2008


On Wednesday 18 June 2008 10:51:17 am Mike Arthur wrote:
> We can't static-link Qt into our application as we're relying on dynamic
> loading of plugins.
>
> As a result I want to install the necessary Qt*.dll files.
>
> Is there an easy (or not so easy) way of getting these files from
> ${QT_LIBRARIES} or something similar?
>
> Thanks in advance!

It would probably be easier to get them from QT_QT*_LIBRARY_RELEASE or 
QT_QT*_LIBRARY_DEBUG variables, and replace the .lib extension with the .dll.

If you use QT_LIBRARIES, you've got extra work to separate the debug and 
release libraries.

Clint


More information about the CMake mailing list