]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/StaticMesh/CMakeLists.txt
Salome HOME
69f108767cda60de899a28d4f8cd0d3d20983291
[modules/paravis.git] / src / Plugins / StaticMesh / CMakeLists.txt
1 # Copyright (C) 2018  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 (NOT ParaView_BINARY_DIR)
21   cmake_minimum_required(VERSION 3.3)
22   find_package(ParaView REQUIRED)
23   include(${PARAVIEW_USE_FILE})
24 endif()
25
26 include_directories(
27   ${VTK_INCLUDE_DIRS}
28   ${CMAKE_CURRENT_SOURCE_DIR}
29   ${CMAKE_CURRENT_BINARY_DIR}
30   )
31
32 set(Module_SRCS
33   vtkStaticDataSetSurfaceFilter.cxx
34   vtkStaticEnSight6BinaryReader.cxx
35   vtkStaticEnSight6Reader.cxx
36   vtkStaticEnSightGoldBinaryReader.cxx
37   vtkStaticEnSightGoldReader.cxx
38   vtkStaticMeshObjectFactory.cxx
39   vtkStaticPlaneCutter.cxx
40 )
41 if (PARAVIEW_USE_MPI)
42   list(APPEND Module_SRCS vtkStaticPUnstructuredGridGhostCellsGenerator.cxx)
43 endif()
44
45 add_paraview_plugin(
46   StaticMesh "0.1"
47   SERVER_MANAGER_XML
48     StaticMeshSM.xml
49   SERVER_MANAGER_SOURCES
50     vtkTemporalUGWavelet.cxx
51   SOURCES
52     ${Module_SRCS}
53   )
54
55 if (BUILD_TESTING)
56   add_subdirectory(Testing)
57 endif()
58 INSTALL(TARGETS StaticMesh RUNTIME DESTINATION lib/paraview LIBRARY DESTINATION lib/paraview ARCHIVE DESTINATION lib/paraview)