Salome HOME
Merge from V6_main 01/04/2013
[modules/yacs.git] / src / engine / Test / Makefile.am
1 # Copyright (C) 2006-2013  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include $(top_srcdir)/adm/unix/make_begin.am
21
22 if CPPUNIT_IS_OK
23 check_PROGRAMS = TestEngine IntegrationTestEngine
24 endif
25
26 TestEngine_SOURCES =              \
27         TestEngine.cxx            \
28         RuntimeForEngineTest.cxx  \
29         engineTest.cxx
30
31 TestEngine_LDADD = \
32                  ../libYACSlibEngine.la         \
33                  ../../bases/libYACSBases.la
34
35
36 TestEngine_LDFLAGS = $(CPPUNIT_LIBS) -pthread -ldl
37
38 TestEngine_CXXFLAGS = $(THREAD_DEF) \
39         $(CPPUNIT_INCLUDES)           \
40         -I$(srcdir)/..                \
41         -I$(srcdir)/../../bases       \
42         -I$(srcdir)/../../bases/Test
43
44 lib_LTLIBRARIES = libPluginOptEvTest1.la
45
46 libPluginOptEvTest1_la_SOURCES = PluginOptEvTest1.cxx
47
48 libPluginOptEvTest1_la_CXXFLAGS = $(THREAD_DEF) \
49         -I$(srcdir)/..                          \
50         -I$(srcdir)/../../bases
51
52 libPluginOptEvTest1_la_LIBADD = ../libYACSlibEngine.la
53
54 IntegrationTestEngine_SOURCES =              \
55         ToyNode.cxx                          \
56         ContainerTest.cxx                    \
57         ComponentInstanceTest.cxx            \
58         IntegrationTestEngine.cxx            \
59         engineIntegrationTest.cxx            \
60         RuntimeForEngineIntegrationTest.cxx
61
62 IntegrationTestEngine_LDADD =                   \
63                  ../libYACSlibEngine.la            \
64                  ../../bases/libYACSBases.la
65
66 IntegrationTestEngine_LDFLAGS = $(CPPUNIT_LIBS) -pthread -ldl
67
68 IntegrationTestEngine_CXXFLAGS =      \
69         $(CPPUNIT_INCLUDES)           \
70         $(THREAD_DEF)                 \
71         -I$(srcdir)/..                \
72         -I$(srcdir)/../../bases       \
73         -I$(srcdir)/../../bases/Test
74
75
76 if CPPUNIT_IS_OK
77 TESTS =  TestEngine IntegrationTestEngine
78 endif
79
80 EXTRA_DIST = \
81 ComponentInstanceTest.hxx  ContainerTest.hxx     engineIntegrationTest.hxx \
82 engineTest.hxx             PluginOptEvTest1.hxx  RuntimeForEngineIntegrationTest.hxx \
83 RuntimeForEngineTest.hxx   ToyNode.hxx
84
85 clean-local:
86         rm -f traceExec_* dumpState.xml
87
88 include $(top_srcdir)/adm/unix/make_end.am