1 # Copyright (C) 2014-2019 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
25 # additional include directories
26 INCLUDE_DIRECTORIES(${QT_INCLUDES})
28 # additional preprocessor / compiler flags
29 ADD_DEFINITIONS(${QT_DEFINITIONS})
31 SET(UPDATE_TRANSLATION OFF)
35 ModuleBase_ActionInfo.h
36 ModuleBase_ActionType.h
37 ModuleBase_BRepOwner.h
38 ModuleBase_Definitions.h
39 ModuleBase_DoubleSpinBox.h
42 ModuleBase_FilterValidated.h
43 ModuleBase_IErrorMgr.h
45 ModuleBase_IntSpinBox.h
47 ModuleBase_IPropertyPanel.h
48 ModuleBase_ISelection.h
49 ModuleBase_ISelectionActivate.h
50 ModuleBase_IViewWindow.h
52 ModuleBase_IWidgetCreator.h
53 ModuleBase_IWorkshop.h
54 ModuleBase_LabelValue.h
56 ModuleBase_ModelWidget.h
57 ModuleBase_Operation.h
58 ModuleBase_OperationDescription.h
59 ModuleBase_OperationFeature.h
61 ModuleBase_PageGroupBox.h
62 ModuleBase_PageWidget.h
63 ModuleBase_PagedContainer.h
64 ModuleBase_ParamIntSpinBox.h
65 ModuleBase_ParamSpinBox.h
66 ModuleBase_Preferences.h
67 ModuleBase_ResultPrs.h
68 ModuleBase_SelectionValidator.h
71 ModuleBase_ViewerFilters.h
72 ModuleBase_ViewerPrs.h
73 ModuleBase_WidgetAction.h
74 ModuleBase_WidgetBoolValue.h
75 ModuleBase_WidgetChoice.h
76 ModuleBase_WidgetConcealedObjects.h
77 ModuleBase_WidgetCreatorFactory.h
78 ModuleBase_WidgetDoubleValue.h
79 ModuleBase_WidgetEditor.h
80 ModuleBase_WidgetExprEditor.h
81 ModuleBase_WidgetFactory.h
82 ModuleBase_WidgetFeatureSelector.h
83 ModuleBase_WidgetFileSelector.h
84 ModuleBase_WidgetIntValue.h
85 ModuleBase_WidgetLabel.h
86 ModuleBase_WidgetLabelValue.h
87 ModuleBase_WidgetLineEdit.h
88 ModuleBase_WidgetMultiSelector.h
89 ModuleBase_WidgetOptionalBox.h
90 ModuleBase_WidgetSelector.h
91 ModuleBase_WidgetSelectorStore.h
92 ModuleBase_WidgetShapeSelector.h
93 ModuleBase_WidgetSwitch.h
94 ModuleBase_WidgetToolbox.h
95 ModuleBase_WidgetValidated.h
96 ModuleBase_WidgetValidator.h
97 ModuleBase_IconFactory.h
99 ModuleBase_ModelDialogWidget.h
100 ModuleBase_ActionParameter.h
101 ModuleBase_ActionIntParameter.h
102 ModuleBase_ChoiceCtrl.h
103 ModuleBase_WidgetNameEdit.h
104 ModuleBase_WidgetRadiobox.h
105 ModuleBase_WidgetPointInput.h
106 ModuleBase_ITreeNode.h
107 ModuleBase_WidgetSelectionFilter.h
108 ModuleBase_IStepPrs.h
109 ModuleBase_SelectionFilterType.h
110 ModuleBase_WidgetUndoLabel.h
113 SET(PROJECT_MOC_HEADERS
115 ModuleBase_DoubleSpinBox.h
116 ModuleBase_IErrorMgr.h
118 ModuleBase_IntSpinBox.h
119 ModuleBase_IPropertyPanel.h
121 ModuleBase_IWorkshop.h
122 ModuleBase_LabelValue.h
123 ModuleBase_ListView.h
124 ModuleBase_ModelDialogWidget.h
125 ModuleBase_ModelWidget.h
126 ModuleBase_Operation.h
127 ModuleBase_OperationFeature.h
128 ModuleBase_PagedContainer.h
129 ModuleBase_PageGroupBox.h
130 ModuleBase_PageWidget.h
131 ModuleBase_ParamIntSpinBox.h
132 ModuleBase_ParamSpinBox.h
133 ModuleBase_Preferences.h
135 ModuleBase_WidgetAction.h
136 ModuleBase_WidgetBoolValue.h
137 ModuleBase_WidgetChoice.h
138 ModuleBase_WidgetConcealedObjects.h
139 ModuleBase_WidgetDoubleValue.h
140 ModuleBase_WidgetEditor.h
141 ModuleBase_WidgetExprEditor.h
142 ModuleBase_WidgetFeatureSelector.h
143 ModuleBase_WidgetFileSelector.h
144 ModuleBase_WidgetIntValue.h
145 ModuleBase_WidgetLabel.h
146 ModuleBase_WidgetLabelValue.h
147 ModuleBase_WidgetLineEdit.h
148 ModuleBase_WidgetMultiSelector.h
149 ModuleBase_WidgetOptionalBox.h
150 ModuleBase_WidgetSelector.h
151 ModuleBase_WidgetShapeSelector.h
152 ModuleBase_WidgetSwitch.h
153 ModuleBase_WidgetToolbox.h
154 ModuleBase_WidgetValidated.h
155 ModuleBase_ChoiceCtrl.h
156 ModuleBase_WidgetNameEdit.h
157 ModuleBase_WidgetRadiobox.h
158 ModuleBase_WidgetPointInput.h
159 ModuleBase_WidgetSelectionFilter.h
160 ModuleBase_WidgetUndoLabel.h
164 ModuleBase_ActionInfo.cpp
165 ModuleBase_BRepOwner.cpp
166 ModuleBase_DoubleSpinBox.cpp
167 ModuleBase_Filter.cpp
168 ModuleBase_FilterValidated.cpp
169 ModuleBase_IErrorMgr.cpp
170 ModuleBase_IModule.cpp
171 ModuleBase_IntSpinBox.cpp
172 ModuleBase_IPrefMgr.cpp
173 ModuleBase_IPropertyPanel.cpp
174 ModuleBase_ISelection.cpp
175 ModuleBase_IViewWindow.cpp
176 ModuleBase_IViewer.cpp
177 ModuleBase_IWidgetCreator.cpp
178 ModuleBase_IWorkshop.cpp
179 ModuleBase_LabelValue.cpp
180 ModuleBase_ListView.cpp
181 ModuleBase_ModelWidget.cpp
182 ModuleBase_Operation.cpp
183 ModuleBase_OperationDescription.cpp
184 ModuleBase_OperationFeature.cpp
185 ModuleBase_PageBase.cpp
186 ModuleBase_PageGroupBox.cpp
187 ModuleBase_PageWidget.cpp
188 ModuleBase_PagedContainer.cpp
189 ModuleBase_ParamIntSpinBox.cpp
190 ModuleBase_ParamSpinBox.cpp
191 ModuleBase_Preferences.cpp
192 ModuleBase_ResultPrs.cpp
193 ModuleBase_ToolBox.cpp
195 ModuleBase_ViewerFilters.cpp
196 ModuleBase_ViewerPrs.cpp
197 ModuleBase_WidgetAction.cpp
198 ModuleBase_WidgetBoolValue.cpp
199 ModuleBase_WidgetChoice.cpp
200 ModuleBase_WidgetConcealedObjects.cpp
201 ModuleBase_WidgetCreatorFactory.cpp
202 ModuleBase_WidgetDoubleValue.cpp
203 ModuleBase_WidgetEditor.cpp
204 ModuleBase_WidgetExprEditor.cpp
205 ModuleBase_WidgetFactory.cpp
206 ModuleBase_WidgetFeatureSelector.cpp
207 ModuleBase_WidgetFileSelector.cpp
208 ModuleBase_WidgetIntValue.cpp
209 ModuleBase_WidgetLabel.cpp
210 ModuleBase_WidgetLabelValue.cpp
211 ModuleBase_WidgetLineEdit.cpp
212 ModuleBase_WidgetMultiSelector.cpp
213 ModuleBase_WidgetOptionalBox.cpp
214 ModuleBase_WidgetSelector.cpp
215 ModuleBase_WidgetSelectorStore.cpp
216 ModuleBase_WidgetShapeSelector.cpp
217 ModuleBase_WidgetSwitch.cpp
218 ModuleBase_WidgetToolbox.cpp
219 ModuleBase_WidgetValidated.cpp
220 ModuleBase_WidgetValidator.cpp
221 ModuleBase_IconFactory.cpp
222 ModuleBase_SelectionValidator.cpp
223 ModuleBase_Dialog.cpp
224 ModuleBase_ChoiceCtrl.cpp
225 ModuleBase_WidgetNameEdit.cpp
226 ModuleBase_WidgetRadiobox.cpp
227 ModuleBase_WidgetPointInput.cpp
228 ModuleBase_WidgetSelectionFilter.cpp
229 ModuleBase_IStepPrs.cpp
230 ModuleBase_WidgetUndoLabel.cpp
237 SET(PROJECT_LIBRARIES
246 ${OpenCASCADE_FoundationClasses_LIBRARIES}
247 ${OpenCASCADE_Visualization_LIBRARIES}
253 # sources / moc wrappings
254 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
256 IF (${UPDATE_TRANSLATION})
257 SET(PROJECT_FILES ${PROJECT_SOURCES} ${PROJECT_HEADERS} )
258 QT5_CREATE_TRANSLATION(QM_RESOURCES
261 OPTIONS -extensions cpp -no-recursive -locations none
263 ELSE(${UPDATE_TRANSLATION})
264 IF(${MAKE_TRANSLATION})
265 QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
266 ENDIF(${MAKE_TRANSLATION})
267 ENDIF(${UPDATE_TRANSLATION})
269 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
270 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
273 ${OpenCASCADE_INCLUDE_DIR}
274 ${PROJECT_SOURCE_DIR}/src/Config
275 ${PROJECT_SOURCE_DIR}/src/Events
276 ${PROJECT_SOURCE_DIR}/src/ModelAPI
277 ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
278 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
279 ${PROJECT_SOURCE_DIR}/src/GeomAPI
280 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
285 INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
286 ENDIF(${HAVE_SALOME})
288 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${OpenCASCADE_DEFINITIONS})
289 ADD_LIBRARY(ModuleBase SHARED
297 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
299 INSTALL(TARGETS ModuleBase DESTINATION ${SHAPER_INSTALL_BIN})
300 INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES})