1 # Copyright (C) 2010-2012 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
20 # add include indirectories to the vtk files in this plugin.
22 ${MedReader_SOURCE_DIR}/IO
23 ${MedReader_BINARY_DIR}/IO)
27 vtkSMMedGroupSelectionDomain.cxx
30 IF(PARAVIEW_BUILD_QT_GUI)
32 QT4_WRAP_UI(CLIENT_UI_SRCS
33 Resources/UI/MedReaderPanel.ui
34 Resources/UI/ExtractGroupPanel.ui
37 # create a plugin that implements an object panel for the reader
40 pqExtractGroupPanel.cxx
48 ADD_PARAVIEW_OBJECT_PANEL(MEDREADER_IFACES MEDREADER_IFACE_SRCS
49 CLASS_NAME pqMedReaderPanel
54 ADD_PARAVIEW_OBJECT_PANEL(EXTRACTGROUP_IFACES EXTRACTGROUP_IFACE_SRCS
55 CLASS_NAME pqExtractGroupPanel
60 # create the med reader plugin itself
61 ADD_PARAVIEW_PLUGIN(MedReaderPlugin "4.0"
62 SERVER_MANAGER_SOURCES ${SM_SRCS}
63 SERVER_MANAGER_XML Resources/MedReaderServer.xml
64 GUI_INTERFACES ${MEDREADER_IFACES} ${EXTRACTGROUP_IFACES}
65 GUI_RESOURCES Resources/pqMedReader.qrc
66 GUI_SOURCES ${CLIENT_SRCS}
69 ${MEDREADER_IFACE_SRCS}
70 ${EXTRACTGROUP_IFACE_SRCS}
72 # this is the same name as the name in module.cmake file IO
77 ELSE(PARAVIEW_BUILD_QT_GUI)
79 # create the med reader plugin itself
80 ADD_PARAVIEW_PLUGIN(MedReaderPlugin "4.0"
81 SERVER_MANAGER_SOURCES ${SM_SRCS}
82 SERVER_MANAGER_XML Resources/MedReaderServer.xml
84 # this is the same name as the name in module.cmake file IO
89 ENDIF(PARAVIEW_BUILD_QT_GUI)
91 TARGET_LINK_LIBRARIES(MedReaderPlugin vtkMedReader vtkMedReaderCS)
95 TARGETS MedReaderPlugin
96 RUNTIME DESTINATION lib/paraview
97 LIBRARY DESTINATION lib/paraview
98 ARCHIVE DESTINATION lib/paraview