Salome HOME
Copyright update 2021
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2021  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   ${OpenCASCADE_INCLUDE_DIR}
25   ${GEOM_INCLUDE_DIRS}
26   ${SMESH_INCLUDE_DIRS}
27   ${MESHGEMS_INCLUDE_DIRS}
28   ${Boost_INCLUDE_DIRS}
29   ${OMNIORB_INCLUDE_DIR}
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_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   SalomeIDLGHS3DPLUGIN
62 )
63
64 # --- headers ---
65
66 # header files
67 SET(GHS3DEngine_HEADERS
68   GHS3DPlugin_Defs.hxx
69   GHS3DPlugin_GHS3D.hxx
70   GHS3DPlugin_GHS3D_i.hxx
71   GHS3DPlugin_Hypothesis.hxx
72   GHS3DPlugin_Hypothesis_i.hxx
73   GHS3DPlugin_Optimizer.hxx
74   GHS3DPlugin_OptimizerHypothesis.hxx
75   GHS3DPlugin_OptimizerHypothesis_i.hxx
76   MG_Tetra_API.hxx
77 )
78
79 # --- sources ---
80
81 # sources / static
82 SET(GHS3DEngine_SOURCES
83   GHS3DPlugin_GHS3D.cxx
84   GHS3DPlugin_GHS3D_i.cxx
85   GHS3DPlugin_i.cxx
86   GHS3DPlugin_Hypothesis.cxx
87   GHS3DPlugin_Hypothesis_i.cxx
88   GHS3DPlugin_Optimizer.cxx
89   GHS3DPlugin_OptimizerHypothesis.cxx
90   GHS3DPlugin_OptimizerHypothesis_i.cxx
91   MG_Tetra_API.cxx
92 )
93
94 # --- scripts ---
95
96 # scripts / static
97 SET(_bin_SCRIPTS
98   __init__.py
99   GHS3DPluginBuilder.py
100 )
101
102 # --- rules ---
103
104 ADD_LIBRARY(GHS3DEngine ${GHS3DEngine_SOURCES} ${GHS3DEngine_HEADERS})
105 TARGET_LINK_LIBRARIES(GHS3DEngine ${_link_LIBRARIES} )
106 INSTALL(TARGETS GHS3DEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
107
108 INSTALL(FILES ${GHS3DEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
109
110 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPlugin)