1 # Copyright (C) 2012-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
19 # Author : Anthony Geay (CEA/DEN)
22 ${CPPUNIT_INCLUDE_DIRS}
23 ${PTHREADS_INCLUDE_DIRS}
24 ${CMAKE_CURRENT_SOURCE_DIR}/..
25 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL
26 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/Bases
27 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/Geometric2D
28 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/ExprEval
29 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/GaussPoints
30 ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNELTest
33 SET(TestMEDCoupling_SOURCES
34 MEDCouplingBasicsTestInterp.cxx
36 MEDCouplingBasicsTest0.cxx
37 MEDCouplingBasicsTest1.cxx
38 MEDCouplingBasicsTest2.cxx
39 MEDCouplingBasicsTest3.cxx
40 MEDCouplingBasicsTest4.cxx
41 MEDCouplingBasicsTest5.cxx
44 SET(TestMEDCouplingRemapper_SOURCES
45 TestMEDCouplingRemapper.cxx
46 MEDCouplingRemapperTest.cxx
47 MEDCouplingBasicsTest0.cxx
50 SET(TestMEDCouplingExamples_SOURCES
51 MEDCouplingExamplesTest.cxx
52 MEDCouplingBasicsTest0.cxx
55 ADD_EXECUTABLE(TestMEDCoupling ${TestMEDCoupling_SOURCES})
56 SET_TARGET_PROPERTIES(TestMEDCoupling PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
57 TARGET_LINK_LIBRARIES(TestMEDCoupling medcoupling ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
58 ADD_TEST(TestMEDCoupling TestMEDCoupling)
60 ADD_EXECUTABLE(TestMEDCouplingRemapper ${TestMEDCouplingRemapper_SOURCES})
61 SET_TARGET_PROPERTIES(TestMEDCouplingRemapper PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
62 TARGET_LINK_LIBRARIES(TestMEDCouplingRemapper medcouplingremapper ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
63 ADD_TEST(TestMEDCouplingRemapper TestMEDCouplingRemapper)
65 ADD_EXECUTABLE(TestMEDCouplingExamples ${TestMEDCouplingExamples_SOURCES})
66 SET_TARGET_PROPERTIES(TestMEDCouplingExamples PROPERTIES COMPILE_FLAGS "${CPPUNIT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
67 TARGET_LINK_LIBRARIES(TestMEDCouplingExamples medcoupling ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
68 ADD_TEST(TestMEDCouplingExamples TestMEDCouplingExamples)
70 INSTALL(TARGETS TestMEDCoupling TestMEDCouplingRemapper TestMEDCouplingExamples DESTINATION ${SALOME_INSTALL_BINS})