]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROGUI/CMakeLists.txt
Salome HOME
Merge branch 'BR_H2018_2' of https://codev-tuleap.cea.fr/plugins/git/salome/hydro...
[modules/hydro.git] / src / HYDROGUI / CMakeLists.txt
1 include(../../CMake/Common.cmake)
2 include(../../CMake/UseQT4EXT.cmake)
3 INCLUDE(UseQtExt)
4
5 set(PROJECT_HEADERS 
6     HYDROGUI.h
7     HYDROGUI_AbstractDisplayer.h
8     HYDROGUI_AISShape.h
9     HYDROGUI_AISTrihedron.h
10     HYDROGUI_BathymetryPrs.h
11     HYDROGUI_CalculationDlg.h
12     HYDROGUI_CalculationOp.h
13     HYDROGUI_ChannelDlg.h
14     HYDROGUI_ChannelOp.h
15     HYDROGUI_ColorWidget.h
16     HYDROGUI_CopyPasteOp.h
17     HYDROGUI_CopyPastePositionOp.h
18     HYDROGUI_CurveCreatorProfile.h
19     HYDROGUI_DataBrowser.h
20     HYDROGUI_DataModel.h
21     HYDROGUI_DataModelSync.h
22     HYDROGUI_DataObject.h
23     HYDROGUI_DataOwner.h
24     HYDROGUI_DeleteDlg.h
25     HYDROGUI_DeleteOp.h
26     HYDROGUI_DigueDlg.h
27     HYDROGUI_DigueOp.h
28     HYDROGUI_Displayer.h
29     HYDROGUI_DuplicateOp.h
30     HYDROGUI_ExportImageOp.h
31     HYDROGUI_ExportFileOp.h
32     HYDROGUI_GVSelector.h
33     HYDROGUI_ImagePrs.h
34     HYDROGUI_BasicZoneDlg.h
35     HYDROGUI_ImmersibleZoneDlg.h
36     HYDROGUI_ImmersibleZoneOp.h
37     HYDROGUI_ImportBathymetryDlg.h
38     HYDROGUI_ImportBathymetryOp.h
39     HYDROGUI_ImportImageDlg.h
40     HYDROGUI_ImportImageOp.h
41     HYDROGUI_ImportLandCoverMapOp.h
42     HYDROGUI_ImportLandCoverMapDlg.h
43     HYDROGUI_ImportPolylineOp.h
44     HYDROGUI_ImportBCPolygonOp.h
45     HYDROGUI_ImportSinusXOp.h
46     HYDROGUI_ExportSinusXOp.h
47     HYDROGUI_ExportSinusXDlg.h
48     HYDROGUI_ExportLandCoverMapDlg.h
49     HYDROGUI_InputPanel.h
50     HYDROGUI_LandCoverArgsFilter.h
51     HYDROGUI_LandCoverMapDlg.h
52     HYDROGUI_LandCoverMapOp.h
53     HYDROGUI_LandCoverMapPrs.h
54     HYDROGUI_LocalCSDlg.h
55     HYDROGUI_LocalCSOp.h
56     HYDROGUI_MergePolylinesDlg.h
57     HYDROGUI_MergePolylinesOp.h
58     HYDROGUI_Module.h
59     HYDROGUI_NameValidator.h
60     HYDROGUI_ObjSelector.h
61     HYDROGUI_ObserveImageOp.h
62     HYDROGUI_OCCDisplayer.h
63     HYDROGUI_OCCSelector.h
64     HYDROGUI_Operation.h
65     HYDROGUI_Operations.h
66     HYDROGUI_Poly3DDlg.h
67     HYDROGUI_Poly3DOp.h
68     HYDROGUI_PolylineDlg.h
69     HYDROGUI_PolylineOp.h
70     HYDROGUI_ProfileDlg.h
71     HYDROGUI_ProfileOp.h
72     HYDROGUI_ProfileInterpolateDlg.h
73     HYDROGUI_ProfileInterpolateOp.h
74     HYDROGUI_Prs.h
75     HYDROGUI_PrsDriver.h
76     HYDROGUI_PrsImage.h
77     HYDROGUI_PrsImageDriver.h
78     HYDROGUI_PrsImageFrame.h
79     HYDROGUI_PrsPolyline.h
80     HYDROGUI_PrsPolylineDriver.h
81     HYDROGUI_PrsZone.h
82     HYDROGUI_PrsZoneDriver.h
83     HYDROGUI_Region.h
84     HYDROGUI_RemoveImageRefsOp.h
85     HYDROGUI_Shape.h
86     HYDROGUI_Polyline.h
87     HYDROGUI_ShapeBathymetry.h
88     HYDROGUI_ShapeImage.h
89     HYDROGUI_ShapeLandCoverMap.h
90     HYDROGUI_ShowHideOp.h
91     HYDROGUI_SplitPolylinesDlg.h
92     HYDROGUI_SplitPolylinesOp.h
93     HYDROGUI_StreamDlg.h
94     HYDROGUI_StreamOp.h
95     HYDROGUI_LineEditDoubleValidator.h
96     HYDROGUI_StricklerTableDlg.h
97     HYDROGUI_StricklerTableOp.h
98     HYDROGUI_StricklerTypeComboBox.h
99     HYDROGUI_SubmersibleOp.h
100     HYDROGUI_Tool.h
101     HYDROGUI_Tool2.h
102     HYDROGUI_TwoImagesDlg.h
103     HYDROGUI_TwoImagesOp.h
104     HYDROGUI_UpdateFlags.h
105     HYDROGUI_UpdateObjectOp.h
106     HYDROGUI_VisualStateOp.h
107     HYDROGUI_VTKPrs.h
108     HYDROGUI_VTKPrsBathymetry.h
109     HYDROGUI_VTKPrsBathymetryDriver.h
110     HYDROGUI_VTKPrsDisplayer.h
111     HYDROGUI_VTKPrsDriver.h
112     HYDROGUI_VTKPrsShape.h
113     HYDROGUI_VTKPrsShapeDriver.h
114     HYDROGUI_Wizard.h
115     HYDROGUI_Zone.h
116     HYDROGUI_ImportGeomObjectOp.h
117     HYDROGUI_ImportObstacleFromFileOp.h
118     HYDROGUI_ExportCalculationOp.h
119     HYDROGUI_GeomObjectDlg.h
120     HYDROGUI_SetColorOp.h
121     HYDROGUI_ColorDlg.h
122     HYDROGUI_ImportProfilesOp.h
123     HYDROGUI_GeoreferencementDlg.h
124     HYDROGUI_GeoreferencementOp.h
125     HYDROGUI_Actor.h
126     HYDROGUI_BathymetryBoundsOp.h
127     HYDROGUI_BathymetrySelectionOp.h
128     HYDROGUI_BathymetryOp.h
129     HYDROGUI_TranslateObstacleDlg.h
130     HYDROGUI_TranslateObstacleOp.h
131     HYDROGUI_ListModel.h
132     HYDROGUI_ZLevelsDlg.h
133     HYDROGUI_ZLevelsOp.h
134     HYDROGUI_OrderedListWidget.h
135     HYDROGUI_ListSelector.h
136     HYDROGUI_ZLayers.h
137     HYDROGUI_PriorityWidget.h
138     HYDROGUI_PriorityTableModel.h
139     HYDROGUI_RiverBottomDlg.h
140     HYDROGUI_RiverBottomOp.h
141     HYDROGUI_ViewerDlg.h
142     HYDROGUI_ObjComboBox.h
143     HYDROGUI_PolylineExtractionOp.h
144     HYDROGUI_ObjListBox.h
145     HYDROGUI_RecognizeContoursDlg.h
146     HYDROGUI_RecognizeContoursOp.h
147     HYDROGUI_LandCoverColoringOp.h
148     HYDROGUI_SetTransparencyOp.h
149     HYDROGUI_TransparencyDlg.h
150     HYDROGUI_Overview.h
151     HYDROGUI_PolylineStyleOp.h
152     HYDROGUI_PolylineStyleDlg.h
153     HYDROGUI_ZoneTool.h
154     HYDROGUI_RegenerateRegionColorsOp.h
155     HYDROGUI_ZoneSetColorOp.h
156     HYDROGUI_PolyAttrDlg.h
157     HYDROGUI_ShowAttrPolyOp.h
158     HYDROGUI_SetBoundaryTypePolygonOp.h
159     HYDROGUI_SetBoundaryTypePolygonDlg.h
160     HYDROGUI_MeasurementToolOp.h
161     HYDROGUI_MeasurementToolDlg.h
162     HYDROGUI_SIProgressIndicator.h
163     HYDROGUI_ZIProgressIndicator.h
164 )
165
166 QT_WRAP_MOC(PROJECT_HEADERS_MOC ${PROJECT_HEADERS})
167
168 set(PROJECT_SOURCES 
169     HYDROGUI_AbstractDisplayer.cxx
170     HYDROGUI_AISShape.cxx
171     HYDROGUI_AISTrihedron.cxx
172     HYDROGUI_BathymetryPrs.cxx
173     HYDROGUI_CalculationDlg.cxx
174     HYDROGUI_CalculationOp.cxx
175     HYDROGUI_ChannelDlg.cxx
176     HYDROGUI_ChannelOp.cxx
177     HYDROGUI_ColorWidget.cxx
178     HYDROGUI_CopyPasteOp.cxx
179     HYDROGUI_CopyPastePositionOp.cxx
180     HYDROGUI_CurveCreatorProfile.cxx
181     HYDROGUI_DataBrowser.cxx
182     HYDROGUI_DataModel.cxx
183     HYDROGUI_DataModelSync.cxx
184     HYDROGUI_DataObject.cxx
185     HYDROGUI_DataOwner.cxx
186     HYDROGUI_DeleteDlg.cxx
187     HYDROGUI_DeleteOp.cxx
188     HYDROGUI_DigueDlg.cxx
189     HYDROGUI_DigueOp.cxx
190     HYDROGUI_Displayer.cxx
191     HYDROGUI_DuplicateOp.cxx
192     HYDROGUI_ExportImageOp.cxx
193     HYDROGUI_ExportFileOp.cxx
194     HYDROGUI_GVSelector.cxx
195     HYDROGUI_ImagePrs.cxx
196     HYDROGUI_BasicZoneDlg.cxx
197     HYDROGUI_ImmersibleZoneDlg.cxx
198     HYDROGUI_ImmersibleZoneOp.cxx
199     HYDROGUI_ImportBathymetryDlg.cxx
200     HYDROGUI_ImportBathymetryOp.cxx
201     HYDROGUI_ImportImageDlg.cxx
202     HYDROGUI_ImportImageOp.cxx
203     HYDROGUI_ImportLandCoverMapOp.cxx
204     HYDROGUI_ImportLandCoverMapDlg.cxx
205     HYDROGUI_ImportPolylineOp.cxx
206     HYDROGUI_ImportSinusXOp.cxx
207     HYDROGUI_ExportSinusXOp.cxx
208     HYDROGUI_ExportSinusXDlg.cxx
209     HYDROGUI_ImportBCPolygonOp.cxx
210     HYDROGUI_ExportLandCoverMapDlg.cxx
211     HYDROGUI_InputPanel.cxx
212     HYDROGUI_LandCoverArgsFilter.cxx
213     HYDROGUI_LandCoverMapDlg.cxx
214     HYDROGUI_LandCoverMapOp.cxx
215     HYDROGUI_LandCoverMapPrs.cxx
216     HYDROGUI_LocalCSDlg.cxx
217     HYDROGUI_LocalCSOp.cxx
218     HYDROGUI_MergePolylinesDlg.cxx
219     HYDROGUI_MergePolylinesOp.cxx
220     HYDROGUI_Module.cxx
221     HYDROGUI_NameValidator.cxx
222     HYDROGUI_ObjSelector.cxx
223     HYDROGUI_ObserveImageOp.cxx
224     HYDROGUI_OCCDisplayer.cxx
225     HYDROGUI_OCCSelector.cxx
226     HYDROGUI_Operation.cxx
227     HYDROGUI_Operations.cxx
228     HYDROGUI_Poly3DDlg.cxx
229     HYDROGUI_Poly3DOp.cxx
230     HYDROGUI_Polyline.cxx
231     HYDROGUI_PolylineDlg.cxx
232     HYDROGUI_PolylineOp.cxx
233     HYDROGUI_ProfileDlg.cxx
234     HYDROGUI_ProfileOp.cxx
235     HYDROGUI_ProfileInterpolateDlg.cxx
236     HYDROGUI_ProfileInterpolateOp.cxx
237     HYDROGUI_Prs.cxx
238     HYDROGUI_PrsDriver.cxx
239     HYDROGUI_PrsImage.cxx
240     HYDROGUI_PrsImageDriver.cxx
241     HYDROGUI_PrsImageFrame.cxx
242     HYDROGUI_PrsPolyline.cxx
243     HYDROGUI_PrsPolylineDriver.cxx
244     HYDROGUI_PrsZone.cxx
245     HYDROGUI_PrsZoneDriver.cxx
246     HYDROGUI_Region.cxx
247     HYDROGUI_RemoveImageRefsOp.cxx
248     HYDROGUI_Shape.cxx
249     HYDROGUI_ShapeBathymetry.cxx
250     HYDROGUI_ShapeImage.cxx
251     HYDROGUI_ShapeLandCoverMap.cxx
252     HYDROGUI_ShowHideOp.cxx
253     HYDROGUI_StreamDlg.cxx
254     HYDROGUI_StreamOp.cxx
255     HYDROGUI_LineEditDoubleValidator.cxx
256     HYDROGUI_StricklerTableDlg.cxx
257     HYDROGUI_StricklerTableOp.cxx
258     HYDROGUI_StricklerTypeComboBox.cxx
259     HYDROGUI_SplitPolylinesDlg.cxx
260     HYDROGUI_SplitPolylinesOp.cxx
261     HYDROGUI_SubmersibleOp.cxx
262     HYDROGUI_Tool.cxx
263     HYDROGUI_Tool2.cxx
264     HYDROGUI_TwoImagesDlg.cxx
265     HYDROGUI_TwoImagesOp.cxx
266     HYDROGUI_UpdateObjectOp.cxx
267     HYDROGUI_VisualStateOp.cxx
268     HYDROGUI_VTKPrs.cxx
269     HYDROGUI_VTKPrsBathymetry.cxx
270     HYDROGUI_VTKPrsBathymetryDriver.cxx
271     HYDROGUI_VTKPrsDisplayer.cxx
272     HYDROGUI_VTKPrsDriver.cxx
273     HYDROGUI_VTKPrsShape.cxx
274     HYDROGUI_VTKPrsShapeDriver.cxx
275     HYDROGUI_Wizard.cxx
276     HYDROGUI_Zone.cxx
277     HYDROGUI_ImportGeomObjectOp.cxx
278     HYDROGUI_ImportObstacleFromFileOp.cxx
279     HYDROGUI_ExportCalculationOp.cxx
280     HYDROGUI_GeomObjectDlg.cxx
281     HYDROGUI_SetColorOp.cxx
282     HYDROGUI_ColorDlg.cxx
283     HYDROGUI_ImportProfilesOp.cxx
284     HYDROGUI_GeoreferencementDlg.cxx
285     HYDROGUI_GeoreferencementOp.cxx
286     HYDROGUI_Actor.cxx
287     HYDROGUI_BathymetryBoundsOp.cxx
288     HYDROGUI_BathymetrySelectionOp.cxx
289     HYDROGUI_BathymetryOp.cxx
290     HYDROGUI_TranslateObstacleDlg.cxx
291     HYDROGUI_TranslateObstacleOp.cxx
292     HYDROGUI_ListModel.cxx
293     HYDROGUI_ZLevelsDlg.cxx
294     HYDROGUI_ZLevelsOp.cxx
295     HYDROGUI_OrderedListWidget.cxx
296     HYDROGUI_ListSelector.cxx
297     HYDROGUI_ZLayers.cxx
298     HYDROGUI_ZLayers2.cxx
299     HYDROGUI_ZLayers3.cxx
300     HYDROGUI_PriorityWidget.cxx
301     HYDROGUI_PriorityTableModel.cxx
302     HYDROGUI_RiverBottomDlg.cxx
303     HYDROGUI_RiverBottomOp.cxx
304     HYDROGUI_ViewerDlg.cxx
305     HYDROGUI_ObjComboBox.cxx
306     HYDROGUI_PolylineExtractionOp.cxx
307     HYDROGUI_ObjListBox.cxx
308     HYDROGUI_RecognizeContoursDlg.cxx
309     HYDROGUI_RecognizeContoursOp.cxx
310     HYDROGUI_LandCoverColoringOp.cxx
311     HYDROGUI_SetTransparencyOp.cxx
312     HYDROGUI_TransparencyDlg.cxx
313     HYDROGUI_Overview.cxx
314     HYDROGUI_PolylineStyleOp.cxx
315     HYDROGUI_PolylineStyleDlg.cxx
316     HYDROGUI_ZoneTool.cxx
317     HYDROGUI_RegenerateRegionColorsOp.cxx
318     HYDROGUI_ZoneSetColorOp.cxx
319     HYDROGUI_PolyAttrDlg.cxx
320     HYDROGUI_ShowAttrPolyOp.cxx
321     HYDROGUI_SetBoundaryTypePolygonOp.cxx
322     HYDROGUI_SetBoundaryTypePolygonDlg.cxx
323     HYDROGUI_MeasurementToolOp.cxx
324     HYDROGUI_MeasurementToolDlg.cxx
325     HYDROGUI_SIProgressIndicator.cxx
326     HYDROGUI_ZIProgressIndicator.cxx
327 )
328
329 add_definitions(
330   -DHYDROGUI_EXPORTS
331   ${CAS_DEFINITIONS}
332   ${OMNIORB_DEFINITIONS}
333   ${QT_DEFINITIONS}
334 #  $(GUI_CXXFLAGS)
335   ${GUI_DEFINITIONS}
336 #  $(GEOM_CXXFLAGS)
337   ${GEOM_DEFINITIONS}
338 )
339
340 include_directories(
341   ${CAS_INCLUDE_DIRS}
342   ${QT_INCLUDES}
343   ${GUI_INCLUDE_DIRS}
344   ${GEOM_INCLUDE_DIRS}
345   ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib
346   ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROData
347   ${VTK_INCLUDE_DIRS}
348 )
349
350
351 add_library(HYDROGUI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${PROJECT_HEADERS_MOC})
352 target_link_libraries(HYDROGUI HYDROData shapelib
353     ${CAS_TKV3d} ${CAS_TKTopAlgo} ${CAS_TKBrep} ${CAS_TKBO}
354     ${GUI_LightApp} ${GUI_CAM} ${GUI_suit} ${GUI_qtx} ${GUI_ObjBrowser} ${GUI_GraphicsView} ${GUI_std} 
355     ${GUI_Event} ${GUI_OCCViewer} ${GEOM_GEOM} ${GEOM_GEOMBase} ${GEOM_CurveCreator}
356     ${VTK_LIBRARIES} ${SVTK} ${SalomeObject} ${SalomePrs}
357     )
358
359 INSTALL(TARGETS HYDROGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
360
361 set(PROJECT_LIBRARIES shapelib HYDROGUI)
362
363 set(GUITS_SOURCES
364   resources/HYDROGUI_images.ts
365   resources/HYDROGUI_msg_en.ts
366   resources/HYDROGUI_msg_fr.ts
367 )
368
369 #include(../../CMake/CommonInstall.cmake)
370
371 # resources
372 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_HYDRO_INSTALL_RES_DATA}")
373
374 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
375 FILE(GLOB GUIXML_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml")
376 FILE(GLOB GUITXT_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.txt")
377 SET(GUI_DATA ${GUIPNG_DATA} ${GUIXML_DATA} ${GUITXT_DATA})
378 INSTALL(FILES ${GUI_DATA} DESTINATION ${SALOME_HYDRO_INSTALL_RES_DATA})