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