Salome HOME
Deleted check after build for transformations.
[modules/shaper.git] / src / ModuleBase / CMakeLists.txt
index 5af74739fdb8af4746d1cf137729a296175f7aeb..1257a139937e9bc116c916187a542d2ec48850ca 100644 (file)
@@ -18,7 +18,6 @@ SET(PROJECT_HEADERS
   ModuleBase_DoubleSpinBox.h
   ModuleBase_Events.h
   ModuleBase_Filter.h
-  ModuleBase_FilterFactory.h
   ModuleBase_FilterValidated.h
   ModuleBase_IErrorMgr.h
   ModuleBase_IModule.h
@@ -78,11 +77,54 @@ SET(PROJECT_HEADERS
   ModuleBase_ModelDialogWidget.h
 )
 
+SET(PROJECT_MOC_HEADERS
+  ModuleBase_Dialog.h
+  ModuleBase_DoubleSpinBox.h
+  ModuleBase_IErrorMgr.h
+  ModuleBase_IModule.h
+  ModuleBase_IntSpinBox.h
+  ModuleBase_IPropertyPanel.h
+  ModuleBase_IViewer.h
+  ModuleBase_IWorkshop.h
+  ModuleBase_LabelValue.h
+  ModuleBase_ModelDialogWidget.h
+  ModuleBase_ModelWidget.h
+  ModuleBase_Operation.h
+  ModuleBase_OperationAction.h
+  ModuleBase_OperationFeature.h
+  ModuleBase_PagedContainer.h
+  ModuleBase_PageGroupBox.h
+  ModuleBase_PageWidget.h
+  ModuleBase_ParamIntSpinBox.h
+  ModuleBase_ParamSpinBox.h
+  ModuleBase_Preferences.h
+  ModuleBase_ToolBox.h
+  ModuleBase_WidgetAction.h
+  ModuleBase_WidgetBoolValue.h
+  ModuleBase_WidgetChoice.h
+  ModuleBase_WidgetConcealedObjects.h
+  ModuleBase_WidgetDoubleValue.h
+  ModuleBase_WidgetEditor.h
+  ModuleBase_WidgetExprEditor.h
+  ModuleBase_WidgetFeatureSelector.h
+  ModuleBase_WidgetFileSelector.h
+  ModuleBase_WidgetIntValue.h
+  ModuleBase_WidgetLabel.h
+  ModuleBase_WidgetLabelValue.h
+  ModuleBase_WidgetLineEdit.h
+  ModuleBase_WidgetMultiSelector.h
+  ModuleBase_WidgetOptionalBox.h
+  ModuleBase_WidgetSelector.h
+  ModuleBase_WidgetShapeSelector.h
+  ModuleBase_WidgetSwitch.h
+  ModuleBase_WidgetToolbox.h
+  ModuleBase_WidgetValidated.h
+)
+
 SET(PROJECT_SOURCES
   ModuleBase_ActionInfo.cpp
   ModuleBase_DoubleSpinBox.cpp
   ModuleBase_Filter.cpp
-  ModuleBase_FilterFactory.cpp
   ModuleBase_FilterValidated.cpp
   ModuleBase_IErrorMgr.cpp
   ModuleBase_IModule.cpp
@@ -159,7 +201,7 @@ SET(PROJECT_LIBRARIES
 )
 
 # sources / moc wrappings
-QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_HEADERS})
+QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
 
 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
 
@@ -176,9 +218,12 @@ INCLUDE_DIRECTORIES(
     ${PROJECT_SOURCE_DIR}/src/GeomAPI
     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
     ${SUIT_INCLUDE}
-    ${SALOME_KERNEL_INCLUDE}
 )
 
+IF(${HAVE_SALOME})
+  INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
+ENDIF(${HAVE_SALOME})
+
 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${PROJECT_AUTOMOC})
 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})