VTK/Examples/Cxx/Broken/TextExtraction

From KitwarePublic
< VTK‎ | Examples‎ | Cxx
Revision as of 13:35, 2 September 2010 by Daviddoria (talk | contribs) (Created page with "VTK must be built with VTK_USE_TEXTANALYSIS turned ON. ==TextExtraction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkTextExtraction.h> int main(int, char...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

VTK must be built with VTK_USE_TEXTANALYSIS turned ON.

TextExtraction.cxx

#include <vtkSmartPointer.h>
#include <vtkTextExtraction.h>

int main(int, char*[])
{
  vtkSmartPointer<vtkTextExtraction> textExtraction = 
    vtkSmartPointer<vtkTextExtraction>::New();
  
  return EXIT_SUCCESS;
}

CMakeLists.txt

cmake_minimum_required(VERSION 2.6)

PROJECT(TextExtraction)

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE(TextExtraction TextExtraction.cxx)
TARGET_LINK_LIBRARIES(TextExtraction vtkHybrid vtkTextAnalysis)