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}
25 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDMEM
26 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
27 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
28 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/ExprEval
29 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
30 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Geometric2D
33 SET(InterpKernelTest_SOURCES
36 ExprEvalInterpTest.cxx
37 QuadraticPlanarInterpTest.cxx
38 QuadraticPlanarInterpTest2.cxx
39 QuadraticPlanarInterpTest3.cxx
40 QuadraticPlanarInterpTest4.cxx
41 QuadraticPlanarInterpTest5.cxx
42 SingleElementPlanarTests.cxx
43 TransformedTriangleIntersectTest.cxx
44 TransformedTriangleTest.cxx
45 UnitTetra3D2DIntersectionTest.cxx
46 UnitTetraIntersectionBaryTest.cxx
47 TestInterpKernelUtils.cxx
50 SET(TestINTERP_KERNEL_SOURCES
58 IF(NOT MED_ENABLE_MICROMED)
59 SET(InterpKernelTest_SOURCES
60 ${InterpKernelTest_SOURCES}
61 InterpolationOptionsTest.cxx
69 ADD_EXECUTABLE(PerfTest ${PerfTest_SOURCES})
70 SET_TARGET_PROPERTIES(PerfTest PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CPPUNIT_DEFINITIONS}")
71 TARGET_LINK_LIBRARIES(PerfTest InterpKernelTest ${CPPUNIT_LIBS})
72 ENDIF(NOT MED_ENABLE_MICROMED)
74 ADD_LIBRARY(InterpKernelTest SHARED ${InterpKernelTest_SOURCES})
75 SET_TARGET_PROPERTIES(InterpKernelTest PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CPPUNIT_DEFINITIONS}")
76 TARGET_LINK_LIBRARIES(InterpKernelTest medmem ${CPPUNIT_LIBS})
78 ADD_EXECUTABLE(TestINTERP_KERNEL ${TestINTERP_KERNEL_SOURCES})
79 SET_TARGET_PROPERTIES(TestINTERP_KERNEL PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CPPUNIT_DEFINITIONS}")
80 TARGET_LINK_LIBRARIES(TestINTERP_KERNEL InterpKernelTest ${CPPUNIT_LIBS})
81 ADD_TEST(TestINTERP_KERNEL TestINTERP_KERNEL)
83 INSTALL(TARGETS TestINTERP_KERNEL DESTINATION ${MED_salomebin_BINS})
84 INSTALL(TARGETS InterpKernelTest DESTINATION ${MED_salomelib_LIBS})