PROJECT (${WIKI}Video)

IF(NOT WikiExamples_BINARY_DIR)
FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})
ENDIF(NOT WikiExamples_BINARY_DIR)

IF(WIN32)
  IF(VTK_USE_VIDEO_FOR_WINDOWS)
    SET(Kit_SRCS ${Kit_SRCS} vtkAVIWriter.cxx)
    SET(KIT_LIBS ${KIT_LIBS} vfw32)
  ENDIF(VTK_USE_VIDEO_FOR_WINDOWS)
ENDIF(WIN32)

# IF(VTK_USE_VIDEO_FOR_WINDOWS)
#   ADD_EXECUTABLE(AVI ${EXECUTABLE_FLAG} AVI.cxx)
#   TARGET_LINK_LIBRARIES(AVI vtkHybrid ${KIT_LIBS})
# ENDIF(VTK_USE_VIDEO_FOR_WINDOWS)

IF (VTK_USE_MPEG2_ENCODER)
  ADD_EXECUTABLE(MPEG2 ${EXECUTABLE_FLAG} MPEG2.cxx)
  TARGET_LINK_LIBRARIES(MPEG2 ${KIT_LIBS})
ENDIF (VTK_USE_MPEG2_ENCODER)

IF (VTK_USE_FFMPEG_ENCODER)
  ADD_EXECUTABLE(FFMPEG ${EXECUTABLE_FLAG} FFMPEG.cxx)
  TARGET_LINK_LIBRARIES(FFMPEG ${KIT_LIBS})
ENDIF (VTK_USE_FFMPEG_ENCODER)

IF(VTK_USE_OGGTHEORA_ENCODER)
  ADD_EXECUTABLE(OggTheora ${EXECUTABLE_FLAG} OggTheora.cxx)
  TARGET_LINK_LIBRARIES(OggTheora ${KIT_LIBS})
ENDIF(VTK_USE_OGGTHEORA_ENCODER)
