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