Salome HOME
Update of CheckDone
[modules/smesh.git] / src / SMESHGUI / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF, OPEN CASCADE
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 INCLUDE(UseQtExt)
21
22 # --- options ---
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${QT_INCLUDES}
26   ${OGL_INCLUDE_DIRS}
27   ${OpenCASCADE_INCLUDE_DIR}
28   ${PYTHON_INCLUDE_DIRS}
29   ${KERNEL_INCLUDE_DIRS}
30   ${GUI_INCLUDE_DIRS}
31   ${QWT_INCLUDE_DIR}
32   ${GEOM_INCLUDE_DIRS}
33   ${MEDFILE_INCLUDE_DIRS}
34   ${Boost_INCLUDE_DIRS}
35   ${OMNIORB_INCLUDE_DIR}
36   ${HDF5_INCLUDE_DIRS}
37   ${MEDCOUPLING_INCLUDE_DIRS}
38   ${PROJECT_SOURCE_DIR}/src/OBJECT
39   ${PROJECT_SOURCE_DIR}/src/SMESHFiltersSelection
40   ${PROJECT_SOURCE_DIR}/src/SMDS
41   ${PROJECT_SOURCE_DIR}/src/SMESHDS
42   ${PROJECT_SOURCE_DIR}/src/SMESHUtils
43   ${PROJECT_SOURCE_DIR}/src/Controls
44   ${PROJECT_SOURCE_DIR}/src/SMESHClient
45   ${PROJECT_SOURCE_DIR}/src/MEDWrapper
46   ${PROJECT_SOURCE_DIR}/src/SMESH_I
47   ${PROJECT_SOURCE_DIR}/src/SMESH
48   ${PROJECT_BINARY_DIR}
49   ${PROJECT_BINARY_DIR}/idl
50 )
51
52 # additional preprocessor / compiler flags
53 ADD_DEFINITIONS(
54   ${OpenCASCADE_DEFINITIONS}
55   ${BOOST_DEFINITIONS}
56   ${OMNIORB_DEFINITIONS}
57 )
58
59 # To avoid GetObject macro definition on WIN32
60 IF(WIN32)
61   ADD_DEFINITIONS(-DNOGDI)
62 ENDIF(WIN32)
63
64 # libraries to link to
65 SET(_link_LIBRARIES
66   ${OpenCASCADE_Visualization_LIBRARIES}
67   ${GUI_SalomePrs}
68   ${GUI_suit}
69   ${GUI_SUITApp}
70   ${GUI_CAM}
71   ${GUI_std}
72   ${GEOM_GEOMBase}
73   ${GEOM_GEOMFiltersSelection}
74   ${GEOM_GEOMObject}
75   SMESHFiltersSelection
76   SMDS
77   SMESHControls
78   SMESHObject
79   SMESHEngine
80 )
81
82 # --- headers ---
83
84 # header files / to be processed by moc
85 SET(_moc_HEADERS
86   SMESHGUI.h
87   SMESHGUI_PatternWidget.h
88   SMESHGUI_MeshPatternDlg.h
89   SMESHGUI_CreatePatternDlg.h
90   SMESHGUI_NodesDlg.h
91   SMESHGUI_SpinBox.h
92   SMESHGUI_TransparencyDlg.h
93   SMESHGUI_ClippingDlg.h
94   SMESHGUI_GroupDlg.h
95   SMESHGUI_RemoveNodesDlg.h
96   SMESHGUI_RemoveElementsDlg.h
97   SMESHGUI_MeshInfo.h
98   SMESHGUI_Measurements.h
99   SMESHGUI_Preferences_ScalarBarDlg.h
100   SMESHGUI_AddMeshElementDlg.h
101   SMESHGUI_GroupOnShapeDlg.h
102   SMESHGUI_FileInfoDlg.h
103   SMESHGUI_FilterDlg.h
104   SMESHGUI_FilterLibraryDlg.h
105   SMESHGUI_SingleEditDlg.h
106   SMESHGUI_MultiEditDlg.h
107   SMESHGUI_DeleteGroupDlg.h
108   SMESHGUI_GroupOpDlg.h
109   SMESHGUI_FaceGroupsSeparatedByEdgesDlg.h
110   SMESHGUI_SmoothingDlg.h
111   SMESHGUI_RenumberingDlg.h
112   SMESHGUI_ExtrusionDlg.h
113   SMESHGUI_ExtrusionAlongPathDlg.h
114   SMESHGUI_RevolutionDlg.h
115   SMESHGUI_RotationDlg.h
116   SMESHGUI_TranslationDlg.h
117   SMESHGUI_ScaleDlg.h
118   SMESHGUI_OffsetDlg.h
119   SMESHGUI_SymmetryDlg.h
120   SMESHGUI_SewingDlg.h
121   SMESHGUI_DuplicateNodesDlg.h
122   SMESHGUI_MergeDlg.h
123   SMESHGUI_CreatePolyhedralVolumeDlg.h
124   SMESHGUI_Operation.h
125   SMESHGUI_SelectionOp.h
126   SMESHGUI_Dialog.h
127   SMESHGUI_MeshDlg.h
128   SMESHGUI_MeshOp.h
129   SMESHGUI_Hypotheses.h
130   SMESHGUI_ShapeByMeshDlg.h
131   SMESHGUI_AddQuadraticElementDlg.h
132   SMESHGUI_ConvToQuadDlg.h
133   SMESHGUI_ConvToQuadOp.h
134   SMESHGUI_BuildCompoundDlg.h
135   SMESHGUI_ComputeDlg.h
136   SMESHGUI_MakeNodeAtPointDlg.h
137   SMESHGUI_MeshInfosBox.h
138   SMESHGUI_Make2DFrom3DOp.h
139   SMESHGUI_MakeFull2DFrom3DOp.h
140   SMESHGUI_FindElemByPointDlg.h
141   SMESHGUI_MeshOrderDlg.h
142   SMESHGUI_CopyMeshDlg.h
143   SMESHGUI_MeshOrderOp.h
144   SMESHGUI_PreviewDlg.h
145   SMESHGUI_ReorientFacesDlg.h
146   SMESHGUI_PropertiesDlg.h
147   SMESHGUI_Add0DElemsOnAllNodesDlg.h
148   SMESHGUI_FieldSelectorWdg.h
149   SMESHGUI_DisplayEntitiesDlg.h
150   SMESHGUI_SplitBiQuad.h
151   SMESHGUI_IdPreview.h
152   SMESHGUI_PreVisualObj.h
153   SMESHGUI_MG_ADAPTDRIVER.h
154   SMESHGUI_MgAdaptDlg.h
155   SMESHGUI_HomardAdaptDlg.h
156   SMESHGUI_HomardBoundaryDlg.h
157   SMESHGUI_HomardListGroup.h
158   SMESHGUI_RemoveNodeReconnectionDlg.h
159   SMESHGUI_AddNodeOnSegmentDlg.h
160   SMESHGUI_AddNodeOnFaceDlg.h
161   SMESHGUI_InteractiveOp.h
162   SMESHGUI_CreateDualMeshDlg.h
163   SMESHGUI_CreateDualMeshOp.h
164 )
165
166 # header files / no moc processing
167 SET(_other_HEADERS
168   SMESHGUI_Operations.h
169   SMESHGUI_Utils.h
170   SMESHGUI_HypothesesUtils.h
171   SMESHGUI_Selection.h
172   SMESHGUI_VTKUtils.h
173   SMESHGUI_Displayer.h
174   SMESHGUI_GEOMGenUtils.h
175   SMESHGUI_MeshUtils.h
176   SMESHGUI_FilterUtils.h
177   SMESHGUI_PatternUtils.h
178   SMESHGUI_GroupUtils.h
179   SMESHGUI_XmlHandler.h
180   SMESHGUI_Filter.h
181   SMESHGUI_MeshEditPreview.h
182   SMESHGUI_IdValidator.h
183   SMESHGUI_FileValidator.h
184   SMESHGUI_SelectionProxy.h
185   SMESH_SMESHGUI.hxx
186   SMESHGUI_HomardUtils.h
187 )
188
189 # header files / to install
190 SET(SMESH_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
191
192 # --- sources ---
193
194 # sources / moc wrappings
195 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
196
197 # sources / static
198 SET(_other_SOURCES
199   SMESHGUI.cxx
200   SMESHGUI_PatternWidget.cxx
201   SMESHGUI_MeshPatternDlg.cxx
202   SMESHGUI_CreatePatternDlg.cxx
203   SMESHGUI_NodesDlg.cxx
204   SMESHGUI_SpinBox.cxx
205   SMESHGUI_TransparencyDlg.cxx
206   SMESHGUI_ClippingDlg.cxx
207   SMESHGUI_GroupDlg.cxx
208   SMESHGUI_RemoveNodesDlg.cxx
209   SMESHGUI_RemoveElementsDlg.cxx
210   SMESHGUI_SelectionProxy.cxx
211   SMESHGUI_MeshInfo.cxx
212   SMESHGUI_Measurements.cxx
213   SMESHGUI_Preferences_ScalarBarDlg.cxx
214   SMESHGUI_AddMeshElementDlg.cxx
215   SMESHGUI_FilterDlg.cxx
216   SMESHGUI_FilterLibraryDlg.cxx
217   SMESHGUI_SingleEditDlg.cxx
218   SMESHGUI_MultiEditDlg.cxx
219   SMESHGUI_DeleteGroupDlg.cxx
220   SMESHGUI_GroupOpDlg.cxx
221   SMESHGUI_FaceGroupsSeparatedByEdgesDlg.cxx
222   SMESHGUI_SmoothingDlg.cxx
223   SMESHGUI_RenumberingDlg.cxx
224   SMESHGUI_ExtrusionDlg.cxx
225   SMESHGUI_ExtrusionAlongPathDlg.cxx
226   SMESHGUI_RevolutionDlg.cxx
227   SMESHGUI_RotationDlg.cxx
228   SMESHGUI_TranslationDlg.cxx
229   SMESHGUI_ScaleDlg.cxx
230   SMESHGUI_OffsetDlg.cxx
231   SMESHGUI_SymmetryDlg.cxx
232   SMESHGUI_SewingDlg.cxx
233   SMESHGUI_DuplicateNodesDlg.cxx
234   SMESHGUI_MergeDlg.cxx
235   SMESHGUI_CreatePolyhedralVolumeDlg.cxx
236   SMESHGUI_Operation.cxx
237   SMESHGUI_SelectionOp.cxx
238   SMESHGUI_Dialog.cxx
239   SMESHGUI_MeshDlg.cxx
240   SMESHGUI_MeshOp.cxx
241   SMESHGUI_Hypotheses.cxx
242   SMESHGUI_ShapeByMeshDlg.cxx
243   SMESHGUI_AddQuadraticElementDlg.cxx
244   SMESHGUI_ConvToQuadDlg.cxx
245   SMESHGUI_ConvToQuadOp.cxx
246   SMESHGUI_BuildCompoundDlg.cxx
247   SMESHGUI_ComputeDlg.cxx
248   SMESHGUI_MakeNodeAtPointDlg.cxx
249   SMESHGUI_GroupOnShapeDlg.cxx
250   SMESHGUI_FileInfoDlg.cxx
251   SMESHGUI_MeshInfosBox.cxx
252   SMESHGUI_Make2DFrom3DOp.cxx
253   SMESHGUI_MakeFull2DFrom3DOp.cxx
254   SMESHGUI_FindElemByPointDlg.cxx
255   SMESHGUI_MeshOrderDlg.cxx
256   SMESHGUI_CopyMeshDlg.cxx
257   SMESHGUI_MeshOrderOp.cxx
258   SMESHGUI_PreviewDlg.cxx
259   SMESHGUI_ReorientFacesDlg.cxx
260   SMESHGUI_PropertiesDlg.cxx
261   SMESHGUI_Add0DElemsOnAllNodesDlg.cxx
262   SMESHGUI_Utils.cxx
263   SMESHGUI_HypothesesUtils.cxx
264   SMESHGUI_Selection.cxx
265   SMESHGUI_VTKUtils.cxx
266   SMESHGUI_Displayer.cxx
267   SMESHGUI_GEOMGenUtils.cxx
268   SMESHGUI_MeshUtils.cxx
269   SMESHGUI_FilterUtils.cxx
270   SMESHGUI_PatternUtils.cxx
271   SMESHGUI_GroupUtils.cxx
272   SMESHGUI_XmlHandler.cxx
273   SMESHGUI_Filter.cxx
274   SMESHGUI_MeshEditPreview.cxx
275   SMESHGUI_FileValidator.cxx
276   SMESHGUI_FieldSelectorWdg.cxx
277   SMESHGUI_DisplayEntitiesDlg.cxx
278   SMESHGUI_SplitBiQuad.cxx
279   SMESHGUI_PreVisualObj.cxx
280   SMESHGUI_IdPreview.cxx
281   SMESHGUI_MG_ADAPTDRIVER.cxx
282   SMESHGUI_MgAdaptDlg.cxx
283   SMESHGUI_HomardUtils.cxx
284   SMESHGUI_HomardAdaptDlg.cxx
285   SMESHGUI_HomardBoundaryDlg.cxx
286   SMESHGUI_HomardListGroup.cxx
287   SMESHGUI_RemoveNodeReconnectionDlg.cxx
288   SMESHGUI_AddNodeOnSegmentDlg.cxx
289   SMESHGUI_AddNodeOnFaceDlg.cxx
290   SMESHGUI_InteractiveOp.cxx
291   SMESHGUI_CreateDualMeshDlg.cxx
292   SMESHGUI_CreateDualMeshOp.cxx
293 )
294
295 # sources / to compile
296 SET(SMESH_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
297
298 # --- resources ---
299
300 # resource files / to be processed by lrelease
301 SET(_ts_RESOURCES
302   SMESH_images.ts
303   SMESH_msg_en.ts
304   SMESH_msg_fr.ts
305   SMESH_msg_ja.ts
306   SMESHGUI_Homard_msg_en.ts
307   SMESHGUI_Homard_msg_fr.ts
308   SMESHGUI_Homard_msg_ja.ts
309 )
310
311 # --- rules ---
312
313 ADD_LIBRARY(SMESH ${SMESH_SOURCES})
314 TARGET_LINK_LIBRARIES(SMESH ${_link_LIBRARIES} )
315 INSTALL(TARGETS SMESH EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
316
317 INSTALL(FILES ${SMESH_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
318
319 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_SMESH_INSTALL_RES_DATA}")