]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/MedReader/IO/Testing/Cxx/CMakeLists.txt
Salome HOME
Merge from BR_PORTING_VTK6 01/03/2013
[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(${CMAKE_CURRENT_SOURCE_DIR}/../..)
21 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../..)
22
23 set(TestMedReader_SRCS
24     TestMedReader.cxx
25 )
26
27 set(TestMedPolyhedron_SRCS
28     TestMedPolyhedron.cxx
29 )
30
31 set(TestMedReadPolyhedron_SRCS
32     TestMedReadPolyhedron.cxx
33 )
34
35 set(TestMedDescendingPolyhedron_SRCS
36     TestMedDescendingPolyhedron.cxx
37 )
38
39 set(TestMedReadDescendingPolyhedron_SRCS
40     TestMedReadDescendingPolyhedron.cxx
41 )
42
43 set(TestMedWriteOcta12_SRCS
44     TestMedWriteOcta12.cxx
45 )
46
47 set(TestMedParallelRead_SRCS
48     TestMedParallelRead.cxx
49 )
50
51 set(TestMedParallelWrite_SRCS
52     TestMedParallelWrite.cxx
53 )
54
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})
61
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})
68
69 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
70
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})
77