]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/MedReader/IO/Testing/Cxx/CMakeLists.txt
Salome HOME
baf374d80309bd4d0a53248205bf993963c6edbf
[modules/paravis.git] / src / Plugins / MedReader / IO / Testing / Cxx / CMakeLists.txt
1 # Copyright (C) 2010-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
22 set(TestMedReader_SRCS
23     TestMedReader.cxx
24 )
25
26 set(TestMedPolyhedron_SRCS
27     TestMedPolyhedron.cxx
28 )
29
30 set(TestMedReadPolyhedron_SRCS
31     TestMedReadPolyhedron.cxx
32 )
33
34 set(TestMedDescendingPolyhedron_SRCS
35     TestMedDescendingPolyhedron.cxx
36 )
37
38 set(TestMedReadDescendingPolyhedron_SRCS
39     TestMedReadDescendingPolyhedron.cxx
40 )
41
42 set(TestMedWriteOcta12_SRCS
43     TestMedWriteOcta12.cxx
44 )
45
46 set(TestMedParallelRead_SRCS
47     TestMedParallelRead.cxx
48 )
49
50 set(TestMedParallelWrite_SRCS
51     TestMedParallelWrite.cxx
52 )
53
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})
62
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)
68
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})
77