Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Wed, 17 Jun 2015 10:53:43 +0000 (13:53 +0300)
committerana <ana@opencascade.com>
Wed, 17 Jun 2015 10:53:43 +0000 (13:53 +0300)
src/MeasureGUI/CMakeLists.txt
src/MeasureGUI/MeasureGUI_ShapeStatisticsDlg.h
src/MeasureGUI/MeasureGUI_definitions.h [new file with mode: 0644]

index 0f376152286def07b5a680dfb4168b6017d1413f..eaae08f27afdae774af31ddf9153abbe10c31ee8 100755 (executable)
@@ -104,6 +104,7 @@ SET(MeasureGUI_HEADERS
   MeasureGUI_DimensionCreateTool.h
   MeasureGUI_DimensionInteractor.h
   MeasureGUI_DimensionFilter.h
+  MeasureGUI_definitions.h
   )
 
 # header files / to be processed by moc
index 80131321b413f73008e019f4d962922baa11435d..8b604a261bd55aa3125bc07de7080b8fcc6dfa9c 100644 (file)
@@ -27,6 +27,7 @@
 // GEOM includes
 #include <GEOMBase_Helper.h>
 #include "GEOM_GenericObjPtr.h"
+#include "MeasureGUI_definitions.h"
 
 // Qt includes
 #include <QDialog>
@@ -45,7 +46,7 @@ class Plot2d_Histogram;
 // purpose  :
 //==========================================================================
 
-class MeasureGUI_ShapeStatisticsDlg : public QDialog, public GEOMBase_Helper
+class MEASUREGUI_EXPORT MeasureGUI_ShapeStatisticsDlg : public QDialog, public GEOMBase_Helper
 {
   Q_OBJECT
 
diff --git a/src/MeasureGUI/MeasureGUI_definitions.h b/src/MeasureGUI/MeasureGUI_definitions.h
new file mode 100644 (file)
index 0000000..f617200
--- /dev/null
@@ -0,0 +1,33 @@
+// Copyright (C) 2015  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef  MEASUREGUI_DEF_HXX
+#define  MEASUREGUI_DEF_HXX
+
+#ifdef WIN32
+# if defined MEASUREGUI_EXPORTS || defined MeasureGUI_EXPORTS
+#  define MEASUREGUI_EXPORT __declspec( dllexport )
+# else
+#  define MEASUREGUI_EXPORT __declspec( dllimport )
+# endif
+#else
+# define MEASUREGUI_EXPORT
+#endif
+
+#endif
\ No newline at end of file