CMakeLists.txt 1.2 KB
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

5
6
7
8
if(POLICY CMP0020)
  cmake_policy(SET CMP0020 NEW) # remove if CMake >= 2.8.11 required
endif()

Bill Lorensen's avatar
Bill Lorensen committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if(NOT VTK_SOURCE_DIR)
  message(ERROR "Cannot build AMR examples without VTK_SOURCE_DIR")
endif()

if(NOT VTK_BINARY_DIR)
  find_package(VTK COMPONENTS
    vtkCommonCore
    vtkCommonDataModel
    vtkCommonExecutionModel
    vtkFiltersAMR
    vtkFiltersCore
    vtkFiltersExtraction
    vtkFiltersGeneral
    vtkFiltersGeometry
    vtkFiltersSources
    vtkIOXML
    vtkRenderingCore
    vtkRenderingOpenGL
    vtkTestingCore
)
include(${VTK_USE_FILE})
endif()

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

36
## Add HierarchicalBoxPipeline executable
Bill Lorensen's avatar
Bill Lorensen committed
37
38
add_executable(HierarchicalBoxPipeline MACOSX_BUNDLE HierarchicalBoxPipeline.cxx)
target_link_libraries(HierarchicalBoxPipeline ${VTK_LIBRARIES})
39
40

## Add AMR examples
Bill Lorensen's avatar
Bill Lorensen committed
41
42
add_executable( Generate3DAMRDataSetWithPulse MACOSX_BUNDLE Generate3DAMRDataSetWithPulse.cxx)
target_link_libraries( Generate3DAMRDataSetWithPulse ${VTK_LIBRARIES})
43

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