CMakeLists.txt 1002 Bytes
Newer Older
Bill Lorensen's avatar
Bill Lorensen committed
1
cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
2

Bill Lorensen's avatar
Bill Lorensen committed
3
PROJECT (AMR)
4

Bill Lorensen's avatar
Bill Lorensen committed
5
if(NOT VTK_SOURCE_DIR)
6
  message(ERROR " Cannot build AMR examples without VTK_SOURCE_DIR")
Bill Lorensen's avatar
Bill Lorensen committed
7
8
endif()

9
10
11
12
13
14
15
16
17
18
19
find_package(VTK COMPONENTS
  vtkCommonCore
  vtkFiltersAMR
  vtkFiltersExtraction
  vtkFiltersGeometry
  vtkFiltersSources
  vtkIOLegacy
  vtkIOXML
  vtkInteractionStyle
  vtkRenderingOpenGL
  vtkTestingCore
Bill Lorensen's avatar
Bill Lorensen committed
20
21
22
23
24
25
)
include(${VTK_USE_FILE})

include_directories(
  ${VTK_SOURCE_DIR}/Testing/Core
)
26

27
## Add HierarchicalBoxPipeline executable
Bill Lorensen's avatar
Bill Lorensen committed
28
29
add_executable(HierarchicalBoxPipeline MACOSX_BUNDLE HierarchicalBoxPipeline.cxx)
target_link_libraries(HierarchicalBoxPipeline ${VTK_LIBRARIES})
30
31

## Add AMR examples
Bill Lorensen's avatar
Bill Lorensen committed
32
33
add_executable( Generate3DAMRDataSetWithPulse MACOSX_BUNDLE Generate3DAMRDataSetWithPulse.cxx)
target_link_libraries( Generate3DAMRDataSetWithPulse ${VTK_LIBRARIES})
34

Bill Lorensen's avatar
Bill Lorensen committed
35
36
add_executable( Generate2DAMRDataSetWithPulse MACOSX_BUNDLE Generate2DAMRDataSetWithPulse.cxx)
target_link_libraries(Generate2DAMRDataSetWithPulse ${VTK_LIBRARIES})