Salome HOME
MAJ vers paraview 5.4
[modules/paravis.git] / src / Plugins / ParaSMESHCorba / 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  PROJECT(ParaSMESHCorba)
21  CMAKE_MINIMUM_REQUIRED( VERSION 2.8.7 )
22
23  FIND_PACKAGE(ParaView REQUIRED)
24  INCLUDE(${PARAVIEW_USE_FILE})
25
26  SET(PARA_SMESH_CORBA_SRC
27     ${ParaSMESHCorba_SOURCE_DIR}/vtkParaSMESHCorbaSource.cxx 
28     )
29
30  ADD_PARAVIEW_PLUGIN( ParaSMESHCorbaPlugin "1.0"
31       SERVER_MANAGER_XML ParaSMESHCorbaServerManager.xml
32       SERVER_MANAGER_SOURCES ${PARA_SMESH_CORBA_SRC} )
33
34  INCLUDE_DIRECTORIES(
35      ${OMNIORB_INCLUDE_DIR}
36      ${SMESH_ROOT_DIR}/include/salome 
37      ${GEOM_ROOT_DIR}/include/salome
38      ${KERNEL_ROOT_DIR}/include/salome )
39      
40  ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
41  TARGET_LINK_LIBRARIES(ParaSMESHCorbaPlugin
42       ${OMNIORB_LIBRARIES}
43       ${KERNEL_SalomeIDLKernel}
44       ${SMESH_SalomeIDLSMESH}
45       ${SMESH_SMESHClient}
46       ${GEOM_SalomeIDLGEOM}
47   )
48
49  INSTALL(TARGETS ParaSMESHCorbaPlugin DESTINATION lib/paraview)
50  INSTALL(FILES ParaSMESHCorbaServerManager.xml DESTINATION share)