1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 ADD_SUBDIRECTORY(MyDlgRef)
25 # additional include directories
28 ${PYTHON_INCLUDE_DIRS}
29 ${OMNIORB_INCLUDE_DIR}
30 ${LIBXML2_INCLUDE_DIR}
34 ${KERNEL_INCLUDE_DIRS}
38 ${PROJECT_BINARY_DIR}/idl
39 ${CMAKE_CURRENT_SOURCE_DIR}
40 ${CMAKE_CURRENT_BINARY_DIR}
41 ${CMAKE_CURRENT_SOURCE_DIR}/MyDlgRef
42 ${CMAKE_CURRENT_BINARY_DIR}/MyDlgRef
43 ${PROJECT_SOURCE_DIR}/src/HEXABLOCK
46 # additional preprocessor / compiler flags
49 ${OMNIORB_DEFINITIONS}
55 ADD_DEFINITIONS(-DNOGDI -DNOMINMAX)
58 # libraries to link to
65 ${KERNEL_SalomeLifeCycleCORBA}
72 # header files / to be processed by moc
75 HEXABLOCKGUI_VtkDocumentGraphicView.hxx
76 HEXABLOCKGUI_DocumentPanel.hxx
77 HEXABLOCKGUI_DocumentDelegate.hxx
78 HEXABLOCKGUI_DocumentSelectionModel.hxx
79 HEXABLOCKGUI_DocumentModel.hxx
80 kmodelindexproxymapper.hxx
81 klinkitemselectionmodel.hxx
82 MyBasicGUI_PointDlg.hxx
83 MyGEOMBase_Skeleton.hxx
86 # header files / no moc processing
88 HEXABLOCKGUI_Export.hxx
94 # sources / moc wrappings
95 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
101 HEXABLOCKGUI_Exception.hxx
102 HEXABLOCKGUI_Exception.cxx
103 HEXABLOCKGUI_Trace.hxx
104 HEXABLOCKGUI_Trace.cxx
105 HEXABLOCKGUI_Resource.hxx
106 HEXABLOCKGUI_Resource.cxx
107 HEXABLOCKGUI_VtkDocumentGraphicView.hxx
108 HEXABLOCKGUI_VtkDocumentGraphicView.cxx
109 HEXABLOCKGUI_OccGraphicView.hxx
110 HEXABLOCKGUI_OccGraphicView.cxx
111 HEXABLOCKGUI_OCCSelector.h
112 HEXABLOCKGUI_OCCSelector.cxx
113 HEXABLOCKGUI_GraphicViewsHandler.hxx
114 HEXABLOCKGUI_GraphicViewsHandler.cxx
115 HEXABLOCKGUI_DocumentModel.hxx
116 HEXABLOCKGUI_DocumentModel.cxx
117 HEXABLOCKGUI_DocumentSelectionModel.hxx
118 HEXABLOCKGUI_DocumentSelectionModel.cxx
119 HEXABLOCKGUI_DocumentItem.hxx
120 HEXABLOCKGUI_DocumentItem.cxx
121 HEXABLOCKGUI_DocumentDelegate.hxx
122 HEXABLOCKGUI_DocumentDelegate.cxx
123 HEXABLOCKGUI_DocumentPanel.hxx
124 HEXABLOCKGUI_DocumentPanel.cxx
125 HEXABLOCKGUI_SalomeTools.hxx
126 HEXABLOCKGUI_SalomeTools.cxx
129 kmodelindexproxymapper.hxx
130 kmodelindexproxymapper.cxx
131 klinkitemselectionmodel.hxx
132 klinkitemselectionmodel.cxx
133 MyGEOMBase_Skeleton.hxx
134 MyGEOMBase_Skeleton.cxx
135 MyBasicGUI_PointDlg.hxx
136 MyBasicGUI_PointDlg.cxx
139 # uic files / to be processed by pyuic
159 Transformation_QTD.ui
166 QuadRevolution_QTD.ui
169 MakeHemiSphere_QTD.ui
171 AddShapeDialog_QTD.ui
175 # scripts / pyuic wrappings
176 QT4_WRAP_UI(_uic_HEADERS ${_pyuic_files})
178 # sources / to compile
179 SET(HEXABLOCK_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
183 # resource files / to be processed by lrelease
185 resources/HEXABLOCK_msg_en.ts
186 resources/HEXABLOCK_msg_fr.ts
187 resources/HEXABLOCK_icons.ts
190 SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/resources/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/resources/SalomeApp.xml INSTALL ${SALOME_HEXABLOCK_INSTALL_RES_DATA})
191 SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/resources/HEXABLOCKCatalog.xml.in ${CMAKE_CURRENT_BINARY_DIR}/resources/HEXABLOCKCatalog.xml INSTALL ${SALOME_HEXABLOCK_INSTALL_RES_DATA})
193 # resource files / static
195 resources/LightApp.xml
196 resources/ModuleHexablock.png
197 resources/ModuleHexablock15x15.png
198 resources/new_document.png
199 resources/load_document.png
200 resources/save_document.png
201 resources/add_vertex.png
202 resources/add_edge.png
203 resources/add_quad.png
204 resources/add_hexa.png
205 resources/add_vector.png
206 resources/add_cylinder.png
207 resources/add_pipe.png
208 resources/make_grid.png
209 resources/make_cylinder.png
210 resources/make_pipe.png
211 resources/make_cylinders.png
212 resources/make_pipes.png
213 resources/remove_hexa.png
214 resources/prism_quad.png
215 resources/join_quad.png
217 resources/disconnect.png
218 resources/cut_edge.png
219 resources/make_transformation.png
220 resources/make_symmetry.png
221 resources/perform_transformation.png
222 resources/perform_symmetry.png
223 resources/assoc_vertex.png
224 resources/assoc_edge.png
225 resources/assoc_quad.png
226 resources/add_geom.png
227 resources/model_info.png
228 resources/add_group.png
229 resources/remove_group.png
230 resources/add_law.png
231 resources/remove_law.png
232 resources/set_propagation.png
233 resources/compute_mesh.png
235 resources/pointonedge.png
236 resources/select1.png
238 resources/point_line_intersection.png
239 resources/pointonface.png
241 resources/build_wire.png
242 resources/quad_revolution.png
243 resources/replace_hexa.png
244 resources/make_hemisphere.png
249 ADD_LIBRARY(HEXABLOCK ${HEXABLOCK_SOURCES})
250 TARGET_LINK_LIBRARIES(HEXABLOCK ${_link_LIBRARIES} )
251 INSTALL(TARGETS HEXABLOCK EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
253 INSTALL(FILES ${HEXABLOCK_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
255 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_HEXABLOCK_INSTALL_RES_DATA}")
257 INSTALL(FILES ${_other_RESOURCES}
258 DESTINATION ${SALOME_HEXABLOCK_INSTALL_RES_DATA})