@CPPUNIT_INCLUDES@ \
-I$(srcdir)/../Basics -I$(srcdir)/../Basics/Test \
-I$(srcdir)/../SALOMELocalTrace -I$(srcdir)/../SALOMELocalTrace/Test \
+ -I$(top_builddir)/salome_adm/unix
+
+if CORBA_GEN
+ UnitTests_CPPFLAGS +=\
+ -DWITH_CORBA \
-I$(srcdir)/../SALOMETraceCollector -I$(srcdir)/../SALOMETraceCollector/Test \
-I$(srcdir)/../NamingService -I$(srcdir)/../NamingService/Test \
-I$(srcdir)/../Utils -I$(srcdir)/../Utils/Test \
- -I$(srcdir)/../Registry \
- -I$(srcdir)/../Notification \
- -I$(srcdir)/../ResourcesManager \
-I$(srcdir)/../LifeCycleCORBA -I$(srcdir)/../LifeCycleCORBA/Test \
-I$(srcdir)/../SALOMDESImpl -I$(srcdir)/../SALOMEDSImpl/Test \
-I$(srcdir)/../SALOMDES -I$(srcdir)/../SALOMEDS/Test \
- -I$(top_builddir)/salome_adm/unix \
-I$(top_builddir)/idl \
+ -I$(srcdir)/../Registry \
+ -I$(srcdir)/../Notification \
+ -I$(srcdir)/../ResourcesManager \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
-
+endif
UnitTests_LDADD =\
@CPPUNIT_LIBS@ \
../Basics/libSALOMEBasics.la \
- ../SALOMELocalTrace/libSALOMELocalTrace.la ../SALOMELocalTrace/Test/libSALOMELocalTraceTest.la \
+ ../SALOMELocalTrace/libSALOMELocalTrace.la ../SALOMELocalTrace/Test/libSALOMELocalTraceTest.la
+
+if CORBA_GEN
+ UnitTests_LDADD +=\
../Registry/libRegistry.la \
../Notification/libSalomeNotification.la \
../ResourcesManager/libSalomeResourcesManager.la \
../SALOMEDS/libSalomeDS.la ../SALOMEDS/Test/libSALOMEDSTest.la \
$(top_builddir)/idl/libSalomeIDLKernel.la\
@CORBA_LIBS@
-
-
+endif
// --- include all Unit Test from basics until the present directory
#include "SALOMELocalTraceTest.hxx"
+
+#ifdef WITH_CORBA
#include "SALOMETraceCollectorTest.hxx"
#include "UtilsTest.hxx"
#include "NamingServiceTest.hxx"
#include "LifeCycleCORBATest.hxx"
#include "SALOMEDSImplTest.hxx"
#include "SALOMEDSTest.hxx"
+#endif
// --- Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( SALOMELocalTraceTest );
+#ifdef WITH_CORBA
CPPUNIT_TEST_SUITE_REGISTRATION( SALOMETraceCollectorTest );
CPPUNIT_TEST_SUITE_REGISTRATION( UtilsTest );
CPPUNIT_TEST_SUITE_REGISTRATION( NamingServiceTest );
CPPUNIT_TEST_SUITE_REGISTRATION( LifeCycleCORBATest );
CPPUNIT_TEST_SUITE_REGISTRATION( SALOMEDSImplTest );
-CPPUNIT_TEST_SUITE_REGISTRATION(SALOMEDSTest );
+CPPUNIT_TEST_SUITE_REGISTRATION( SALOMEDSTest );
+#endif
// --- generic Main program from Basic/Test