1 # Copyright (C) 2007-2012 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
21 $(CPPUNIT_INCLUDE_DIRS)
22 ${CMAKE_CURRENT_SOURCE_DIR}/..
23 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL
24 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/Bases
25 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/Geometric2D
26 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/ExprEval
27 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/GaussPoints
28 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNELTest
31 SET(TestMEDCoupling_SOURCES
32 MEDCouplingBasicsTestInterp.cxx
34 MEDCouplingBasicsTest0.cxx
35 MEDCouplingBasicsTest1.cxx
36 MEDCouplingBasicsTest2.cxx
37 MEDCouplingBasicsTest3.cxx
38 MEDCouplingBasicsTest4.cxx
39 MEDCouplingBasicsTest5.cxx
42 SET(TestMEDCouplingRemapper_SOURCES
43 TestMEDCouplingRemapper.cxx
44 MEDCouplingRemapperTest.cxx
45 MEDCouplingBasicsTest0.cxx
48 SET(TestMEDCouplingExamples_SOURCES
49 MEDCouplingExamplesTest.cxx
50 MEDCouplingBasicsTest0.cxx
53 ADD_EXECUTABLE(TestMEDCoupling ${TestMEDCoupling_SOURCES})
54 SET_TARGET_PROPERTIES(TestMEDCoupling PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS}")
55 TARGET_LINK_LIBRARIES(TestMEDCoupling medcoupling ${CPPUNIT_LIBS})
56 ADD_TEST(TestMEDCoupling TestMEDCoupling)
58 ADD_EXECUTABLE(TestMEDCouplingRemapper ${TestMEDCouplingRemapper_SOURCES})
59 SET_TARGET_PROPERTIES(TestMEDCouplingRemapper PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS}")
60 TARGET_LINK_LIBRARIES(TestMEDCouplingRemapper medcouplingremapper ${CPPUNIT_LIBS})
61 ADD_TEST(TestMEDCouplingRemapper TestMEDCouplingRemapper)
63 ADD_EXECUTABLE(TestMEDCouplingExamples ${TestMEDCouplingExamples_SOURCES})
64 SET_TARGET_PROPERTIES(TestMEDCouplingExamples PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS}")
65 TARGET_LINK_LIBRARIES(TestMEDCouplingExamples medcoupling ${CPPUNIT_LIBS})
66 ADD_TEST(TestMEDCouplingExamples TestMEDCouplingExamples)
68 INSTALL(TARGETS TestMEDCoupling TestMEDCouplingRemapper DESTINATION ${MED_salomebin_BINS})