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