Salome HOME
updated copyright message
[modules/paravis.git] / src / Plugins / ArrayRenamer / plugin / CMakeLists.txt
1 # Copyright (C) 2014-2023  CEA, EDF
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 # Author : Roman NIKOLAEV
20
21 set(interfaces)
22 set(sources)
23 set(qrc_files)
24 if(PARAVIEW_USE_QT)
25   paraview_plugin_add_property_widget(
26     KIND        GROUP_WIDGET
27     TYPE        custom_arrays_editor
28     CLASS_NAME  pqArraysEditorPropertyWidget
29     INTERFACES  interfaces
30     SOURCES     sources
31   )
32   list(APPEND sources
33     pqArraysEditorPropertyWidget.cxx
34     pqArraysEditorPropertyWidget.h
35     pqEditComponents.h
36   )
37   list(APPEND qrc_files pqArrayRenamer.qrc)
38 endif()
39
40 paraview_add_plugin(ArrayRenamer
41   VERSION "1.0"
42   UI_RESOURCES ${qrc_files}
43   UI_INTERFACES ${interfaces}
44   SOURCES ${sources}
45   MODULES ArrayRenamerModule
46   MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/ArrayRenamerModule/vtk.module"
47   SERVER_MANAGER_XML filters.xml
48 )
49
50 install(TARGETS ArrayRenamer
51   RUNTIME DESTINATION lib/paraview
52   LIBRARY DESTINATION lib/paraview
53   ARCHIVE DESTINATION lib/paraview
54 )