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(../..)
22 set(TestMedReader_SRCS
26 set(TestMedPolyhedron_SRCS
30 set(TestMedReadPolyhedron_SRCS
31 TestMedReadPolyhedron.cxx
34 set(TestMedDescendingPolyhedron_SRCS
35 TestMedDescendingPolyhedron.cxx
38 set(TestMedReadDescendingPolyhedron_SRCS
39 TestMedReadDescendingPolyhedron.cxx
42 set(TestMedWriteOcta12_SRCS
43 TestMedWriteOcta12.cxx
46 set(TestMedParallelRead_SRCS
47 TestMedParallelRead.cxx
50 set(TestMedParallelWrite_SRCS
51 TestMedParallelWrite.cxx
54 add_executable(TestMedReader ${TestMedReader_SRCS})
55 add_executable(TestMedPolyhedron ${TestMedPolyhedron_SRCS})
56 add_executable(TestMedReadPolyhedron ${TestMedReadPolyhedron_SRCS})
57 add_executable(TestMedDescendingPolyhedron ${TestMedDescendingPolyhedron_SRCS})
58 add_executable(TestMedReadDescendingPolyhedron ${TestMedReadDescendingPolyhedron_SRCS})
59 add_executable(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
60 add_executable(TestMedParallelRead ${TestMedParallelRead_SRCS})
61 add_executable(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
63 #set(VTK_LIBS vtkMedReader vtkRendering)
64 #if(${HDF5_IS_PARALLEL})
65 # set(VTK_LIBS ${VTK_LIBS} vtkParallel)
66 #endif(${HDF5_IS_PARALLEL})
67 SET(VTK_LIBS ${VTK_LIBRARIES} vtkMedReader)
69 target_link_libraries(TestMedReader ${VTK_LIBS} ${MED_LIBRARIES})
70 target_link_libraries(TestMedPolyhedron ${MED_LIBRARIES})
71 target_link_libraries(TestMedReadPolyhedron ${MED_LIBRARIES})
72 target_link_libraries(TestMedDescendingPolyhedron ${MED_LIBRARIES})
73 target_link_libraries(TestMedReadDescendingPolyhedron ${MED_LIBRARIES})
74 target_link_libraries(TestMedWriteOcta12 ${MED_LIBRARIES})
75 target_link_libraries(TestMedParallelRead ${MED_LIBRARIES})
76 target_link_libraries(TestMedParallelWrite ${MED_LIBRARIES})