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