Salome HOME
1) Add CMake files to the dist rules (make dist)
[modules/kernel.git] / src / SALOMEDS / Test / Makefile.am
1 # Copyright (C) 2007-2012  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 : Paul RASCLE
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 # header files  
36 salomeinclude_HEADERS= SALOMEDSTest.hxx
37
38 # Scripts to be installed
39 dist_salomescript_PYTHON = TestSALOMEDS.py
40
41 #
42 # ===============================================================
43 # Local definitions
44 # ===============================================================
45 #
46
47 # This directory defines the subdirectory src in the top source directory.
48 RPATH=../..
49
50 # This local variable defines the list of CPPFLAGS common to all target in this package.
51 COMMON_CPPFLAGS=\
52         @CPPUNIT_INCLUDES@ \
53         -I$(srcdir)/$(RPATH)/Basics               -I$(srcdir)/$(RPATH)/Basics/Test \
54         -I$(srcdir)/$(RPATH)/SALOMELocalTrace     -I$(srcdir)/$(RPATH)/SALOMELocalTrace/Test \
55         -I$(srcdir)/$(RPATH)/SALOMETraceCollector -I$(srcdir)/$(RPATH)/SALOMETraceCollector/Test \
56         -I$(srcdir)/$(RPATH)/NamingService        -I$(srcdir)/$(RPATH)/NamingService/Test \
57         -I$(srcdir)/$(RPATH)/Utils                -I$(srcdir)/$(RPATH)/Utils/Test \
58         -I$(srcdir)/$(RPATH)/ResourcesManager \
59         -I$(srcdir)/$(RPATH)/LifeCycleCORBA \
60         -I$(srcdir)/$(RPATH)/SALOMEDS \
61         -I$(srcdir)/$(RPATH)/SALOMEDSClient \
62         -I$(srcdir)/$(RPATH)/DF \
63         -I$(srcdir)/$(RPATH)/SALOMEDSImpl  -I$(srcdir)/$(RPATH)/SALOMEDSImpl/Test \
64         -I$(top_builddir)/idl \
65         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@
66
67 # This local variable defines the list of dependant libraries common to all target in this package.
68 COMMON_LIBS =\
69         @CPPUNIT_LIBS@ \
70         $(RPATH)/Basics/libSALOMEBasics.la \
71         $(RPATH)/ResourcesManager/libSalomeResourcesManager.la \
72         $(RPATH)/Container/libSalomeContainer.la \
73         $(RPATH)/NamingService/libSalomeNS.la \
74         $(RPATH)/Registry/libRegistry.la \
75         $(RPATH)/Notification/libSalomeNotification.la \
76         $(RPATH)/Utils/Test/libUtilsTest.la \
77         $(RPATH)/Utils/libOpUtil.la \
78         $(RPATH)/SALOMELocalTrace/Test/libSALOMELocalTraceTest.la \
79         $(RPATH)/SALOMELocalTrace/libSALOMELocalTrace.la \
80         $(RPATH)/SALOMETraceCollector/Test/libSALOMETraceCollectorTest.la \
81         $(RPATH)/SALOMEDSImpl/Test/libSALOMEDSImplTest.la \
82         $(RPATH)/DF/libDF.la \
83         $(RPATH)/SALOMEDSImpl/libSalomeDSImpl.la \
84         $(RPATH)/SALOMEDSClient/libSalomeDSClient.la \
85         $(RPATH)/SALOMEDS/libSalomeDS.la \
86         $(top_builddir)/idl/libSalomeIDLKernel.la
87
88 #
89 # ===============================================================
90 # Libraries targets
91 # ===============================================================
92 #
93 lib_LTLIBRARIES = libSALOMEDSTest.la 
94 dist_libSALOMEDSTest_la_SOURCES = SALOMEDSTest.cxx
95 libSALOMEDSTest_la_CPPFLAGS = $(COMMON_CPPFLAGS)
96 libSALOMEDSTest_la_LDFLAGS  = -no-undefined -version-info=0:0:0
97 libSALOMEDSTest_la_LIBADD    = $(COMMON_LIBS)
98
99 EXTRA_DIST += \
100         SALOMEDSTest_AttributeComment.cxx \
101         SALOMEDSTest_AttributeDrawable.cxx \
102         SALOMEDSTest_AttributeExpandable.cxx \
103         SALOMEDSTest_AttributeExternalFileDef.cxx \
104         SALOMEDSTest_AttributeFileType.cxx \
105         SALOMEDSTest_AttributeFlags.cxx \
106         SALOMEDSTest_AttributeGraphic.cxx \
107         SALOMEDSTest_AttributeInteger.cxx \
108         SALOMEDSTest_AttributeIOR.cxx \
109         SALOMEDSTest_AttributeLocalID.cxx \
110         SALOMEDSTest_AttributeName.cxx \
111         SALOMEDSTest_AttributeOpened.cxx \
112         SALOMEDSTest_AttributeParameter.cxx \
113         SALOMEDSTest_AttributePersistentRef.cxx \
114         SALOMEDSTest_AttributePixMap.cxx \
115         SALOMEDSTest_AttributePythonObject.cxx \
116         SALOMEDSTest_AttributeReal.cxx \
117         SALOMEDSTest_AttributeSelectable.cxx \
118         SALOMEDSTest_AttributeSequenceOfInteger.cxx \
119         SALOMEDSTest_AttributeSequenceOfReal.cxx \
120         SALOMEDSTest_AttributeStudyProperties.cxx \
121         SALOMEDSTest_AttributeTableOfInteger.cxx \
122         SALOMEDSTest_AttributeTableOfReal.cxx \
123         SALOMEDSTest_AttributeTableOfString.cxx \
124         SALOMEDSTest_AttributeTarget.cxx \
125         SALOMEDSTest_AttributeTextColor.cxx \
126         SALOMEDSTest_AttributeTextHighlightColor.cxx\
127         SALOMEDSTest_AttributeTreeNode.cxx \
128         SALOMEDSTest_AttributeUserID.cxx \
129         SALOMEDSTest_ChildIterator.cxx \
130         SALOMEDSTest_SComponent.cxx \
131         SALOMEDSTest_SComponentIterator.cxx \
132         SALOMEDSTest_SObject.cxx \
133         SALOMEDSTest_StudyBuilder.cxx \
134         SALOMEDSTest_Study.cxx \
135         SALOMEDSTest_StudyManager.cxx \
136         SALOMEDSTest_UseCase.cxx
137
138 #
139 # ===============================================================
140 # Executables targets
141 # ===============================================================
142 #
143 bin_PROGRAMS = TestSALOMEDS
144 dist_TestSALOMEDS_SOURCES  = TestSALOMEDS.cxx
145 TestSALOMEDS_CPPFLAGS = $(COMMON_CPPFLAGS)
146 TestSALOMEDS_LDADD    = libSALOMEDSTest.la \
147                         $(RPATH)/Basics/libSALOMEBasics.la \
148                         $(CORBA_LIBS) $(COMMON_LIBS)