1 # Copyright (C) 2010-2015 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # create a plugin with a custom view that shows up in ParaView's multi-view
21 # manager. this plugin also contains a custom display panel
23 # moc the Qt based .h files
24 QT4_WRAP_CPP(MOC_SRCS MyView.h MyDisplay.h MyViewActiveOptions.h MyViewOptions.h)
26 # invoke macro to create sources for our custom view and display panel
27 ADD_PARAVIEW_VIEW_MODULE(
28 # returns the interfaces defined (pass in
29 # GUI_INTERFACES parameter)
31 # returns a list of source files for this interface
34 # With MyView.h implementing a
35 # pqGenericViewModule and MyView being the XML name
36 # for the view on the server side
38 # the XML group of the view in the server manager xml
40 # the XML name of the display for this view
42 # the name of the display panel for this display
43 # With MyDisplay.h implementing pqDisplayPanel
44 DISPLAY_PANEL MyDisplay)
47 ADD_PARAVIEW_VIEW_OPTIONS(OPTIONS_IFACE OPTIONS_IFACE_SRCS
48 VIEW_TYPE MyView ACTIVE_VIEW_OPTIONS MyViewActiveOptions)
50 # create a GUI side plugin with the GUI side code
51 #ADD_PARAVIEW_PLUGIN(GUISampleView "1.0" GUI_INTERFACES ${IFACES} ${OPTIONS_IFACE}
52 # GUI_SOURCES MyView.cxx MyDisplay.cxx MyViewActiveOptions.cxx MyViewOptions.cxx
53 # ${MOC_SRCS} ${IFACE_SRCS} ${OPTIONS_IFACE_SRCS})
55 # create a server side plugin with the server side code
56 #ADD_PARAVIEW_PLUGIN(SMSampleView "1.0" SERVER_MANAGER_XML MyViewSM.xml)
58 ADD_PARAVIEW_PLUGIN(GUISampleView "1.0"
59 SERVER_MANAGER_XML MyViewSM.xml
60 GUI_INTERFACES ${IFACES} ${OPTIONS_IFACE}
61 GUI_SOURCES MyView.cxx MyDisplay.cxx MyViewActiveOptions.cxx MyViewOptions.cxx
62 ${MOC_SRCS} ${IFACE_SRCS} ${OPTIONS_IFACE_SRCS} )
63 # one could combine the two plugins into one if desired
67 DESTINATION lib/paraview