diff --git a/GraphicsView/include/CGAL/Qt/GraphicsItem.h b/GraphicsView/include/CGAL/Qt/GraphicsItem.h index 210db7aa839..2cf099a0819 100644 --- a/GraphicsView/include/CGAL/Qt/GraphicsItem.h +++ b/GraphicsView/include/CGAL/Qt/GraphicsItem.h @@ -24,7 +24,9 @@ #include #include #include -#include +#ifndef Q_MOC_RUN +# include +#endif diff --git a/GraphicsView/include/CGAL/Qt/GraphicsViewInput.h b/GraphicsView/include/CGAL/Qt/GraphicsViewInput.h index efa3b5539f8..a6919e84f19 100644 --- a/GraphicsView/include/CGAL/Qt/GraphicsViewInput.h +++ b/GraphicsView/include/CGAL/Qt/GraphicsViewInput.h @@ -23,7 +23,9 @@ #include #include -#include +#ifndef Q_MOC_RUN +# include +#endif namespace CGAL { namespace Qt {