1 # Copyright (C) 2012-2015 CEA/DEN, EDF R&D
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, or (at your option) any later version.
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_DocumentSelectionModel.hxx
78 HEXABLOCKGUI_DocumentModel.hxx
79 kmodelindexproxymapper.hxx
80 klinkitemselectionmodel.hxx
81 MyBasicGUI_PointDlg.hxx
82 MyGEOMBase_Skeleton.hxx
85 # header files / no moc processing
87 HEXABLOCKGUI_Export.hxx
93 # sources / moc wrappings
94 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
100 HEXABLOCKGUI_Exception.hxx
101 HEXABLOCKGUI_Exception.cxx
102 HEXABLOCKGUI_Trace.hxx
103 HEXABLOCKGUI_Trace.cxx
104 HEXABLOCKGUI_Resource.hxx
105 HEXABLOCKGUI_Resource.cxx
106 HEXABLOCKGUI_VtkDocumentGraphicView.hxx
107 HEXABLOCKGUI_VtkDocumentGraphicView.cxx
108 HEXABLOCKGUI_OccGraphicView.hxx
109 HEXABLOCKGUI_OccGraphicView.cxx
110 HEXABLOCKGUI_OCCSelector.h
111 HEXABLOCKGUI_OCCSelector.cxx
112 HEXABLOCKGUI_GraphicViewsHandler.hxx
113 HEXABLOCKGUI_GraphicViewsHandler.cxx
114 HEXABLOCKGUI_DocumentModel.hxx
115 HEXABLOCKGUI_DocumentModel.cxx
116 HEXABLOCKGUI_DocumentSelectionModel.hxx
117 HEXABLOCKGUI_DocumentSelectionModel.cxx
118 HEXABLOCKGUI_DocumentItem.hxx
119 HEXABLOCKGUI_DocumentItem.cxx
120 HEXABLOCKGUI_DocumentPanel.hxx
121 HEXABLOCKGUI_DocumentPanel.cxx
122 HEXABLOCKGUI_SalomeTools.hxx
123 HEXABLOCKGUI_SalomeTools.cxx
126 kmodelindexproxymapper.hxx
127 kmodelindexproxymapper.cxx
128 klinkitemselectionmodel.hxx
129 klinkitemselectionmodel.cxx
130 MyGEOMBase_Skeleton.hxx
131 MyGEOMBase_Skeleton.cxx
132 MyBasicGUI_PointDlg.hxx
133 MyBasicGUI_PointDlg.cxx
136 # uic files / to be processed by pyuic
156 Transformation_QTD.ui
163 QuadRevolution_QTD.ui
166 MakeHemiSphere_QTD.ui
168 AddShapeDialog_QTD.ui
172 # scripts / pyuic wrappings
173 QT4_WRAP_UI(_uic_HEADERS ${_pyuic_files})
175 # sources / to compile
176 SET(HEXABLOCK_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
180 # resource files / to be processed by lrelease
182 resources/HEXABLOCK_msg_en.ts
183 resources/HEXABLOCK_msg_fr.ts
184 resources/HEXABLOCK_msg_ja.ts
185 resources/HEXABLOCK_icons.ts
188 SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/resources/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/resources/SalomeApp.xml INSTALL ${SALOME_HEXABLOCK_INSTALL_RES_DATA})
189 SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/resources/HEXABLOCKCatalog.xml.in ${CMAKE_CURRENT_BINARY_DIR}/resources/HEXABLOCKCatalog.xml INSTALL ${SALOME_HEXABLOCK_INSTALL_RES_DATA})
191 # resource files / static
193 resources/LightApp.xml
194 resources/ModuleHexablock.png
195 resources/ModuleHexablock15x15.png
196 resources/new_document.png
197 resources/load_document.png
198 resources/save_document.png
199 resources/add_vertex.png
200 resources/add_edge.png
201 resources/add_quad.png
202 resources/add_hexa.png
203 resources/add_vector.png
204 resources/add_cylinder.png
205 resources/add_pipe.png
206 resources/make_grid.png
207 resources/make_cylinder.png
208 resources/make_pipe.png
209 resources/make_cylinders.png
210 resources/make_pipes.png
211 resources/remove_hexa.png
212 resources/prism_quad.png
213 resources/join_quad.png
215 resources/disconnect.png
216 resources/cut_edge.png
217 resources/make_transformation.png
218 resources/make_symmetry.png
219 resources/perform_transformation.png
220 resources/perform_symmetry.png
221 resources/assoc_vertex.png
222 resources/assoc_edge.png
223 resources/assoc_quad.png
224 resources/add_geom.png
225 resources/model_info.png
226 resources/add_group.png
227 resources/remove_group.png
228 resources/add_law.png
229 resources/remove_law.png
230 resources/set_propagation.png
231 resources/compute_mesh.png
233 resources/pointonedge.png
234 resources/select1.png
236 resources/point_line_intersection.png
237 resources/pointonface.png
239 resources/build_wire.png
240 resources/quad_revolution.png
241 resources/replace_hexa.png
242 resources/make_hemisphere.png
247 ADD_LIBRARY(HEXABLOCK ${HEXABLOCK_SOURCES})
248 TARGET_LINK_LIBRARIES(HEXABLOCK ${_link_LIBRARIES} )
249 INSTALL(TARGETS HEXABLOCK EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
251 INSTALL(FILES ${HEXABLOCK_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
253 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_HEXABLOCK_INSTALL_RES_DATA}")
255 INSTALL(FILES ${_other_RESOURCES}
256 DESTINATION ${SALOME_HEXABLOCK_INSTALL_RES_DATA})