Salome HOME
Base implementation of Notebook
[modules/kernel.git] / src / UnitTests / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #  File   : Makefile.am
23 #  Author : Guillaume Boulant (CSSI)
24 #  Module : KERNEL
25 #  $Header$
26 #
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
28
29 #
30 # ===============================================================
31 # Files to be installed
32 # ===============================================================
33 #
34
35 # Executable scripts to be installed
36 dist_salomescript_PYTHON = UnitTests.py
37
38 #
39 # ===============================================================
40 # Executables targets
41 # ===============================================================
42 #
43
44 bin_PROGRAMS = UnitTests
45 UnitTests_SOURCES  = UnitTests.cxx
46 UnitTests_CPPFLAGS =\
47         @CPPUNIT_INCLUDES@ \
48         -I$(srcdir)/../Basics -I$(srcdir)/../Basics/Test \
49         -I$(srcdir)/../SALOMELocalTrace -I$(srcdir)/../SALOMELocalTrace/Test
50
51 if CORBA_GEN
52   UnitTests_CPPFLAGS +=\
53         -DWITH_CORBA \
54         -I$(srcdir)/../SALOMETraceCollector -I$(srcdir)/../SALOMETraceCollector/Test \
55         -I$(srcdir)/../NamingService -I$(srcdir)/../NamingService/Test \
56         -I$(srcdir)/../Utils -I$(srcdir)/../Utils/Test \
57         -I$(srcdir)/../LifeCycleCORBA -I$(srcdir)/../LifeCycleCORBA/Test \
58         -I$(srcdir)/../SALOMDESImpl -I$(srcdir)/../SALOMEDSImpl/Test \
59         -I$(srcdir)/../SALOMDES -I$(srcdir)/../SALOMEDS/Test \
60         -I$(top_builddir)/idl \
61         -I$(srcdir)/../Registry \
62         -I$(srcdir)/../Notification \
63         -I$(srcdir)/../ResourcesManager \
64         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
65 endif
66
67 UnitTests_LDADD    =\
68         @CPPUNIT_LIBS@ \
69         ../Basics/libSALOMEBasics.la \
70         ../SALOMELocalTrace/libSALOMELocalTrace.la ../SALOMELocalTrace/Test/libSALOMELocalTraceTest.la
71
72 if CORBA_GEN
73   UnitTests_LDADD    +=\
74         ../Registry/libRegistry.la \
75         ../Notification/libSalomeNotification.la \
76         ../ResourcesManager/libSalomeResourcesManager.la \
77         ../NamingService/libSalomeNS.la ../NamingService/Test/libNamingServiceTest.la \
78         ../Container/libSalomeContainer.la \
79         ../SALOMETraceCollector/Test/libSALOMETraceCollectorTest.la \
80         ../Utils/libOpUtil.la ../Utils/Test/libUtilsTest.la \
81         ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la ../LifeCycleCORBA/Test/libLifeCycleCORBATest.la \
82         ../SALOMEDSImpl/libSalomeDSImpl.la ../SALOMEDSImpl/Test/libSALOMEDSImplTest.la \
83         ../SALOMEDS/libSalomeDS.la ../SALOMEDS/Test/libSALOMEDSTest.la \
84         $(top_builddir)/idl/libSalomeIDLKernel.la\
85         @CORBA_LIBS@
86 endif