1 # Copyright (C) 2010-2024 CEA, EDF
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
24 cmake_policy(SET CMP0071 OLD) # bug in ParaViewPlugin.cmake?
28 Resources/pqMEDReader.qrc)
31 MEDReaderVectorsWidget.ui
32 MEDReaderTimeModeWidget.ui)
35 pqAbstractFieldsWidget.cxx
36 VectBoolSpreadSheet.cxx
38 pqExtractGroupFieldsWidget.cxx
39 pqMEDReaderGraphUtils.cxx
40 pqMEDReaderVectorsWidget.cxx
41 pqMEDReaderTimeModeWidget.cxx
42 pqMEDReaderReloadWidget.cxx
43 pqMEDReaderTimesFlagsWidget.cxx
44 pqMEDReaderFieldsWidget.cxx)
46 paraview_plugin_add_property_widget(
48 TYPE "MEDReaderTimeModeWidgetType"
49 CLASS_NAME pqMEDReaderTimeModeWidget
50 INTERFACES property_interfaces
51 SOURCES property_sources)
52 list(APPEND interfaces
53 ${property_interfaces})
57 paraview_plugin_add_property_widget(
59 TYPE "MEDReaderReloadWidgetType"
60 CLASS_NAME pqMEDReaderReloadWidget
61 INTERFACES property_interfaces
62 SOURCES property_sources)
63 list(APPEND interfaces
64 ${property_interfaces})
68 paraview_plugin_add_property_widget(
70 TYPE "MEDReaderVectorsWidgetType"
71 CLASS_NAME pqMEDReaderVectorsWidget
72 INTERFACES property_interfaces
73 SOURCES property_sources)
74 list(APPEND interfaces
75 ${property_interfaces})
79 paraview_plugin_add_property_widget(
81 TYPE "MEDReaderTimesFlagsWidgetType"
82 CLASS_NAME pqMEDReaderTimesFlagsWidget
83 INTERFACES property_interfaces
84 SOURCES property_sources)
85 list(APPEND interfaces
86 ${property_interfaces})
90 paraview_plugin_add_property_widget(
92 TYPE "MEDReaderFieldsWidgetType"
93 CLASS_NAME pqMEDReaderFieldsWidget
94 INTERFACES property_interfaces
95 SOURCES property_sources)
96 list(APPEND interfaces
97 ${property_interfaces})
101 paraview_plugin_add_property_widget(
103 TYPE "ExtractGroupFieldsWidgetType"
104 CLASS_NAME pqExtractGroupFieldsWidget
105 INTERFACES property_interfaces
106 SOURCES property_sources)
107 list(APPEND interfaces
108 ${property_interfaces})
112 endif(PARAVIEW_USE_QT)
114 paraview_add_plugin(MEDReader
116 UI_INTERFACES ${interfaces}
119 UI_RESOURCES ${ui_resource_files}
120 SERVER_MANAGER_XML Resources/MEDReaderServer.xml
122 MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/../MEDReaderIO/vtk.module"
125 install(TARGETS MEDReader
126 RUNTIME DESTINATION lib/paraview
127 LIBRARY DESTINATION lib/paraview
128 ARCHIVE DESTINATION lib/paraview