ADD_DEFINITIONS(
${BOOST_DEFINITIONS}
${HDF5_DEFINITIONS}
+ ${OMNIORB_DEFINITIONS}
)
# libraries to link to
${SMESH_MEDWrapper}
${CORBA_LIBS}
SalomeIDLSIERPINSKY
- gd
)
+IF(SALOME_SIERPINSKY_USE_LIBGD)
+ LIST(APPEND _link_LIBRARIES gd)
+ENDIF(SALOME_SIERPINSKY_USE_LIBGD)
+
# --- headers ---
# header files / no moc processing
* Engine factory
*/
extern "C"
-{
+{
+ SIERPINSKYENGINE_EXPORT
PortableServer::ObjectId * SIERPINSKYEngine_factory( CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
PortableServer::ObjectId* contId,
#include <list>
+#ifdef WIN32
+ #if defined SIERPINSKYENGINE_EXPORTS || defined SIERPINSKYEngine_EXPORTS
+ #define SIERPINSKYENGINE_EXPORT __declspec( dllexport )
+ #else
+ #define SIERPINSKYENGINE_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define SIERPINSKYENGINE_EXPORT
+#endif
+
struct MyPoint
{
double myX;
MyPoint( const double x = 0., const double y = 0. ) : myX( x ), myY( y ) {}
};
-class SIERPINSKY_Gen_i: public virtual POA_SIERPINSKY_ORB::SIERPINSKY,
+class SIERPINSKYENGINE_EXPORT SIERPINSKY_Gen_i: public virtual POA_SIERPINSKY_ORB::SIERPINSKY,
public virtual Engines_Component_i
{
public:
# --- headers ---
# header files / to be processed by moc
-SET(SIERPINSKY_HEADERS
+SET(_moc_HEADERS
SierpinskyGUI_RunDlg.h
SierpinskyGUI.h
)
+SET(_other_HEADERS
+ SierpinskyGUI.hxx
+)
+
+SET (SIERPINSKY_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
+
# --- sources ---
# sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${SIERPINSKY_HEADERS})
+QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
}
extern "C" {
+ SIERPINSKY_EXPORT
CAM_Module* createModule()
{
return new SierpinskyGUI();
}
-
+ SIERPINSKY_EXPORT
char* getModuleVersion()
{
return (char*)SIERPINSKY_VERSION_STR;
#ifndef __SIERPINSKYGUI_H
#define __SIERPINSKYGUI_H
+#include "SierpinskyGUI.hxx"
+
#include <SalomeApp_Module.h>
#include <SALOMEconfig.h>
class SUIT_Desktop;
class SalomeApp_Application;
-class SierpinskyGUI : public SalomeApp_Module
+class SIERPINSKY_EXPORT SierpinskyGUI : public SalomeApp_Module
{
- Q_OBJECT;
+ Q_OBJECT
public:
// Constructor
--- /dev/null
+// Copyright (C) 2005-2013 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.
+//
+// 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 __SIERPINSKYGUI_HXX
+#define __SIERPINSKYGUI_HXX
+
+
+#ifdef WIN32
+ #if defined SIERPINSKY_EXPORTS || defined Sierpinsky_EXPORTS
+ #define SIERPINSKY_EXPORT __declspec( dllexport )
+ #else
+ #define SIERPINSKY_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define SIERPINSKY_EXPORT
+#endif
+
+
+
+#endif // __SIERPINSKYGUI_HXX
#ifndef __SIERPINSKYGUI_RUNDLG_H
#define __SIERPINSKYGUI_RUNDLG_H
+#include "SierpinskyGUI.hxx"
+
#include <QDialog>
class QLineEdit;
class QProgressBar;
class SierpinskyGUI;
-class SierpinskyGUI_RunDlg : public QDialog
+class SIERPINSKY_EXPORT SierpinskyGUI_RunDlg : public QDialog
{
Q_OBJECT