CMakeLists.txt 500 Bytes
Newer Older
Bill Lorensen's avatar
Bill Lorensen committed
1
cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
2 3 4
if(POLICY CMP0025)
  cmake_policy(SET CMP0025 NEW) # CMake 3.0
endif()
5 6 7
if(POLICY CMP0053)
  cmake_policy(SET CMP0053 NEW) # CMake 3.1
endif()
Bill Lorensen's avatar
Bill Lorensen committed
8

9 10
PROJECT (Step6)

11 12 13
find_package(VTK REQUIRED)
vtk_module_config(VTK
  vtkCommonCore
14
  vtkFiltersSources
15
  vtkInteractionStyle
16
  vtkInteractionWidgets
17
  vtkRendering${VTK_RENDERING_BACKEND}
Bill Lorensen's avatar
Bill Lorensen committed
18
)
19
include(${VTK_USE_FILE})
20

Bill Lorensen's avatar
Bill Lorensen committed
21 22
add_executable(Cone6 MACOSX_BUNDLE Cone6.cxx)
target_link_libraries(Cone6 ${VTK_LIBRARIES})