Salome HOME
Copyright update: 2016
[modules/paravis.git] / src / Plugins / TableReader / ParaViewPlugin / CMakeLists.txt
1 # Copyright (C) 2010-2016  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 IF(PARAVIEW_BUILD_QT_GUI)
21    
22     # Custom object panel for the reader and 
23     # custom display panel for line chart view
24     QT4_WRAP_UI(CLIENT_UI_SRCS
25         Resources/UI/TableReaderPanel.ui
26         Resources/UI/CustomXYChartDisplayPanel.ui
27     )
28
29     QT4_WRAP_CPP(MOC_SRCS 
30         pqTableReaderPanel.h
31         pqTableTo3DPanel.h
32         pqCustomChartDisplayPanelImplementation.h
33         pqCustomXYChartDisplayPanel.h
34         pqCustomPlotSettingsModel.h
35     )
36         
37      SET(CLIENT_SRCS
38         pqTableReaderPanel.cxx
39         pqTableTo3DPanel.cxx
40         pqCustomChartDisplayPanelImplementation.cxx
41         pqCustomXYChartDisplayPanel.cxx
42         pqCustomPlotSettingsModel.cxx
43     )   
44
45     ADD_PARAVIEW_OBJECT_PANEL(
46         TABLEREADER_IFACES TABLEREADER_IFACE_SRCS 
47         CLASS_NAME pqTableReaderPanel
48         XML_NAME TableReader 
49         XML_GROUP sources)
50     
51     ADD_PARAVIEW_OBJECT_PANEL(
52         TABLETO3D_IFACES TABLETO3D_IFACE_SRCS 
53         CLASS_NAME pqTableTo3DPanel
54         XML_NAME TableTo3D 
55         XML_GROUP filters)
56
57     # define the server-side and the client-side parts
58     # of the table reader plugin
59     ADD_PARAVIEW_PLUGIN(TableReaderPlugin "1.0"
60         SOURCES ../Reader/TableParser.cxx
61         SERVER_MANAGER_SOURCES ../Reader/vtkVisuTableReader.cxx ../TableTo3DFilter/vtkTableTo3D.cxx
62         SERVER_MANAGER_XML Resources/TableReaderServer.xml Resources/TableTo3DServer.xml
63         GUI_INTERFACES ${TABLEREADER_IFACES} ${TABLETO3D_IFACES} pqCustomChartDisplayPanel
64         GUI_SOURCES ${CLIENT_SRCS} 
65             ${CLIENT_UI_SRCS} 
66             ${TABLEREADER_IFACE_SRCS} 
67             ${TABLETO3D_IFACE_SRCS}
68             ${MOC_SRCS}
69         GUI_RESOURCES Resources/TableReader.qrc Resources/TableTo3D.qrc)
70       
71 ELSE(PARAVIEW_BUILD_QT_GUI)
72
73     # define the server-side part of the table reader plugin
74     ADD_PARAVIEW_PLUGIN(TableReaderPlugin "1.0" 
75       SOURCES TableParser.cxx
76       SERVER_MANAGER_SOURCES vtkVisuTableReader.cxx vtkTableTo3D.cxx
77       SERVER_MANAGER_XML Resources/TableReaderServer.xml Resources/TableTo3DServer.xml)
78
79 ENDIF(PARAVIEW_BUILD_QT_GUI)
80
81 TARGET_LINK_LIBRARIES(TableReaderPlugin vtkVisuTableReader vtkTableTo3D)
82
83 # Install
84 INSTALL(
85     TARGETS TableReaderPlugin
86     RUNTIME DESTINATION lib/paraview
87     LIBRARY DESTINATION lib/paraview
88     ARCHIVE DESTINATION lib/paraview
89 )