Salome HOME
Porting to Paraview 5.8
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2019  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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${GEOM_INCLUDE_DIRS}
25   ${OpenCASCADE_INCLUDE_DIR}
26   ${MESHGEMS_INCLUDE_DIRS}
27   ${SMESH_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${Boost_INCLUDE_DIRS}
30   ${PROJECT_BINARY_DIR}/idl
31 )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(
35   ${OMNIORB_DEFINITIONS}
36   ${OpenCASCADE_DEFINITIONS}
37   ${BOOST_DEFINITIONS}
38 )
39
40 # libraries to link to
41 SET(_link_LIBRARIES
42   TKBRep
43   TKG2d
44   TKG3d
45   TKTopAlgo
46   TKGeomBase
47   TKGeomAlgo
48   TKCDF
49   ${MESHGEMS_TETRA_HPC_LIBRARY}
50   ${SMESH_SMESHimpl}
51   ${SMESH_SMESHEngine}
52   ${SMESH_SMESHDS}
53   ${SMESH_SMDS}
54   ${SMESH_StdMeshers}
55   ${SMESH_MeshDriverGMF}
56   ${KERNEL_SalomeGenericObj}
57   ${KERNEL_SALOMELocalTrace}
58   ${KERNEL_SALOMEBasics}
59   ${KERNEL_SalomeNS}
60   ${KERNEL_OpUtil}
61   SalomeIDLGHS3DPRLPLUGIN
62 )
63
64 # --- headers ---
65
66 # header files
67 SET(GHS3DPRLEngine_HEADERS
68   GHS3DPRLPlugin_Defs.hxx
69   GHS3DPRLPlugin_GHS3DPRL.hxx
70   GHS3DPRLPlugin_GHS3DPRL_i.hxx
71   GHS3DPRLPlugin_Hypothesis.hxx
72   GHS3DPRLPlugin_Hypothesis_i.hxx
73   MG_TetraHPC_API.hxx
74 )
75
76 # --- sources ---
77
78 # sources / static
79 SET(GHS3DPRLEngine_SOURCES
80   GHS3DPRLPlugin_Defs.hxx
81   GHS3DPRLPlugin_GHS3DPRL.hxx
82   GHS3DPRLPlugin_GHS3DPRL.cxx
83   GHS3DPRLPlugin_GHS3DPRL_i.hxx
84   GHS3DPRLPlugin_GHS3DPRL_i.cxx
85   GHS3DPRLPlugin_Hypothesis.hxx
86   GHS3DPRLPlugin_Hypothesis.cxx
87   GHS3DPRLPlugin_Hypothesis_i.hxx
88   GHS3DPRLPlugin_Hypothesis_i.cxx
89   GHS3DPRLPlugin_i.cxx
90   MG_TetraHPC_API.cxx
91 )
92
93 # --- scripts ---
94
95 # scripts / static
96 SET(_bin_SCRIPTS
97   __init__.py
98   GHS3DPRLPluginBuilder.py
99 )
100
101 # --- rules ---
102
103 ADD_LIBRARY(GHS3DPRLEngine ${GHS3DPRLEngine_SOURCES})
104 TARGET_LINK_LIBRARIES(GHS3DPRLEngine ${_link_LIBRARIES} )
105 INSTALL(TARGETS GHS3DPRLEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
106
107 INSTALL(FILES ${GHS3DPRLEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
108
109 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPRLPlugin)