VTK/Examples/Cxx/Utilities/WishList/vtkTryDowncast

From KitwarePublic

Jump to: navigation, search

vtkTryDowncast.cxx

#include <vtkSmartPointer.h>
#include <vtkTryDowncast.h>
 
int main(int, char *[])
{
  // Demonstrate a check of a cast
  return EXIT_SUCCESS;
}

CMakeLists.txt

cmake_minimum_required(VERSION 2.6)
PROJECT(TryDowncast)
 
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
 
ADD_EXECUTABLE(TryDowncast TryDowncast.cxx)
TARGET_LINK_LIBRARIES(TryDowncast vtkHybrid)
Personal tools