1 # Copyright (C) 2012-2022 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # additional include directories
26 ${KERNEL_INCLUDE_DIRS}
29 ${OpenCASCADE_INCLUDE_DIR}
30 ${NETGEN_INCLUDE_DIRS}
32 ${MEDCOUPLING_INCLUDE_DIRS}
34 ${OMNIORB_INCLUDE_DIR}
35 ${PROJECT_BINARY_DIR}/idl
36 ${NETGEN_ZLIB_INCLUDE_DIRS}
39 # additional preprocessor / compiler flags
42 ${OMNIORB_DEFINITIONS}
43 ${OpenCASCADE_DEFINITIONS}
48 # libraries to link to
51 ${OpenCASCADE_FoundationClasses_LIBRARIES}
52 ${OpenCASCADE_ModelingData_LIBRARIES}
53 ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
54 ${OpenCASCADE_DataExchange_LIBRARIES}
55 ${OpenCASCADE_Visualization_LIBRARIES}
56 ${OpenCASCADE_ApplicationFramework_LIBRARIES}
61 ${SMESH_StdMeshersEngine}
65 ${SMESH_SMESHControls}
66 ${KERNEL_SalomeGenericObj}
68 ${KERNEL_SALOMELocalTrace}
79 SET(NETGENEngine_HEADERS
80 NETGENPlugin_NETGEN_3D.hxx
81 NETGENPlugin_NETGEN_3D_i.hxx
82 NETGENPlugin_NETGEN_2D.hxx
83 NETGENPlugin_NETGEN_2D_i.hxx
84 NETGENPlugin_NETGEN_2D3D.hxx
85 NETGENPlugin_NETGEN_2D3D_i.hxx
86 NETGENPlugin_NETGEN_2D_ONLY.hxx
87 NETGENPlugin_NETGEN_2D_ONLY_i.hxx
88 NETGENPlugin_Hypothesis.hxx
89 NETGENPlugin_Hypothesis_i.hxx
90 NETGENPlugin_Hypothesis_2D.hxx
91 NETGENPlugin_Hypothesis_2D_i.hxx
92 NETGENPlugin_Hypothesis_3D_i.hxx
93 NETGENPlugin_Hypothesis_2D_ONLY_i.hxx
94 NETGENPlugin_SimpleHypothesis_2D.hxx
95 NETGENPlugin_SimpleHypothesis_3D.hxx
96 NETGENPlugin_SimpleHypothesis_2D_i.hxx
97 NETGENPlugin_SimpleHypothesis_3D_i.hxx
98 NETGENPlugin_Mesher.hxx
99 NETGENPlugin_Remesher_2D.hxx
100 NETGENPlugin_Defs.hxx
101 NETGENPlugin_DriverParam.hxx
102 NETGENPlugin_NETGEN_3D_SA.hxx
103 NETGENPlugin_NETGEN_3D_Remote.hxx
104 NETGENPlugin_NETGEN_3D_Remote_i.hxx
110 SET(NETGENEngine_SOURCES
111 NETGENPlugin_NETGEN_3D.cxx
112 NETGENPlugin_NETGEN_3D_i.cxx
113 NETGENPlugin_Mesher.cxx
114 NETGENPlugin_NETGEN_2D.cxx
115 NETGENPlugin_NETGEN_2D_i.cxx
116 NETGENPlugin_NETGEN_2D3D.cxx
117 NETGENPlugin_NETGEN_2D3D_i.cxx
118 NETGENPlugin_NETGEN_2D_ONLY.cxx
119 NETGENPlugin_NETGEN_2D_ONLY_i.cxx
120 NETGENPlugin_Hypothesis.cxx
121 NETGENPlugin_Hypothesis_i.cxx
122 NETGENPlugin_Hypothesis_2D.cxx
123 NETGENPlugin_Hypothesis_2D_i.cxx
124 NETGENPlugin_Hypothesis_3D_i.cxx
125 NETGENPlugin_Hypothesis_2D_ONLY_i.cxx
126 NETGENPlugin_SimpleHypothesis_2D.cxx
127 NETGENPlugin_SimpleHypothesis_3D.cxx
128 NETGENPlugin_SimpleHypothesis_2D_i.cxx
129 NETGENPlugin_SimpleHypothesis_3D_i.cxx
130 NETGENPlugin_Remesher_2D.cxx
132 NETGENPlugin_DriverParam.cxx
133 NETGENPlugin_NETGEN_3D_SA.cxx
134 NETGENPlugin_NETGEN_3D_Remote.cxx
135 NETGENPlugin_NETGEN_3D_Remote_i.cxx
138 SET(NetgenRunner_SOURCES
139 NETGENPlugin_Runner_main.cxx
147 NETGENPluginBuilder.py
152 ADD_LIBRARY(NETGENEngine ${NETGENEngine_SOURCES})
153 TARGET_LINK_LIBRARIES(NETGENEngine ${_link_LIBRARIES} )
154 INSTALL(TARGETS NETGENEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
156 ADD_EXECUTABLE(NETGENPlugin_Runner ${NetgenRunner_SOURCES})
157 TARGET_LINK_LIBRARIES(NETGENPlugin_Runner ${_link_LIBRARIES} NETGENEngine )
158 INSTALL(TARGETS NETGENPlugin_Runner EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
160 INSTALL(FILES ${NETGENEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
162 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/NETGENPlugin)