Salome HOME
Merge from V6_main_20120808 08Aug12
[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
20 INCLUDE_DIRECTORIES(
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
29   )
30
31 SET(TestMEDCoupling_SOURCES
32   MEDCouplingBasicsTestInterp.cxx
33   TestMEDCoupling.cxx
34   MEDCouplingBasicsTest0.cxx
35   MEDCouplingBasicsTest1.cxx
36   MEDCouplingBasicsTest2.cxx
37   MEDCouplingBasicsTest3.cxx
38   MEDCouplingBasicsTest4.cxx
39   MEDCouplingBasicsTest5.cxx
40   )
41
42 SET(TestMEDCouplingRemapper_SOURCES
43   TestMEDCouplingRemapper.cxx
44   MEDCouplingRemapperTest.cxx
45   MEDCouplingBasicsTest0.cxx
46   )
47
48 SET(TestMEDCouplingExamples_SOURCES
49   MEDCouplingExamplesTest.cxx
50   MEDCouplingBasicsTest0.cxx
51   )
52
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)
57
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)
62
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)
67
68 INSTALL(TARGETS TestMEDCoupling TestMEDCouplingRemapper DESTINATION ${MED_salomebin_BINS})