[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    RE: [Paraview] error loading local library
From:       "Ken Martin" <ken.martin () kitware ! com>
Date:       2004-04-06 12:38:30
Message-ID: 002001c41bd4$1471b730$6901a8c0 () kitwarein ! com
[Download RAW message or body]

> > This is now implemented.  A third-party project can build a ParaView
> > plugin using CMake code like this:
> >
> > -----------------------------------------------------------------
> > PROJECT(MYPACKAGE)
> > INCLUDE_DIRECTORIES(${MYPACKAGE_SOURCE_DIR})
> >
> > # Import ParaView build settings.
> > FIND_PACKAGE(ParaView)
> > IF(ParaView_FOUND)
> >   INCLUDE(${PARAVIEW_USE_FILE})
> > ELSE(ParaView_FOUND)
> >   MESSAGE(FATAL_ERROR "ParaView is required.  Set ParaView_DIR.")
> > ENDIF(ParaView_FOUND)
> >
> > # List of classes for the plugin.
> > SET(mypackage_SRCS vtkMyClass.cxx)
> >
> > # Create vtk client/server wrappers for the classes.
> > VTK_WRAP_ClientServer(mypackage mypackageCS_SRCS ${mypackage_SRCS})
> >
> > # Build the package as a plugin for ParaView.
> > ADD_LIBRARY(mypackage MODULE ${mypackage_SRCS} ${mypackageCS_SRCS})
> > TARGET_LINK_LIBRARIES(mypackage vtkClientServer)
> 
> 
> I have problem building my 3rd party projects with the new CVS nightly
> build architecture. After a fresh CVS update, I get the following error:
> 
>   Invocation of macro "VTK_WRAP_ClientServer" with incorrect number of
> arguments.
> 
> Can someone suggest the corrections to apply to the CMake code given
> above by Brad?



VTK_WRAP_ClientServer(mypackage mypackageCS_SRCS "${mypackage_SRCS}")



Ken



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic