1 # Copyright (C) 2010-2015 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, or (at your option) any later version.
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
20 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../..)
21 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../..)
22 INCLUDE_DIRECTORIES(${MEDFILE_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS})
23 INCLUDE_DIRECTORIES(${MED_ROOT_DIR}/include/salome)
25 SET( TestMedReader_SRCS TestMedReader.cxx )
27 SET( TestMedPolyhedron_SRCS TestMedPolyhedron.cxx )
29 SET( TestMedReadPolyhedron_SRCS TestMedReadPolyhedron.cxx )
31 SET( TestMedDescendingPolyhedron_SRCS TestMedDescendingPolyhedron.cxx )
33 SET( TestMedReadDescendingPolyhedron_SRCS TestMedReadDescendingPolyhedron.cxx )
35 SET( TestMedWriteOcta12_SRCS TestMedWriteOcta12.cxx )
37 SET( TestMedParallelRead_SRCS TestMedParallelRead.cxx )
39 SET( TestMedParallelWrite_SRCS TestMedParallelWrite.cxx )
41 ADD_EXECUTABLE(TestReading0 TestReading0.cxx)
42 TARGET_LINK_LIBRARIES(TestReading0 MEDLoaderForPV vtkCommonDataModel)
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})
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})
58 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
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})