1 # Copyright (C) 2010-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
20 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..)
21 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../..)
23 set(TestMedReader_SRCS
27 set(TestMedPolyhedron_SRCS
31 set(TestMedReadPolyhedron_SRCS
32 TestMedReadPolyhedron.cxx
35 set(TestMedDescendingPolyhedron_SRCS
36 TestMedDescendingPolyhedron.cxx
39 set(TestMedReadDescendingPolyhedron_SRCS
40 TestMedReadDescendingPolyhedron.cxx
43 set(TestMedWriteOcta12_SRCS
44 TestMedWriteOcta12.cxx
47 set(TestMedParallelRead_SRCS
48 TestMedParallelRead.cxx
51 set(TestMedParallelWrite_SRCS
52 TestMedParallelWrite.cxx
55 add_executable(TestMedReader ${TestMedReader_SRCS})
56 add_executable(TestMedPolyhedron ${TestMedPolyhedron_SRCS})
57 add_executable(TestMedReadPolyhedron ${TestMedReadPolyhedron_SRCS})
58 add_executable(TestMedDescendingPolyhedron ${TestMedDescendingPolyhedron_SRCS})
59 add_executable(TestMedReadDescendingPolyhedron ${TestMedReadDescendingPolyhedron_SRCS})
60 add_executable(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
62 if(${HDF5_IS_PARALLEL})
63 add_executable(TestMedParallelRead ${TestMedParallelRead_SRCS})
64 add_executable(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
65 target_link_libraries(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
66 target_link_libraries(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
67 endif(${HDF5_IS_PARALLEL})
69 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
71 target_link_libraries(TestMedReader ${${vtk-module-test}_DEPENDS} ${MED_LIBRARIES})
72 target_link_libraries(TestMedPolyhedron ${MED_LIBRARIES})
73 target_link_libraries(TestMedReadPolyhedron ${MED_LIBRARIES})
74 target_link_libraries(TestMedDescendingPolyhedron ${MED_LIBRARIES})
75 target_link_libraries(TestMedReadDescendingPolyhedron ${MED_LIBRARIES})
76 target_link_libraries(TestMedWriteOcta12 ${MED_LIBRARIES})