1 # Copyright (C) 2007-2013 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # SALOMELocalTrace : log on local machine
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24 lib_LTLIBRARIES = libMEDPARTITIONERTest.la
26 dist_libMEDPARTITIONERTest_la_SOURCES = MEDPARTITIONERTest.cxx
29 dist_libMEDPARTITIONERTest_la_SOURCES += MEDPARTITIONERTestPara.cxx
32 salomeinclude_HEADERS = MEDPARTITIONERTest.hxx
34 libMEDPARTITIONERTest_la_CPPFLAGS = \
41 -I$(srcdir)/../../MEDCoupling \
42 -I$(srcdir)/../../MEDLoader \
43 -I$(srcdir)/../../INTERP_KERNEL/Bases \
44 -I$(srcdir)/../../INTERP_KERNEL/GaussPoints \
45 -I$(srcdir)/../../INTERP_KERNEL
47 libMEDPARTITIONERTest_la_LDFLAGS=
49 if MED_ENABLE_PARMETIS
50 libMEDPARTITIONERTest_la_CPPFLAGS+= $(PARMETIS_CPPFLAGS)
51 libMEDPARTITIONERTest_la_LDFLAGS+= $(PARMETIS_LIBS)
54 libMEDPARTITIONERTest_la_CPPFLAGS += $(METIS_CPPFLAGS)
55 libMEDPARTITIONERTest_la_LDFLAGS += $(METIS_LIBS)
58 libMEDPARTITIONERTest_la_CPPFLAGS += $(SCOTCH_CPPFLAGS)
59 libMEDPARTITIONERTest_la_LDFLAGS += $(SCOTCH_LIBS)
62 libMEDPARTITIONERTest_la_LDFLAGS += \
67 ../../MEDLoader/libmedloader.la \
68 ../libmedpartitioner.la
72 dist_salomescript_DATA =
75 bin_PROGRAMS = TestMEDPARTITIONER
76 TestMEDPARTITIONER_SOURCES = TestMEDPARTITIONER.cxx
77 TestMEDPARTITIONER_CPPFLAGS = $(libMEDPARTITIONERTest_la_CPPFLAGS) \
78 -I$(srcdir)/../../INTERP_KERNELTest
81 TestMEDPARTITIONER_CPPFLAGS +=$(MPI_INCLUDES) $(PARMETIS_CPPFLAGS)
84 TestMEDPARTITIONER_CPPFLAGS += $(METIS_CPPFLAGS)
87 TestMEDPARTITIONER_CPPFLAGS += $(SCOTCH_CPPFLAGS)
90 TestMEDPARTITIONER_LDADD = \
91 $(libMEDPARTITIONERTest_la_LDFLAGS) -lm \
92 libMEDPARTITIONERTest.la \
93 ../../INTERP_KERNEL/libinterpkernel.la \
94 ../libmedpartitioner.la
96 UNIT_TEST_PROG += TestMEDPARTITIONER
100 CLEANFILES = UnitTestsResult