vtk_module_third_party(
  INTERNAL
    LICENSE_FILES "vtktheora/COPYING"
    VERSION       "1.1.1"
    STANDARD_INCLUDE_DIRS
  EXTERNAL
    PACKAGE theora
    TARGETS theora::theora
            theora::theoradec
            theora::theoraenc
    STANDARD_INCLUDE_DIRS)

configure_file(
  "${CMAKE_CURRENT_SOURCE_DIR}/vtk_theora.h.in"
  "${CMAKE_CURRENT_BINARY_DIR}/vtk_theora.h")

vtk_module_install_headers(
  FILES "${CMAKE_CURRENT_BINARY_DIR}/vtk_theora.h")
