Salome HOME
6510c10a0e3a4e7bc3d6a704a6730bd143e8ab5a
[modules/paravis.git] / src / Plugins / MEDReader / IO / Testing / Cxx / CMakeLists.txt
1 # Copyright (C) 2010-2016  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, or (at your option) any later version.
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(${CMAKE_CURRENT_SOURCE_DIR}/../..)
21 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../..)
22 INCLUDE_DIRECTORIES(${MEDCOUPLING_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS})
23 INCLUDE_DIRECTORIES(${FIELDS_ROOT_DIR}/include/salome)
24
25 SET( TestMedReader_SRCS TestMedReader.cxx )
26
27 SET( TestMedPolyhedron_SRCS TestMedPolyhedron.cxx )
28
29 SET( TestMedReadPolyhedron_SRCS TestMedReadPolyhedron.cxx )
30
31 SET( TestMedDescendingPolyhedron_SRCS TestMedDescendingPolyhedron.cxx )
32
33 SET( TestMedReadDescendingPolyhedron_SRCS TestMedReadDescendingPolyhedron.cxx )
34
35 SET( TestMedWriteOcta12_SRCS TestMedWriteOcta12.cxx )
36
37 SET( TestMedParallelRead_SRCS TestMedParallelRead.cxx )
38
39 SET( TestMedParallelWrite_SRCS TestMedParallelWrite.cxx )
40
41 ADD_EXECUTABLE(TestReading0 TestReading0.cxx)
42 TARGET_LINK_LIBRARIES(TestReading0 MEDLoaderForPV vtkCommonDataModel)
43
44 #ADD_EXECUTABLE(TestMedReader ${TestMedReader_SRCS})
45 #ADD_EXECUTABLE(TestMedPolyhedron ${TestMedPolyhedron_SRCS})
46 #ADD_EXECUTABLE(TestMedReadPolyhedron ${TestMedReadPolyhedron_SRCS})
47 #ADD_EXECUTABLE(TestMedDescendingPolyhedron ${TestMedDescendingPolyhedron_SRCS})
48 #ADD_EXECUTABLE(TestMedReadDescendingPolyhedron ${TestMedReadDescendingPolyhedron_SRCS})
49 #ADD_EXECUTABLE(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
50
51 #IF(${HDF5_IS_PARALLEL})
52 #  ADD_EXECUTABLE(TestMedParallelRead ${TestMedParallelRead_SRCS})
53 #  ADD_EXECUTABLE(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
54 #  TARGET_LINK_LIBRARIES(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
55 #  TARGET_LINK_LIBRARIES(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
56 #ENDIF(${HDF5_IS_PARALLEL})
57
58 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
59
60 #vtkIOMPIImage
61 #TARGET_LINK_LIBRARIES(TestMedReader ${${vtk-module-test}_DEPENDS} ${MEDFILE_C_LIBRARIES})
62 #TARGET_LINK_LIBRARIES(TestMedPolyhedron ${MEDFILE_C_LIBRARIES})
63 #TARGET_LINK_LIBRARIES(TestMedReadPolyhedron ${MEDFILE_C_LIBRARIES})
64 #TARGET_LINK_LIBRARIES(TestMedDescendingPolyhedron ${MEDFILE_C_LIBRARIES})
65 #TARGET_LINK_LIBRARIES(TestMedReadDescendingPolyhedron ${MEDFILE_C_LIBRARIES})
66 #TARGET_LINK_LIBRARIES(TestMedWriteOcta12 ${MEDFILE_C_LIBRARIES})
67