]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/MEDReader/plugin/ParaViewPlugin/CMakeLists.txt
Salome HOME
f7c596eb028960924556c414b09884b4cf903c6b
[modules/paravis.git] / src / Plugins / MEDReader / plugin / ParaViewPlugin / CMakeLists.txt
1 # Copyright (C) 2010-2020  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 set(interfaces)
21 set(ui_files)
22 set(sources)
23
24 if(PARAVIEW_USE_QT)
25   set(ui_files
26     MEDReaderVectorsWidget.ui
27     MEDReaderTimeModeWidget.ui)
28
29   set(sources
30     pqAbstractFieldsWidget.cxx
31     VectBoolSpreadSheet.cxx
32     VectBoolWidget.cxx
33     pqExtractGroupFieldsWidget.cxx
34     pqMEDReaderGraphUtils.cxx
35     pqMEDReaderVectorsWidget.cxx
36     pqMEDReaderTimeModeWidget.cxx
37     pqMEDReaderReloadWidget.cxx
38     pqMEDReaderTimesFlagsWidget.cxx
39     pqMEDReaderFieldsWidget.cxx)
40
41   paraview_plugin_add_property_widget(
42     KIND WIDGET
43     TYPE "MEDReaderTimeModeWidgetType"
44     CLASS_NAME pqMEDReaderTimeModeWidget
45     INTERFACES property_interfaces
46     SOURCES property_sources)
47   list(APPEND interfaces
48     ${property_interfaces})
49   list(APPEND sources
50     ${property_sources})
51
52   paraview_plugin_add_property_widget(
53     KIND WIDGET
54     TYPE "MEDReaderReloadWidgetType"
55     CLASS_NAME pqMEDReaderReloadWidget
56     INTERFACES property_interfaces
57     SOURCES property_sources)
58   list(APPEND interfaces
59     ${property_interfaces})
60   list(APPEND sources
61     ${property_sources})
62
63   paraview_plugin_add_property_widget(
64     KIND WIDGET
65     TYPE "MEDReaderVectorsWidgetType"
66     CLASS_NAME pqMEDReaderVectorsWidget
67     INTERFACES property_interfaces
68     SOURCES property_sources)
69   list(APPEND interfaces
70     ${property_interfaces})
71   list(APPEND sources
72     ${property_sources})
73
74   paraview_plugin_add_property_widget(
75     KIND WIDGET
76     TYPE "MEDReaderTimesFlagsWidgetType"
77     CLASS_NAME pqMEDReaderTimesFlagsWidget
78     INTERFACES property_interfaces
79     SOURCES property_sources)
80   list(APPEND interfaces
81     ${property_interfaces})
82   list(APPEND sources
83     ${property_sources})
84
85   paraview_plugin_add_property_widget(
86     KIND WIDGET
87     TYPE "MEDReaderFieldsWidgetType"
88     CLASS_NAME pqMEDReaderFieldsWidget
89     INTERFACES property_interfaces
90     SOURCES property_sources)
91   list(APPEND interfaces
92     ${property_interfaces})
93   list(APPEND sources
94     ${property_sources})
95
96   paraview_plugin_add_property_widget(
97     KIND WIDGET
98     TYPE "ExtractGroupFieldsWidgetType"
99     CLASS_NAME pqExtractGroupFieldsWidget
100     INTERFACES property_interfaces
101     SOURCES property_sources)
102   list(APPEND interfaces
103     ${property_interfaces})
104   list(APPEND sources
105     ${property_sources})
106
107 endif(PARAVIEW_USE_QT)
108
109 paraview_add_plugin(MEDReader
110   VERSION "5.0"
111   UI_INTERFACES ${interfaces}
112   UI_FILES ${ui_files}
113   SOURCES ${sources}
114   UI_RESOURCES Resources/pqMEDReader.qrc
115   SERVER_MANAGER_XML Resources/MEDReaderServer.xml
116   MODULES MEDReaderIO
117   MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/../MEDReaderIO/vtk.module"
118   )
119
120 install(TARGETS MEDReader
121   RUNTIME DESTINATION lib/paraview
122   LIBRARY DESTINATION lib/paraview
123   ARCHIVE DESTINATION lib/paraview
124   )