CMakeLists.txt 5.64 KB
Newer Older
Berk Geveci's avatar
Berk Geveci committed
1
2
PROJECT (AMR)

3
IF(NOT VTK_BINARY_DIR)
4
5
6
7
FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
8
INCLUDE(${VTK_USE_FILE})
9
ENDIF(NOT VTK_BINARY_DIR)
Berk Geveci's avatar
Berk Geveci committed
10

11
12
13
14
15
16
17
18
19
IF (VTK_USE_MPI)
  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH} ${VTK_USE_FILE}")
  IF (MPI_LIBRARY) 
    SET(MPI_LIBRARIES ${MPI_LIBRARY})   
  ENDIF (MPI_LIBRARY)   
  IF (MPI_EXTRA_LIBRARY)   
    SET(MPI_LIBRARIES ${MPI_LIBRARIES} "${MPI_EXTRA_LIBRARY}")   
  ENDIF (MPI_EXTRA_LIBRARY) 
  
20
  ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK -DASSERT_ON")
21
22
23
24

ENDIF (VTK_USE_MPI)


25
## Add HierarchicalBoxPipeline executable
26
ADD_EXECUTABLE(HierarchicalBoxPipeline HierarchicalBoxPipeline.cxx)
Berk Geveci's avatar
Berk Geveci committed
27
TARGET_LINK_LIBRARIES(HierarchicalBoxPipeline vtkRendering vtkIO)
28
29
30

## Add TestAMRBoxGrhodCellExtrusion executable
ADD_EXECUTABLE(TestAMRBoxGhostCellExtrusion TestAMRBoxGhostCellExtrusion.cxx)
31
32
TARGET_LINK_LIBRARIES(TestAMRBoxGhostCellExtrusion vtkFiltering)

33
34
35
36
37
38
39
40
41
42
43
44
45
## Add AMRResamplingToUniformGrid executable
ADD_EXECUTABLE(AMRResamplingToUniformGrid AMRResamplingToUniformGrid.cxx)
TARGET_LINK_LIBRARIES( AMRResamplingToUniformGrid 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
             ${VTK_HDF5_LIBRARIES}
             )

46
47
48
49
50
51
52
53
54
55
## Add AMRDataTransferPipeline executable
ADD_EXECUTABLE(AMRDataTransferPipeline AMRDataTransferPipeline.cxx)
TARGET_LINK_LIBRARIES( AMRDataTransferPipeline 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
George Zagaris's avatar
George Zagaris committed
56
             ${VTK_HDF5_LIBRARIES}
57
             )
58

59
60
61
62
63
64
65
66
67
68
69
70
71
## Add AMRDataTransferPipeline executable
ADD_EXECUTABLE(flash2vth flash2vth.cxx)
TARGET_LINK_LIBRARIES( flash2vth 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
             ${VTK_HDF5_LIBRARIES}
             )
             
72
73
74
75
76
77
78
79
80
81
82
83
84
## Add AMRDataTransferPipeline executable
ADD_EXECUTABLE(enzo2vth enzo2vth.cxx)
TARGET_LINK_LIBRARIES( enzo2vth 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
             ${VTK_HDF5_LIBRARIES}
             )
             
85
86
87
88
89
90
91
92
93
94
## Add AMRDualExtractor executable
ADD_EXECUTABLE( AMRDualExtractor AMRDualExtractor.cxx )
TARGET_LINK_LIBRARIES( AMRDualExtractor 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
George Zagaris's avatar
George Zagaris committed
95
             ${VTK_HDF5_LIBRARIES}
96
97
             )

98
99
100
101
102
## Add AMRHomogenization
ADD_EXECUTABLE(AMRHomogenization AMRHomogenization.cxx)
TARGET_LINK_LIBRARIES( AMRHomogenization
                vtkGraphics
                vtkFiltering
George Zagaris's avatar
George Zagaris committed
103
104
105
106
107
108
109
110
111
112
113
114
115
                vtkRendering
                vtkIO
                vtkAMR
                vtkParallel
                ${MPI_LIBRARIES}
                ${VTK_HDF5_LIBRARIES}
                )

## Add AMR Slicer 
ADD_EXECUTABLE(AMRSlicer AMRSlicer.cxx)
TARGET_LINK_LIBRARIES( AMRSlicer
                vtkGraphics
                vtkFiltering
116
117
118
119
120
                vtkRendering
                vtkIO
                vtkAMR
                vtkParallel
                ${MPI_LIBRARIES}
George Zagaris's avatar
George Zagaris committed
121
                ${VTK_HDF5_LIBRARIES}
122
123
                )

124
125
126
127
128
129
130
131
132
133
134
135
136
## Add AMR Ghost Cell Extruder 
ADD_EXECUTABLE(AMRGhostCellExtruder AMRGhostCellExtruder.cxx)
TARGET_LINK_LIBRARIES( AMRGhostCellExtruder
                vtkGraphics
                vtkFiltering
                vtkRendering
                vtkIO
                vtkAMR
                vtkParallel
                ${MPI_LIBRARIES}
                ${VTK_HDF5_LIBRARIES}
                )
                
137
138
139
140
141
142
143
144
145
146
## Add Generate3DAMRDataSetWithPulse executable
ADD_EXECUTABLE( Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse
                       vtkGraphics
                       vtkFiltering
                       vtkRendering
                       vtkIO
                       vtkAMR
                       vtkParallel
                       ${MPI_LIBRARIES} 
George Zagaris's avatar
George Zagaris committed
147
                       ${VTK_HDF5_LIBRARIES}
148
                       )
149
150
151
152
153
154
155
156
157
158
159
                       
## Add Generate3DAMRDataSetWithPulse executable                        
ADD_EXECUTABLE( Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse
                       vtkGraphics
                       vtkFiltering
                       vtkRendering
                       vtkIO
                       vtkAMR
                       vtkParallel
                       ${MPI_LIBRARIES} 
George Zagaris's avatar
George Zagaris committed
160
                       ${VTK_HDF5_LIBRARIES}
161
                       )
162
163
164
165
166
167
168
169
170
171
172

## Add TestAMRProbe executable
ADD_EXECUTABLE( TestAMRProbe TestAMRProbe.cxx )
TARGET_LINK_LIBRARIES( TestAMRProbe 
                       vtkGraphics
                       vtkFiltering
                       vtkRendering
                       vtkIO
                       vtkAMR
                       vtkParallel
                       ${MPI_LIBRARIES} 
George Zagaris's avatar
George Zagaris committed
173
                       ${VTK_HDF5_LIBRARIES}
174
                      )
175
                                   
176
177
178
179
180
181
182
183
## Add TestImageDataToStructuredGridFilter
ADD_EXECUTABLE( TestImageDataToStructuredGridFilter 
                TestImageDataToStructuredGridFilter.cxx )
TARGET_LINK_LIBRARIES(TestImageDataToStructuredGridFilter
                      vtkGraphics
                      vtkIO
                      vtkFiltering 
                      )