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

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

Ken Martin's avatar
updates  
Ken Martin committed
7
8
PROJECT (Step1)

Bill Lorensen's avatar
Bill Lorensen committed
9
10
11
12
13
14
15
16
if(NOT VTK_BINARY_DIR)
  FIND_PACKAGE(VTK COMPONENTS
    vtkFiltersSources
    vtkRenderingCore
    vtkRenderingOpenGL
  )
  include(${VTK_USE_FILE})
endif()
Ken Martin's avatar
updates  
Ken Martin committed
17

Bill Lorensen's avatar
Bill Lorensen committed
18
19
add_executable(Cone MACOSX_BUNDLE Cone.cxx)
target_link_libraries(Cone ${VTK_LIBRARIES})