From: vsr Date: Wed, 15 Oct 2008 10:19:36 +0000 (+0000) Subject: Issue 0019981: integrate patch for compilation with cmake (from E.Adam) X-Git-Tag: V5_1_0a3~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e83961bc8d4e31649a9a4e50c0c477856441c21;p=modules%2Fkernel.git Issue 0019981: integrate patch for compilation with cmake (from E.Adam) --- diff --git a/src/TestContainer/SALOME_TestComponent.hxx b/src/TestContainer/SALOME_TestComponent.hxx new file mode 100644 index 000000000..17d96b693 --- /dev/null +++ b/src/TestContainer/SALOME_TestComponent.hxx @@ -0,0 +1,39 @@ +// SALOME TestContainer : test of container creation and its life cycle +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// 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 +// +// File : SALOME_TestComponent.hxx +// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com) +// + +#ifndef SALOME_TESTCOMPONENT_HXX +#define SALOME_TESTCOMPONENT_HXX + +#ifdef WIN32 +# if defined TESTCONTAINER_EXPORTS +# define TESTCONTAINER_EXPORT __declspec( dllexport ) +# else +# define TESTCONTAINER_EXPORT __declspec( dllimport ) +# endif +#else +# define TESTCONTAINER_EXPORT +#endif + +#endif // SALOME_TESTCOMPONENT_HXX diff --git a/src/TestContainer/SALOME_TestComponent_i.hxx b/src/TestContainer/SALOME_TestComponent_i.hxx index 8bac7eecb..fb59ed478 100644 --- a/src/TestContainer/SALOME_TestComponent_i.hxx +++ b/src/TestContainer/SALOME_TestComponent_i.hxx @@ -29,6 +29,8 @@ #ifndef _SALOME_TESTCOMPONENT_I_HXX_ #define _SALOME_TESTCOMPONENT_I_HXX_ +#include "SALOME_TestComponent.hxx" + #include #include "SALOME_Component_i.hxx" @@ -36,7 +38,7 @@ #include #include CORBA_SERVER_HEADER(SALOME_TestComponent) -class Engines_TestComponent_i: +class TESTCONTAINER_EXPORT Engines_TestComponent_i: public POA_Engines::TestComponent, public Engines_Component_i {