[CMake] How to get Qt shared libraries to install with cmake 2.8.0

Mika.Rajala at patria.fi Mika.Rajala at patria.fi
Wed Feb 3 04:21:01 EST 2010


Hi

I'd like to install the necessary .dll files of Qt to my install directory.

So that when someone installs my program from a package, he gets the
complete set and doesn't need to install Qt seperately.

Actually my program is multiple programs and i'd rather not link them
statically to Qt libraries.

FindQt4.cmake doesn't seem to provide any way to get the shared libraries.

Do i need to hack my way through QT_LIBRARY_DIR ?

I fell that i'm missing something here, since such a simple and what i
think a common task should not include such hacking, right?

Maybe this is different on some linux platform, but on windows i'd rather
not bother ppl with having to install libraries to make my software work.

I want to make it easy for them.

-mika



More information about the CMake mailing list