[CMake] Problems with CMake and static Qt plugins

Stephen Kelly steveire at gmail.com
Mon Oct 29 17:04:15 EDT 2012


dcrespol wrote:

> Hi, norulez.
> With "@Thiago: QT_STATICPLUGIN does the trick ", what do you mean? How and
> where did you use this?
> If possible, can you please include both your final plugin and application
> CMakeLists.txt files?

It was probably a response to Thiago on the Qt mailing list. 

Use 

 add_definitions(-DQT_STATICPLUGIN)

when building your plugin or 

 set_property(TARGET theplugin APPEND 
   PROPERTY COMPILE_DEFINITIONS QT_STATICPLUGIN
 )


Thanks,

Steve.




More information about the CMake mailing list