Salome HOME
bug #263: boundary polyline for bathymetry
[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_CalculationDlg.h
8     HYDROGUI_CalculationOp.h
9     HYDROGUI_ChannelDlg.h
10     HYDROGUI_ChannelOp.h
11     HYDROGUI_ColorWidget.h
12     HYDROGUI_CopyPasteOp.h
13     HYDROGUI_DataBrowser.h
14     HYDROGUI_DataModel.h
15     HYDROGUI_DataObject.h
16     HYDROGUI_DeleteOp.h
17     HYDROGUI_DigueDlg.h
18     HYDROGUI_DigueOp.h
19     HYDROGUI_Displayer.h
20     HYDROGUI_ExportImageOp.h
21     HYDROGUI_GVSelector.h
22     HYDROGUI_ImmersibleZoneDlg.h
23     HYDROGUI_ImmersibleZoneOp.h
24     HYDROGUI_ImportBathymetryDlg.h
25     HYDROGUI_ImportBathymetryOp.h
26     HYDROGUI_ImportImageDlg.h
27     HYDROGUI_ImportImageOp.h
28     HYDROGUI_InputPanel.h
29     HYDROGUI_Module.h
30     HYDROGUI_NameValidator.h
31     HYDROGUI_ObjSelector.h
32     HYDROGUI_ObserveImageOp.h
33     HYDROGUI_OCCDisplayer.h
34     HYDROGUI_OCCSelector.h
35     HYDROGUI_Operation.h
36     HYDROGUI_Operations.h
37     HYDROGUI_Poly3DDlg.h
38     HYDROGUI_Poly3DOp.h
39     HYDROGUI_PolylineDlg.h
40     HYDROGUI_PolylineOp.h
41     HYDROGUI_ProfileDlg.h
42     HYDROGUI_ProfileOp.h
43     HYDROGUI_Prs.h
44     HYDROGUI_PrsDriver.h
45     HYDROGUI_PrsImage.h
46     HYDROGUI_PrsImageDriver.h
47     HYDROGUI_PrsImageFrame.h
48     HYDROGUI_PrsPolyline.h
49     HYDROGUI_PrsPolylineDriver.h
50     HYDROGUI_PrsZone.h
51     HYDROGUI_PrsZoneDriver.h
52     HYDROGUI_Region.h
53     HYDROGUI_RemoveImageRefsOp.h
54     HYDROGUI_Shape.h
55     HYDROGUI_ShowHideOp.h
56     HYDROGUI_StreamDlg.h
57     HYDROGUI_StreamOp.h
58     HYDROGUI_Tool.h
59     HYDROGUI_TwoImagesDlg.h
60     HYDROGUI_TwoImagesOp.h
61     HYDROGUI_UpdateFlags.h
62     HYDROGUI_UpdateObjectOp.h
63     HYDROGUI_VisualStateOp.h
64     HYDROGUI_VTKPrs.h
65     HYDROGUI_VTKPrsBathymetry.h
66     HYDROGUI_VTKPrsBathymetryDriver.h
67     HYDROGUI_VTKPrsDisplayer.h
68     HYDROGUI_VTKPrsDriver.h
69     HYDROGUI_VTKPrsShape.h
70     HYDROGUI_VTKPrsShapeDriver.h
71     HYDROGUI_Wizard.h
72     HYDROGUI_Zone.h
73     HYDROGUI_ImportGeomObjectOp.h
74     HYDROGUI_ImportObstacleFromFileOp.h
75     HYDROGUI_ExportCalculationOp.h
76     HYDROGUI_GeomObjectDlg.h
77     HYDROGUI_SetColorOp.h
78     HYDROGUI_ColorDlg.h
79     HYDROGUI_ImportProfilesOp.h
80     HYDROGUI_GeoreferencementDlg.h
81     HYDROGUI_GeoreferencementOp.h
82     HYDROGUI_Actor.h
83     HYDROGUI_BathymetryBoundsOp.h
84 )
85
86 QT4_WRAP_CPP(PROJECT_HEADERS_MOC ${PROJECT_HEADERS})
87
88 set(PROJECT_SOURCES 
89     HYDROGUI_AbstractDisplayer.cxx
90     HYDROGUI_CalculationDlg.cxx
91     HYDROGUI_CalculationOp.cxx
92     HYDROGUI_ChannelDlg.cxx
93     HYDROGUI_ChannelOp.cxx
94     HYDROGUI_ColorWidget.cxx
95     HYDROGUI_CopyPasteOp.cxx
96     HYDROGUI_DataBrowser.cxx
97     HYDROGUI_DataModel.cxx
98     HYDROGUI_DataObject.cxx
99     HYDROGUI_DeleteOp.cxx
100     HYDROGUI_DigueDlg.cxx
101     HYDROGUI_DigueOp.cxx
102     HYDROGUI_Displayer.cxx
103     HYDROGUI_ExportImageOp.cxx
104     HYDROGUI_GVSelector.cxx
105     HYDROGUI_ImmersibleZoneDlg.cxx
106     HYDROGUI_ImmersibleZoneOp.cxx
107     HYDROGUI_ImportBathymetryDlg.cxx
108     HYDROGUI_ImportBathymetryOp.cxx
109     HYDROGUI_ImportImageDlg.cxx
110     HYDROGUI_ImportImageOp.cxx
111     HYDROGUI_InputPanel.cxx
112     HYDROGUI_Module.cxx
113     HYDROGUI_NameValidator.cxx
114     HYDROGUI_ObjSelector.cxx
115     HYDROGUI_ObserveImageOp.cxx
116     HYDROGUI_OCCDisplayer.cxx
117     HYDROGUI_OCCSelector.cxx
118     HYDROGUI_Operation.cxx
119     HYDROGUI_Operations.cxx
120     HYDROGUI_Poly3DDlg.cxx
121     HYDROGUI_Poly3DOp.cxx
122     HYDROGUI_PolylineDlg.cxx
123     HYDROGUI_PolylineOp.cxx
124     HYDROGUI_ProfileDlg.cxx
125     HYDROGUI_ProfileOp.cxx
126     HYDROGUI_Prs.cxx
127     HYDROGUI_PrsDriver.cxx
128     HYDROGUI_PrsImage.cxx
129     HYDROGUI_PrsImageDriver.cxx
130     HYDROGUI_PrsImageFrame.cxx
131     HYDROGUI_PrsPolyline.cxx
132     HYDROGUI_PrsPolylineDriver.cxx
133     HYDROGUI_PrsZone.cxx
134     HYDROGUI_PrsZoneDriver.cxx
135     HYDROGUI_Region.cxx
136     HYDROGUI_RemoveImageRefsOp.cxx
137     HYDROGUI_Shape.cxx
138     HYDROGUI_ShowHideOp.cxx
139     HYDROGUI_StreamDlg.cxx
140     HYDROGUI_StreamOp.cxx
141     HYDROGUI_Tool.cxx
142     HYDROGUI_TwoImagesDlg.cxx
143     HYDROGUI_TwoImagesOp.cxx
144     HYDROGUI_UpdateObjectOp.cxx
145     HYDROGUI_VisualStateOp.cxx
146     HYDROGUI_VTKPrs.cxx
147     HYDROGUI_VTKPrsBathymetry.cxx
148     HYDROGUI_VTKPrsBathymetryDriver.cxx
149     HYDROGUI_VTKPrsDisplayer.cxx
150     HYDROGUI_VTKPrsDriver.cxx
151     HYDROGUI_VTKPrsShape.cxx
152     HYDROGUI_VTKPrsShapeDriver.cxx
153     HYDROGUI_Wizard.cxx
154     HYDROGUI_Zone.cxx
155     HYDROGUI_ImportGeomObjectOp.cxx
156     HYDROGUI_ImportObstacleFromFileOp.cxx
157     HYDROGUI_ExportCalculationOp.cxx
158     HYDROGUI_GeomObjectDlg.cxx
159     HYDROGUI_SetColorOp.cxx
160     HYDROGUI_ColorDlg.cxx
161     HYDROGUI_ImportProfilesOp.cxx
162     HYDROGUI_GeoreferencementDlg.cxx
163     HYDROGUI_GeoreferencementOp.cxx
164     HYDROGUI_Actor.cxx
165     HYDROGUI_BathymetryBoundsOp.cxx
166 )
167
168 add_definitions(
169   -DHYDROGUI_EXPORTS
170   ${CAS_DEFINITIONS}
171   ${OMNIORB_DEFINITIONS}
172   ${QT_DEFINITIONS}
173 #  $(GUI_CXXFLAGS)
174   ${GUI_DEFINITIONS}
175 #  $(GEOM_CXXFLAGS)
176   ${GEOM_DEFINITIONS}
177 )
178
179 include_directories(
180   ${CAS_INCLUDE_DIRS}
181   ${QT_INCLUDES}
182 #  ${GUI_ROOT_DIR}/include/salome
183   ${GUI_INCLUDE_DIRS}
184 #  ${GEOM_ROOT_DIR}/include/salome
185   ${GEOM_INCLUDE_DIRS}
186   ${CMAKE_CURRENT_SOURCE_DIR}
187   ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROData
188   ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROCurveCreator
189   ${VTK_INCLUDE_DIRS}
190 )
191
192
193 add_library(HYDROGUI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${PROJECT_HEADERS_MOC})
194 target_link_libraries(HYDROGUI HYDROData HYDROCurveCreator
195     ${CAS_TKV3d} ${CAS_TKTopAlgo} ${CAS_TKBrep} ${CAS_TKBO}
196     ${GUI_LightApp} ${GUI_CAM} ${GUI_suit} ${GUI_qtx} ${GUI_ObjBrowser} ${GUI_GraphicsView} ${GUI_std} 
197     ${GUI_Event} ${GUI_OCCViewer} ${GEOM_GEOM} ${GEOM_GEOMBase}
198     ${VTK_LIBRARIES} ${SVTK} ${SalomeObject} ${SalomePrs}
199     )
200 INSTALL(TARGETS HYDROGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
201
202 set(PROJECT_LIBRARIES HYDROGUI)
203
204 set(GUITS_SOURCES
205   resources/HYDROGUI_images.ts
206   resources/HYDROGUI_msg_en.ts
207   resources/HYDROGUI_msg_fr.ts
208 )
209
210 #include(../../CMake/CommonInstall.cmake)
211
212 # resources
213 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_HYDRO_INSTALL_RES_DATA}")
214
215 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
216 FILE(GLOB GUIXML_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml")
217 SET(GUI_DATA ${GUIPNG_DATA} ${GUIXML_DATA})
218 INSTALL(FILES ${GUI_DATA} DESTINATION ${SALOME_HYDRO_INSTALL_RES_DATA})
219