Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

CMakeLists.txt 4.91 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
33
34
35
36
37
38
39
40
41
42
TARGET_LINK_LIBRARIES(TestAMRBoxGhostCellExtrusion vtkFiltering)

## 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
43
             ${VTK_HDF5_LIBRARIES}
44
             )
45

46
47
48
49
50
51
52
53
54
55
56
57
58
## Add AMRDataTransferPipeline executable
ADD_EXECUTABLE(enzo2vth enzo2vth.cxx)
TARGET_LINK_LIBRARIES( enzo2vth 
             vtkGraphics
             vtkFiltering
             vtkRendering 
             vtkIO 
             vtkAMR 
             vtkParallel
             ${MPI_LIBRARIES} 
             ${VTK_HDF5_LIBRARIES}
             )
             
59
60
61
62
63
64
65
66
67
68
## 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
69
             ${VTK_HDF5_LIBRARIES}
70
71
             )

72
73
74
75
76
## Add AMRHomogenization
ADD_EXECUTABLE(AMRHomogenization AMRHomogenization.cxx)
TARGET_LINK_LIBRARIES( AMRHomogenization
                vtkGraphics
                vtkFiltering
George Zagaris's avatar
George Zagaris committed
77
78
79
80
81
82
83
84
85
86
87
88
89
                vtkRendering
                vtkIO
                vtkAMR
                vtkParallel
                ${MPI_LIBRARIES}
                ${VTK_HDF5_LIBRARIES}
                )

## Add AMR Slicer 
ADD_EXECUTABLE(AMRSlicer AMRSlicer.cxx)
TARGET_LINK_LIBRARIES( AMRSlicer
                vtkGraphics
                vtkFiltering
90
91
92
93
94
                vtkRendering
                vtkIO
                vtkAMR
                vtkParallel
                ${MPI_LIBRARIES}
George Zagaris's avatar
George Zagaris committed
95
                ${VTK_HDF5_LIBRARIES}
96
97
                )

98
99
100
101
102
103
104
105
106
107
108
109
110
## 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}
                )
                
111
112
113
114
115
116
117
118
119
120
## 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
121
                       ${VTK_HDF5_LIBRARIES}
122
                       )
123
124
125
126
127
128
129
130
131
132
133
                       
## 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
134
                       ${VTK_HDF5_LIBRARIES}
135
                       )
136
137
138
139
140
141
142
143
144
145
146

## 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
147
                       ${VTK_HDF5_LIBRARIES}
148
                      )
149
                                   
150
151
152
153
154
155
156
157
## Add TestImageDataToStructuredGridFilter
ADD_EXECUTABLE( TestImageDataToStructuredGridFilter 
                TestImageDataToStructuredGridFilter.cxx )
TARGET_LINK_LIBRARIES(TestImageDataToStructuredGridFilter
                      vtkGraphics
                      vtkIO
                      vtkFiltering 
                      )