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