cmake_minimum_required(VERSION 2.8)

PROJECT(StructuredGridToUnstructuredGrid)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(StructuredGridToUnstructuredGrid MACOSX_BUNDLE StructuredGridToUnstructuredGrid vtkCleanUnstructuredGrid.cxx vtkCleanUnstructuredGridCells.cxx)

if(VTK_LIBERARIES)
  target_link_libraries(StructuredGridToUnstructuredGrid ${VTK_LIBRARIES})
else()
  target_link_libraries(StructuredGridToUnstructuredGrid vtkHybrid)
endif()
