Salome HOME
1552593e5cda3aebe9bf10aa87e5ced5ff8f5b2d
[modules/paravis.git] / src / Plugins / ParaSMESHCorba / CMakeLists.txt
1 # Copyright (C) 2010-2014  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       GUI_RESOURCE_FILES
33       ParaSMESHCorbaUserInterfaceSources.xml
34       SERVER_MANAGER_SOURCES ${PARA_SMESH_CORBA_SRC} )
35
36  INCLUDE_DIRECTORIES(
37      ${OMNIORB_INCLUDE_DIR}
38      ${SMESH_ROOT_DIR}/include/salome 
39      ${GEOM_ROOT_DIR}/include/salome
40      ${KERNEL_ROOT_DIR}/include/salome )
41      
42  ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
43  TARGET_LINK_LIBRARIES(ParaSMESHCorbaPlugin
44       ${OMNIORB_LIBRARIES}
45       ${KERNEL_SalomeIDLKernel}
46       ${SMESH_SalomeIDLSMESH}
47       ${SMESH_SMESHClient}
48       ${GEOM_SalomeIDLGEOM}
49   )
50
51  INSTALL(TARGETS ParaSMESHCorbaPlugin DESTINATION lib/paraview)
52  INSTALL(FILES ParaSMESHCorbaServerManager.xml DESTINATION share)