]> SALOME platform Git repositories - modules/kernel.git/blob - src/UnitTests/Makefile.am
Salome HOME
Compilation without libBatch.
[modules/kernel.git] / src / UnitTests / Makefile.am
1 # Copyright (C) 2007-2013  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
23 #  File   : Makefile.am
24 #  Author : Guillaume Boulant (CSSI)
25 #  Module : KERNEL
26 #  $Header$
27 #
28 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
29
30 #
31 # ===============================================================
32 # Files to be installed
33 # ===============================================================
34 #
35
36 # Executable scripts to be installed
37 dist_salomescript_PYTHON = UnitTests.py
38
39 #
40 # ===============================================================
41 # Executables targets
42 # ===============================================================
43 #
44
45 bin_PROGRAMS = UnitTests
46 UnitTests_SOURCES  = UnitTests.cxx
47 UnitTests_CPPFLAGS =\
48         @CPPUNIT_INCLUDES@ \
49         -I$(srcdir)/../Basics -I$(srcdir)/../Basics/Test \
50         -I$(srcdir)/../SALOMELocalTrace -I$(srcdir)/../SALOMELocalTrace/Test
51
52 if CORBA_GEN
53   UnitTests_CPPFLAGS +=\
54         -DWITH_CORBA \
55         -I$(srcdir)/../SALOMETraceCollector -I$(srcdir)/../SALOMETraceCollector/Test \
56         -I$(srcdir)/../NamingService -I$(srcdir)/../NamingService/Test \
57         -I$(srcdir)/../Utils -I$(srcdir)/../Utils/Test \
58         -I$(srcdir)/../LifeCycleCORBA -I$(srcdir)/../LifeCycleCORBA/Test \
59         -I$(srcdir)/../SALOMDESImpl -I$(srcdir)/../SALOMEDSImpl/Test \
60         -I$(srcdir)/../SALOMDES -I$(srcdir)/../SALOMEDS/Test \
61         -I$(top_builddir)/idl \
62         -I$(srcdir)/../Registry \
63         -I$(srcdir)/../Notification \
64         -I$(srcdir)/../ResourcesManager \
65         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
66 endif
67
68 UnitTests_LDADD    =\
69         @CPPUNIT_LIBS@ \
70         ../Basics/libSALOMEBasics.la \
71         ../SALOMELocalTrace/libSALOMELocalTrace.la ../SALOMELocalTrace/Test/libSALOMELocalTraceTest.la
72
73 if CORBA_GEN
74   UnitTests_LDADD    +=\
75         ../Registry/libRegistry.la \
76         ../Notification/libSalomeNotification.la \
77         ../ResourcesManager/libSalomeResourcesManager.la \
78         ../NamingService/libSalomeNS.la ../NamingService/Test/libNamingServiceTest.la \
79         ../Container/libSalomeContainer.la \
80         ../SALOMETraceCollector/Test/libSALOMETraceCollectorTest.la \
81         ../Utils/libOpUtil.la ../Utils/Test/libUtilsTest.la \
82         ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la ../LifeCycleCORBA/Test/libLifeCycleCORBATest.la \
83         ../SALOMEDSImpl/libSalomeDSImpl.la ../SALOMEDSImpl/Test/libSALOMEDSImplTest.la \
84         ../SALOMEDS/libSalomeDS.la ../SALOMEDS/Test/libSALOMEDSTest.la \
85         $(top_builddir)/idl/libSalomeIDLKernel.la\
86         @CORBA_LIBS@
87 endif