Salome HOME
Merge from V6_main (04/10/2012)
[modules/med.git] / src / MEDCoupling / Test / CMakeLists.txt
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D
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 # Author : Anthony Geay (CEA/DEN)
20
21 INCLUDE_DIRECTORIES(
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
31   )
32
33 SET(TestMEDCoupling_SOURCES
34   MEDCouplingBasicsTestInterp.cxx
35   TestMEDCoupling.cxx
36   MEDCouplingBasicsTest0.cxx
37   MEDCouplingBasicsTest1.cxx
38   MEDCouplingBasicsTest2.cxx
39   MEDCouplingBasicsTest3.cxx
40   MEDCouplingBasicsTest4.cxx
41   MEDCouplingBasicsTest5.cxx
42   )
43
44 SET(TestMEDCouplingRemapper_SOURCES
45   TestMEDCouplingRemapper.cxx
46   MEDCouplingRemapperTest.cxx
47   MEDCouplingBasicsTest0.cxx
48   )
49
50 SET(TestMEDCouplingExamples_SOURCES
51   MEDCouplingExamplesTest.cxx
52   MEDCouplingBasicsTest0.cxx
53   )
54
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_LIBS} ${PLATFORM_LIBS})
58 ADD_TEST(TestMEDCoupling TestMEDCoupling)
59
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_LIBS} ${PLATFORM_LIBS})
63 ADD_TEST(TestMEDCouplingRemapper TestMEDCouplingRemapper)
64
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_LIBS} ${PLATFORM_LIBS})
68 ADD_TEST(TestMEDCouplingExamples TestMEDCouplingExamples)
69
70 INSTALL(TARGETS TestMEDCoupling TestMEDCouplingRemapper DESTINATION ${MED_salomebin_BINS})