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, 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 INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/IO )
22 IF(PARAVIEW_BUILD_QT_GUI)
24 QT4_WRAP_UI(CLIENT_UI_SRCS Resources/UI/MEDReaderPanel.ui Resources/UI/ExtractGroupPanel.ui Resources/UI/ExtractCellTypePanel.ui)
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)
29 QT4_WRAP_CPP(MOC_SRCS pqMEDReaderPanel.h pqExtractGroupPanel.h pqExtractCellTypePanel.h VectBoolSpreadSheet.h VectBoolWidget.h)
31 ADD_PARAVIEW_OBJECT_PANEL(MEDREADER_IFACES MEDREADER_IFACE_SRCS
32 CLASS_NAME pqMEDReaderPanel
37 ADD_PARAVIEW_OBJECT_PANEL(EXTRACTGROUP_IFACES EXTRACTGROUP_IFACE_SRCS
38 CLASS_NAME pqExtractGroupPanel
43 ADD_PARAVIEW_OBJECT_PANEL(EXTRACTCELLTYPE_IFACES EXTRACTCELLTYPE_IFACE_SRCS
44 CLASS_NAME pqExtractCellTypePanel
45 XML_NAME ExtractCellType
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}
57 ${MEDREADER_IFACE_SRCS} ${EXTRACTGROUP_IFACE_SRCS} ${EXTRACTCELLTYPE_IFACE_SRCS}
59 # this is the same name as the name in module.cmake file IO
64 ELSE(PARAVIEW_BUILD_QT_GUI)
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
71 # this is the same name as the name in module.cmake file IO
76 ENDIF(PARAVIEW_BUILD_QT_GUI)
78 TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS)
81 TARGETS MEDReaderPlugin
82 RUNTIME DESTINATION lib/paraview
83 LIBRARY DESTINATION lib/paraview
84 ARCHIVE DESTINATION lib/paraview