[vtkusers] CMAKE: Getting Error when trying to add a Plugin on Paraview

Sedat Ozer newvtkuser at yahoo.com
Wed Jan 20 15:53:18 EST 2010


Hello everyone,

I have a problem about adding a plugin on Paraview since I am new to Cmake, and would like to know if anyone else had the same problem previously, and if you had, I would appreciate it if you could share the solution you used with me..

Without any modification, I am trying to add the existing Moments plugin (that comes with the Paraview code) as it was defined on the wiki/plugins_howto.  However when I run cmake (I have cmake 2.6 patch 4 installed), I get the following error:
--------------------------------
CMake Error at CMakeLists.txt:24 (ADD_PARAVIEW_PLUGIN):
  Unknown CMake command "ADD_PARAVIEW_PLUGIN".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
---------------------------------------------

And adding the line " cmake_minimum_required(VERSION 2.6)" gives me the same error as well: "Unknown CMake command ADD_PARAVIEW_PLUGIN". 

Is this error because of  the cmakeLists.txt file? Or simply because of my Paraview settings? If so, what settings do I need to turn on? (I have built the current version of Paraview).

Any help/example would be appreciated.

Thank you very much.
Sedat




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100120/79246c48/attachment.htm>


More information about the vtkusers mailing list