[CMake] Trouble exporting a library that is linked to Qt5

Stephen Kelly steveire at gmail.com
Fri Apr 18 09:38:07 EDT 2014


Alan W. Irwin wrote:

> Can anyone explain what is going wrong here? For example, do I have to
> do something extra (i.e., something not required for Qt4) to get
> libplplot exported properly when it links to Qt5?

Even when using Qt 4 you will find the same behavior if you use the imported 
targets instead of the file paths (Qt4::QtCore etc).

If your package publically depends on Qt5, then you need to find it in your 
config file.

 http://www.cmake.org/cmake/help/git-next/manual/cmake-packages.7.html#creating-packages

Thanks,

Steve.





More information about the CMake mailing list