[Paraview] Linking in additional libraries to plugins

clinton at elemtech.com clinton at elemtech.com
Tue Jan 8 14:34:33 EST 2008


On Tuesday 08 January 2008 11:59:37 am Paul Edwards wrote:
> I have written a server manager plugin that uses Qt and it was complaining
> about a missing symbol when scripting with python.  To fix it I needed to
> add the QtCore library when linking the plugin.  How do I add libraries
> when using the ADD_PARAVIEW_PLUGIN macro in cmake?
>
> Thanks in advance,
> Paul

ADD_PARAVIEW_PLUGIN() will add the Qt libraries for you if you pass in any 
GUI_* arguments.

Otherwise if you still want to link with QtCore, you can simply do a 
TARGET_LINK_LIBRARIES(MyPlugin QtCore) after your call to 
ADD_PARAVIEW_PLUGIN().

Clint


More information about the ParaView mailing list