1 ## Copyright (C) 2014-2017 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
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
26 # additional include directories
27 INCLUDE_DIRECTORIES(${QT_INCLUDES})
29 # additional preprocessor / compiler flags
30 ADD_DEFINITIONS(${QT_DEFINITIONS})
34 ModuleBase_ActionInfo.h
35 ModuleBase_ActionType.h
36 ModuleBase_BRepOwner.h
37 ModuleBase_Definitions.h
38 ModuleBase_DoubleSpinBox.h
41 ModuleBase_FilterValidated.h
42 ModuleBase_IErrorMgr.h
44 ModuleBase_IntSpinBox.h
46 ModuleBase_IPropertyPanel.h
47 ModuleBase_ISelection.h
48 ModuleBase_ISelectionActivate.h
49 ModuleBase_IViewWindow.h
51 ModuleBase_IWidgetCreator.h
52 ModuleBase_IWorkshop.h
53 ModuleBase_LabelValue.h
55 ModuleBase_ModelWidget.h
56 ModuleBase_Operation.h
57 ModuleBase_OperationAction.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
109 SET(PROJECT_MOC_HEADERS
111 ModuleBase_DoubleSpinBox.h
112 ModuleBase_IErrorMgr.h
114 ModuleBase_IntSpinBox.h
115 ModuleBase_IPropertyPanel.h
117 ModuleBase_IWorkshop.h
118 ModuleBase_LabelValue.h
119 ModuleBase_ListView.h
120 ModuleBase_ModelDialogWidget.h
121 ModuleBase_ModelWidget.h
122 ModuleBase_Operation.h
123 ModuleBase_OperationAction.h
124 ModuleBase_OperationFeature.h
125 ModuleBase_PagedContainer.h
126 ModuleBase_PageGroupBox.h
127 ModuleBase_PageWidget.h
128 ModuleBase_ParamIntSpinBox.h
129 ModuleBase_ParamSpinBox.h
130 ModuleBase_Preferences.h
132 ModuleBase_WidgetAction.h
133 ModuleBase_WidgetBoolValue.h
134 ModuleBase_WidgetChoice.h
135 ModuleBase_WidgetConcealedObjects.h
136 ModuleBase_WidgetDoubleValue.h
137 ModuleBase_WidgetEditor.h
138 ModuleBase_WidgetExprEditor.h
139 ModuleBase_WidgetFeatureSelector.h
140 ModuleBase_WidgetFileSelector.h
141 ModuleBase_WidgetIntValue.h
142 ModuleBase_WidgetLabel.h
143 ModuleBase_WidgetLabelValue.h
144 ModuleBase_WidgetLineEdit.h
145 ModuleBase_WidgetMultiSelector.h
146 ModuleBase_WidgetOptionalBox.h
147 ModuleBase_WidgetSelector.h
148 ModuleBase_WidgetShapeSelector.h
149 ModuleBase_WidgetSwitch.h
150 ModuleBase_WidgetToolbox.h
151 ModuleBase_WidgetValidated.h
152 ModuleBase_ChoiceCtrl.h
153 ModuleBase_WidgetNameEdit.h
154 ModuleBase_WidgetRadiobox.h
155 ModuleBase_WidgetPointInput.h
159 ModuleBase_ActionInfo.cpp
160 ModuleBase_BRepOwner.cpp
161 ModuleBase_DoubleSpinBox.cpp
162 ModuleBase_Filter.cpp
163 ModuleBase_FilterValidated.cpp
164 ModuleBase_IErrorMgr.cpp
165 ModuleBase_IModule.cpp
166 ModuleBase_IntSpinBox.cpp
167 ModuleBase_IPrefMgr.cpp
168 ModuleBase_IPropertyPanel.cpp
169 ModuleBase_ISelection.cpp
170 ModuleBase_IViewWindow.cpp
171 ModuleBase_IViewer.cpp
172 ModuleBase_IWidgetCreator.cpp
173 ModuleBase_IWorkshop.cpp
174 ModuleBase_LabelValue.cpp
175 ModuleBase_ListView.cpp
176 ModuleBase_ModelWidget.cpp
177 ModuleBase_Operation.cpp
178 ModuleBase_OperationAction.cpp
179 ModuleBase_OperationDescription.cpp
180 ModuleBase_OperationFeature.cpp
181 ModuleBase_PageBase.cpp
182 ModuleBase_PageGroupBox.cpp
183 ModuleBase_PageWidget.cpp
184 ModuleBase_PagedContainer.cpp
185 ModuleBase_ParamIntSpinBox.cpp
186 ModuleBase_ParamSpinBox.cpp
187 ModuleBase_Preferences.cpp
188 ModuleBase_ResultPrs.cpp
189 ModuleBase_ToolBox.cpp
191 ModuleBase_ViewerFilters.cpp
192 ModuleBase_ViewerPrs.cpp
193 ModuleBase_WidgetAction.cpp
194 ModuleBase_WidgetBoolValue.cpp
195 ModuleBase_WidgetChoice.cpp
196 ModuleBase_WidgetConcealedObjects.cpp
197 ModuleBase_WidgetCreatorFactory.cpp
198 ModuleBase_WidgetDoubleValue.cpp
199 ModuleBase_WidgetEditor.cpp
200 ModuleBase_WidgetExprEditor.cpp
201 ModuleBase_WidgetFactory.cpp
202 ModuleBase_WidgetFeatureSelector.cpp
203 ModuleBase_WidgetFileSelector.cpp
204 ModuleBase_WidgetIntValue.cpp
205 ModuleBase_WidgetLabel.cpp
206 ModuleBase_WidgetLabelValue.cpp
207 ModuleBase_WidgetLineEdit.cpp
208 ModuleBase_WidgetMultiSelector.cpp
209 ModuleBase_WidgetOptionalBox.cpp
210 ModuleBase_WidgetSelector.cpp
211 ModuleBase_WidgetSelectorStore.cpp
212 ModuleBase_WidgetShapeSelector.cpp
213 ModuleBase_WidgetSwitch.cpp
214 ModuleBase_WidgetToolbox.cpp
215 ModuleBase_WidgetValidated.cpp
216 ModuleBase_WidgetValidator.cpp
217 ModuleBase_IconFactory.cpp
218 ModuleBase_SelectionValidator.cpp
219 ModuleBase_Dialog.cpp
220 ModuleBase_ChoiceCtrl.cpp
221 ModuleBase_WidgetNameEdit.cpp
222 ModuleBase_WidgetRadiobox.cpp
223 ModuleBase_WidgetPointInput.cpp
226 SET(PROJECT_LIBRARIES
235 ${OpenCASCADE_FoundationClasses_LIBRARIES}
236 ${OpenCASCADE_Visualization_LIBRARIES}
242 # sources / moc wrappings
243 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
245 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
247 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
248 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
251 ${OpenCASCADE_INCLUDE_DIR}
252 ${PROJECT_SOURCE_DIR}/src/Config
253 ${PROJECT_SOURCE_DIR}/src/Events
254 ${PROJECT_SOURCE_DIR}/src/ModelAPI
255 ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
256 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
257 ${PROJECT_SOURCE_DIR}/src/GeomAPI
258 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
263 INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
264 ENDIF(${HAVE_SALOME})
266 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${OpenCASCADE_DEFINITIONS})
267 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${PROJECT_AUTOMOC})
268 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
270 INSTALL(TARGETS ModuleBase DESTINATION ${SHAPER_INSTALL_BIN})