Salome HOME
Merge from V6_main 13/12/2012
[modules/med.git] / src / MEDMEMCppTest / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
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 #  SALOMELocalTrace : log on local machine
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 lib_LTLIBRARIES = libMEDMEMCppTest.la
25
26 salomeinclude_HEADERS = MEDMEMTest.hxx MEDMEMCppTestExport.hxx
27
28 EXTRA_DIST += BasicMainTest.hxx
29
30 dist_libMEDMEMCppTest_la_SOURCES= \
31         MEDMEMTest.cxx \
32         MEDMEMTest_Array.cxx \
33         MEDMEMTest_AsciiFieldDriver.cxx \
34         MEDMEMTest_Connectivity.cxx \
35         MEDMEMTest_Coordinate.cxx \
36         MEDMEMTest_DesactivateFacesComputation.cxx \
37         MEDMEMTest_GetVolumeAbs.cxx \
38         MEDMEMTest_DriverFactory.cxx \
39         MEDMEMTest_Exception.cxx \
40         MEDMEMTest_Extractor.cxx \
41         MEDMEMTest_Family.cxx \
42         MEDMEMTest_Field.cxx \
43         MEDMEMTest_Formulae.cxx \
44         MEDMEMTest_GaussLocalization.cxx \
45         MEDMEMTest_GibiMeshDriver.cxx \
46         MEDMEMTest_Grid.cxx \
47         MEDMEMTest_Group.cxx \
48         MEDMEMTest_MedFileBrowser.cxx \
49         MEDMEMTest_MedFieldDriver.cxx \
50         MEDMEMTest_MedMeshDriver.cxx \
51         MEDMEMTest_MedVersion.cxx \
52         MEDMEMTest_MeshAndMeshing.cxx \
53         MEDMEMTest_ModulusArray.cxx \
54         MEDMEMTest_PartialDescendingConnectivity.cxx \
55         MEDMEMTest_PointerOf.cxx \
56         MEDMEMTest_PorflowMeshDriver.cxx \
57         MEDMEMTest_Remapper.cxx \
58         MEDMEMTest_SkyLineArray.cxx \
59         MEDMEMTest_Support.cxx \
60         MEDMEMTest_TopLevel.cxx \
61         MEDMEMTest_Unit.cxx \
62         MEDMEMTest_VtkFieldDriver.cxx \
63         MEDMEMTest_VtkMedDriver.cxx \
64         MEDMEMTest_VtkMeshDriver.cxx \
65         MEDMEMTest_nArray.cxx \
66         MEDMEMTest_Utils.hxx \
67         MEDMEMTest_Utils.cxx \
68         MEDMEMTest_MeshFuse.cxx
69
70 libMEDMEMCppTest_la_CPPFLAGS= @CPPUNIT_INCLUDES@ $(MED3_INCLUDES) $(HDF5_INCLUDES) \
71         -I$(srcdir)/../MEDMEM \
72         -I$(srcdir)/../INTERP_KERNEL \
73         -I$(srcdir)/../INTERP_KERNEL/Bases \
74         -I$(srcdir)/../INTERP_KERNEL/GaussPoints \
75         -I$(srcdir)/../INTERP_KERNEL/Geometric2D
76
77 libMEDMEMCppTest_la_LDFLAGS= $(MED3_LIBS_C_ONLY) @CPPUNIT_LIBS@ \
78         ../MEDMEM/libmedmem.la
79
80 if MED_ENABLE_KERNEL
81     libMEDMEMCppTest_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
82     libMEDMEMCppTest_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace
83 endif
84
85 # Executables targets
86 bin_PROGRAMS = TestMEDMEM \
87         MEDMEMTest_Array_fault \
88         MEDMEMTest_Connectivity_fault \
89         MEDMEMTest_Coordinate_fault \
90         MEDMEMTest_Family_fault \
91         MEDMEMTest_Field_fault \
92         MEDMEMTest_Grid_fault \
93         MEDMEMTest_MeshAndMeshing_fault \
94         MEDMEMTest_Support_fault \
95         MEDMEMTest_VtkFieldDriver_fault \
96         MEDMEMTest_VtkMeshDriver_fault
97
98 dist_TestMEDMEM_SOURCES= TestMEDMEM.cxx
99 dist_MEDMEMTest_Array_fault_SOURCES= MEDMEMTest_Array_fault.cxx
100 dist_MEDMEMTest_Connectivity_fault_SOURCES= MEDMEMTest_Connectivity_fault.cxx
101 dist_MEDMEMTest_Coordinate_fault_SOURCES= MEDMEMTest_Coordinate_fault.cxx
102 dist_MEDMEMTest_Family_fault_SOURCES= MEDMEMTest_Family_fault.cxx
103 dist_MEDMEMTest_Field_fault_SOURCES= MEDMEMTest_Field_fault.cxx
104 dist_MEDMEMTest_Grid_fault_SOURCES= MEDMEMTest_Grid_fault.cxx
105 dist_MEDMEMTest_MeshAndMeshing_fault_SOURCES= MEDMEMTest_MeshAndMeshing_fault.cxx
106 dist_MEDMEMTest_Support_fault_SOURCES= MEDMEMTest_Support_fault.cxx
107 dist_MEDMEMTest_VtkFieldDriver_fault_SOURCES= MEDMEMTest_VtkFieldDriver_fault.cxx
108 dist_MEDMEMTest_VtkMeshDriver_fault_SOURCES= MEDMEMTest_VtkMeshDriver_fault.cxx
109
110 LDADD= $(MED3_LIBS_C_ONLY) $(libMEDMEMCppTest_la_LDFLAGS) -lm \
111          ../MEDMEM/libmedmem.la \
112         ../INTERP_KERNEL/libinterpkernel.la libMEDMEMCppTest.la
113 if MED_ENABLE_KERNEL
114      LDADD+= -lSALOMEBasics
115 endif
116 AM_CPPFLAGS += $(libMEDMEMCppTest_la_CPPFLAGS)
117
118 dist_salomescript_DATA = testMEDMEM.py
119
120 UNIT_TEST_PROG = TestMEDMEM
121
122 OBSOLETE_FILES = \
123         TestOpenMED.cxx
124
125 EXTRA_DIST += $(OBSOLETE_FILES)
126
127 check: tests
128
129 CLEANFILES =            \
130         UnitTestsResult
131
132 clean-local:
133         rm -rf *.med
134
135