1 # Copyright (C) 2012-2016 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
21 # additional include directories
25 ${KERNEL_INCLUDE_DIRS}
27 ${MEDFILE_INCLUDE_DIRS}
30 ${OMNIORB_INCLUDE_DIR}
31 ${PROJECT_SOURCE_DIR}/src/SMESHImpl
32 ${PROJECT_SOURCE_DIR}/src/SMESH
33 ${PROJECT_SOURCE_DIR}/src/SMESHUtils
34 ${PROJECT_SOURCE_DIR}/src/SMESH_I
35 ${PROJECT_SOURCE_DIR}/src/SMESHDS
36 ${PROJECT_SOURCE_DIR}/src/SMDS
37 ${PROJECT_SOURCE_DIR}/src/Controls
38 ${PROJECT_SOURCE_DIR}/src/StdMeshers
39 ${PROJECT_BINARY_DIR}/idl
42 IF(SALOME_SMESH_ENABLE_MEFISTO)
44 ${PROJECT_SOURCE_DIR}/src/MEFISTO2
46 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
48 # additional preprocessor / compiler flags
52 ${OMNIORB_DEFINITIONS}
55 # To avoid GetObject macro definition on WIN32
57 ADD_DEFINITIONS(-DNOGDI)
60 # libraries to link to
62 ${KERNEL_SALOMELocalTrace}
63 ${KERNEL_SalomeGenericObj}
77 # header files / no moc processing
78 SET(StdMeshersEngine_HEADERS
79 StdMeshers_LocalLength_i.hxx
80 StdMeshers_StartEndLength_i.hxx
81 StdMeshers_Arithmetic1D_i.hxx
82 StdMeshers_FixedPoints1D_i.hxx
83 StdMeshers_NumberOfSegments_i.hxx
84 StdMeshers_Deflection1D_i.hxx
85 StdMeshers_Propagation_i.hxx
86 StdMeshers_LengthFromEdges_i.hxx
87 StdMeshers_MaxElementArea_i.hxx
88 StdMeshers_MaxElementVolume_i.hxx
89 StdMeshers_NotConformAllowed_i.hxx
90 StdMeshers_Regular_1D_i.hxx
91 StdMeshers_Quadrangle_2D_i.hxx
92 StdMeshers_Hexa_3D_i.hxx
93 StdMeshers_AutomaticLength_i.hxx
94 StdMeshers_QuadranglePreference_i.hxx
95 StdMeshers_QuadraticMesh_i.hxx
96 StdMeshers_NumberOfLayers_i.hxx
97 StdMeshers_NumberOfLayers2D_i.hxx
98 StdMeshers_Prism_3D_i.hxx
99 StdMeshers_ProjectionSource1D_i.hxx
100 StdMeshers_ProjectionSource2D_i.hxx
101 StdMeshers_ProjectionSource3D_i.hxx
102 StdMeshers_Projection_1D_2D_3D_i.hxx
103 StdMeshers_ObjRefUlils.hxx
104 StdMeshers_LayerDistribution_i.hxx
105 StdMeshers_LayerDistribution2D_i.hxx
106 StdMeshers_CompositeSegment_1D_i.hxx
107 StdMeshers_SegmentAroundVertex_0D_i.hxx
108 StdMeshers_SegmentLengthAroundVertex_i.hxx
109 StdMeshers_UseExisting_1D2D_i.hxx
110 StdMeshers_MaxLength_i.hxx
111 StdMeshers_QuadrangleParams_i.hxx
112 StdMeshers_RadialQuadrangle_1D2D_i.hxx
113 SMESH_StdMeshers_I.hxx
114 StdMeshers_ImportSource1D_i.hxx
115 StdMeshers_ImportSource2D_i.hxx
116 StdMeshers_Import_1D_i.hxx
117 StdMeshers_Import_1D2D_i.hxx
118 StdMeshers_ViscousLayers_i.hxx
119 StdMeshers_ViscousLayers2D_i.hxx
120 StdMeshers_CartesianParameters3D_i.hxx
121 StdMeshers_Cartesian_3D_i.hxx
122 StdMeshers_PolygonPerFace_2D_i.hxx
124 IF(SALOME_SMESH_ENABLE_MEFISTO)
125 SET(StdMeshersEngine_HEADERS ${StdMeshersEngine_HEADERS} StdMeshers_MEFISTO_2D_i.hxx)
126 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
130 SET(StdMeshersEngine_SOURCES
132 StdMeshers_LocalLength_i.cxx
133 StdMeshers_Reversible1D_i.cxx
134 StdMeshers_StartEndLength_i.cxx
135 StdMeshers_Arithmetic1D_i.cxx
136 StdMeshers_Geometric1D_i.cxx
137 StdMeshers_FixedPoints1D_i.cxx
138 StdMeshers_NumberOfSegments_i.cxx
139 StdMeshers_Deflection1D_i.cxx
140 StdMeshers_Propagation_i.cxx
141 StdMeshers_LengthFromEdges_i.cxx
142 StdMeshers_MaxElementArea_i.cxx
143 StdMeshers_MaxElementVolume_i.cxx
144 StdMeshers_NotConformAllowed_i.cxx
145 StdMeshers_Regular_1D_i.cxx
146 StdMeshers_Quadrangle_2D_i.cxx
147 StdMeshers_Hexa_3D_i.cxx
148 StdMeshers_AutomaticLength_i.cxx
149 StdMeshers_QuadranglePreference_i.cxx
150 StdMeshers_QuadraticMesh_i.cxx
151 StdMeshers_NumberOfLayers_i.cxx
152 StdMeshers_NumberOfLayers2D_i.cxx
153 StdMeshers_Prism_3D_i.cxx
154 StdMeshers_ProjectionSource1D_i.cxx
155 StdMeshers_ProjectionSource2D_i.cxx
156 StdMeshers_ProjectionSource3D_i.cxx
157 StdMeshers_Projection_1D_2D_3D_i.cxx
158 StdMeshers_ObjRefUlils.cxx
159 StdMeshers_LayerDistribution_i.cxx
160 StdMeshers_LayerDistribution2D_i.cxx
161 StdMeshers_CompositeSegment_1D_i.cxx
162 StdMeshers_SegmentAroundVertex_0D_i.cxx
163 StdMeshers_SegmentLengthAroundVertex_i.cxx
164 StdMeshers_UseExisting_1D2D_i.cxx
165 StdMeshers_MaxLength_i.cxx
166 StdMeshers_QuadrangleParams_i.cxx
167 StdMeshers_RadialQuadrangle_1D2D_i.cxx
168 StdMeshers_ImportSource1D_i.cxx
169 StdMeshers_ImportSource2D_i.cxx
170 StdMeshers_Import_1D_i.cxx
171 StdMeshers_Import_1D2D_i.cxx
172 StdMeshers_ViscousLayers_i.cxx
173 StdMeshers_ViscousLayers2D_i.cxx
174 StdMeshers_CartesianParameters3D_i.cxx
175 StdMeshers_Cartesian_3D_i.cxx
176 StdMeshers_Adaptive1D_i.cxx
177 StdMeshers_PolygonPerFace_2D_i.cxx
180 IF(SALOME_SMESH_ENABLE_MEFISTO)
181 SET(StdMeshersEngine_SOURCES ${StdMeshersEngine_SOURCES} StdMeshers_MEFISTO_2D_i.cxx)
182 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
186 ADD_LIBRARY(StdMeshersEngine ${StdMeshersEngine_SOURCES})
187 TARGET_LINK_LIBRARIES(StdMeshersEngine ${_link_LIBRARIES} )
188 INSTALL(TARGETS StdMeshersEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
190 INSTALL(FILES ${StdMeshersEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})