[cmake-developers] Creating IMPORTED targets for both SHARED and STATIC libraries

Stephen Kelly steveire at gmail.com
Mon Jun 25 08:53:44 EDT 2012


Hi there,

I am reading

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3478/focus=3522

and 

http://thread.gmane.org/gmane.comp.lib.qt.devel/3196/focus=3197

in which it is proposed to use multiple build of Qt to create a single 
installation of both static and shared libs (on non-Windows only).

It seems to not be possible to create two CMake imported targets of the same 
name and different type, so is my option only to create separate targets 
named such as Qt5::Core, Qt5::Core_SHARED and Qt5::Core_STATIC?

Thanks,

Steve.





More information about the cmake-developers mailing list