Salome HOME
0022921: [CEA 1438] Remove the checkbox in the "time steps"
[modules/paravis.git] / src / Plugins / MEDReader / ParaViewPlugin / CMakeLists.txt
1 # Copyright (C) 2010-2015  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 INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/IO )
21
22 IF(PARAVIEW_BUILD_QT_GUI)
23
24   QT4_WRAP_UI(CLIENT_UI_SRCS Resources/UI/MEDReaderPanel.ui Resources/UI/ExtractGroupPanel.ui Resources/UI/ExtractCellTypePanel.ui)
25   
26   # create a plugin that implements an object panel for the reader
27   SET(CLIENT_SRCS pqMEDReaderPanel.cxx pqExtractGroupPanel.cxx pqExtractCellTypePanel.cxx VectBoolSpreadSheet.cxx VectBoolWidget.cxx)
28   
29   QT4_WRAP_CPP(MOC_SRCS pqMEDReaderPanel.h pqExtractGroupPanel.h pqExtractCellTypePanel.h VectBoolSpreadSheet.h VectBoolWidget.h)
30   
31   ADD_PARAVIEW_OBJECT_PANEL(MEDREADER_IFACES MEDREADER_IFACE_SRCS
32     CLASS_NAME pqMEDReaderPanel
33     XML_NAME MEDReader
34     XML_GROUP sources
35     )
36   
37   ADD_PARAVIEW_OBJECT_PANEL(EXTRACTGROUP_IFACES EXTRACTGROUP_IFACE_SRCS
38     CLASS_NAME pqExtractGroupPanel
39     XML_NAME ExtractGroup
40     XML_GROUP filters
41     )
42
43   ADD_PARAVIEW_OBJECT_PANEL(EXTRACTCELLTYPE_IFACES EXTRACTCELLTYPE_IFACE_SRCS
44     CLASS_NAME pqExtractCellTypePanel
45     XML_NAME ExtractCellType
46     XML_GROUP filters
47     )
48   
49   # create the med reader plugin itself
50   ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
51     SERVER_MANAGER_XML Resources/MEDReaderServer.xml
52     GUI_INTERFACES ${MEDREADER_IFACES} ${EXTRACTGROUP_IFACES} ${EXTRACTCELLTYPE_IFACES}
53     GUI_RESOURCES Resources/pqMEDReader.qrc
54     GUI_SOURCES ${CLIENT_SRCS}
55     ${CLIENT_UI_SRCS}
56     ${MOC_SRCS}
57     ${MEDREADER_IFACE_SRCS} ${EXTRACTGROUP_IFACE_SRCS} ${EXTRACTCELLTYPE_IFACE_SRCS}
58     CS_KITS
59     # this is the same name as the name in module.cmake file IO
60     # directory.
61     vtkMEDReader
62     )
63   
64 ELSE(PARAVIEW_BUILD_QT_GUI)
65   
66   # create the med reader plugin itself
67   ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
68     SERVER_MANAGER_SOURCES ${SM_SRCS}
69     SERVER_MANAGER_XML Resources/MEDReaderServer.xml
70     CS_KITS
71     # this is the same name as the name in module.cmake file IO
72     # directory.
73     vtkMEDReader
74     )
75   
76 ENDIF(PARAVIEW_BUILD_QT_GUI)
77
78 TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS)
79 # Install
80 INSTALL(
81   TARGETS MEDReaderPlugin
82   RUNTIME DESTINATION lib/paraview
83   LIBRARY DESTINATION lib/paraview
84   ARCHIVE DESTINATION lib/paraview
85   )
86
87
88
89