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