[cmake-developers] A type for static plugins?

Stephen Kelly steveire at gmail.com
Fri Sep 20 08:54:17 EDT 2013


Brad King wrote:

> On 09/20/2013 08:14 AM, Stephen Kelly wrote:
>> Any comments on adding a new STATIC_MODULE type to CMake?
> 
> Other than the TYPE being a different name, how would CMake
> treat this target type differently?

In the case of Qt, I don't see much else relevantly different between static 
libraries and static plugins. So the answer is, 'probably nothing'.

The other thing Qt does with static plugins is generate a file with 
Q_IMPORT_PLUGIN calls. That part relates to the INTERFACE_SOURCES concept:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/7082

I could imagine it being useful for any project which can build shared or 
static and has a plugin interface with a similar need for a PP define 
though.

Thanks,

Steve.





More information about the cmake-developers mailing list