1 # Copyright (C) 2010-2014 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.
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
21 ${MEDReader_SOURCE_DIR}/IO
22 ${MEDReader_BINARY_DIR}/IO )
24 IF(PARAVIEW_BUILD_QT_GUI)
26 QT4_WRAP_UI(CLIENT_UI_SRCS Resources/UI/MEDReaderPanel.ui Resources/UI/ExtractGroupPanel.ui Resources/UI/ExtractCellTypePanel.ui)
28 # create a plugin that implements an object panel for the reader
29 SET(CLIENT_SRCS pqMEDReaderPanel.cxx pqExtractGroupPanel.cxx pqExtractCellTypePanel.cxx VectBoolSpreadSheet.cxx VectBoolWidget.cxx)
31 QT4_WRAP_CPP(MOC_SRCS pqMEDReaderPanel.h pqExtractGroupPanel.h pqExtractCellTypePanel.h VectBoolSpreadSheet.h VectBoolWidget.h)
33 ADD_PARAVIEW_OBJECT_PANEL(MEDREADER_IFACES MEDREADER_IFACE_SRCS
34 CLASS_NAME pqMEDReaderPanel
39 ADD_PARAVIEW_OBJECT_PANEL(EXTRACTGROUP_IFACES EXTRACTGROUP_IFACE_SRCS
40 CLASS_NAME pqExtractGroupPanel
45 ADD_PARAVIEW_OBJECT_PANEL(EXTRACTCELLTYPE_IFACES EXTRACTCELLTYPE_IFACE_SRCS
46 CLASS_NAME pqExtractCellTypePanel
47 XML_NAME ExtractCellType
51 # create the med reader plugin itself
52 ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
53 SERVER_MANAGER_XML Resources/MEDReaderServer.xml
54 GUI_INTERFACES ${MEDREADER_IFACES} ${EXTRACTGROUP_IFACES} ${EXTRACTCELLTYPE_IFACES}
55 GUI_RESOURCES Resources/pqMEDReader.qrc
56 GUI_SOURCES ${CLIENT_SRCS}
59 ${MEDREADER_IFACE_SRCS} ${EXTRACTGROUP_IFACE_SRCS} ${EXTRACTCELLTYPE_IFACE_SRCS}
61 # this is the same name as the name in module.cmake file IO
66 ELSE(PARAVIEW_BUILD_QT_GUI)
68 # create the med reader plugin itself
69 ADD_PARAVIEW_PLUGIN(MEDReaderPlugin "4.0"
70 SERVER_MANAGER_SOURCES ${SM_SRCS}
71 SERVER_MANAGER_XML Resources/MEDReaderServer.xml
73 # this is the same name as the name in module.cmake file IO
78 ENDIF(PARAVIEW_BUILD_QT_GUI)
80 TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS)
83 TARGETS MEDReaderPlugin
84 RUNTIME DESTINATION lib/paraview
85 LIBRARY DESTINATION lib/paraview
86 ARCHIVE DESTINATION lib/paraview