[CMake] Get Qt DLL paths for INSTALL

Bill Hoffman bill.hoffman at kitware.com
Fri Jun 20 16:16:24 EDT 2008


clinton at elemtech.com wrote:
> On Friday 20 June 2008 8:52:25 am Mike Arthur wrote:
>> On Wednesday 18 June 2008 21:19:33 you wrote:
>>> 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.
>> Thanks, I opted for this approach.
>>
>> Again, I think it would probably be worth having something in FindQt4 to
>> get the dll locations?
> 
> To CMake people in general, 
> 
> Would it make sense to include macros in CMake that can be called to copy the 
> Qt runtimes into an install/package?  It seems people keep rolling their own.
> We have a script that installs the Microsoft runtimes, but I don't see much 
> more beyond that.
> 

Dave Cole is working on a general purpose way to get depends for a 
project.  It is in Modules/GetPrerequisites.cmake.   In the source tree 
of CMake, there is also:

QtDialog/CMakeIngestOSXBundleLibraries.cmake

That is a previous version of the same thing althoug specific for the
Mac, as we just link static cmake for windows right now.  That should 
work with Qt or any other libraries an application might use.

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)


More information about the CMake mailing list