-SET(MEDCALCGUI_HEADERS MEDModule.hxx MEDEventListener_i.hxx WorkspaceController.hxx DatasourceController.hxx)
-QT_WRAP_MOC(MEDCALCGUI_HEADERS_MOC ${MEDCALCGUI_HEADERS})
+IF(SALOME_FIELDS_WITH_QTTESTING)
+ LIST(APPEND MEDCALCGUI_SOURCES TestController.cxx)
+ENDIF()
+
+SET(MEDCALCGUI_MOC_HEADERS
+ MEDModule.hxx
+ MEDEventListener_i.hxx
+ WorkspaceController.hxx
+ DatasourceController.hxx
+ PresentationController.hxx
+ ProcessingController.hxx
+ MEDWidgetHelper.hxx
+ MEDWidgetHelperMeshView.hxx
+ MEDWidgetHelperComponent.hxx
+ MEDWidgetHelperScalarMap.hxx
+ MEDWidgetHelperContour.hxx
+ MEDWidgetHelperSlices.hxx
+ MEDWidgetHelperPointSprite.hxx
+ MEDWidgetHelperPlot3D.hxx
+ MEDWidgetHelperStreamLines.hxx
+ MEDWidgetHelperCutSegment.hxx
+ MEDWidgetHelperVectorField.hxx
+ MEDWidgetHelperDeflectionShape.hxx
+ )