Commit 227749cb authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Cleanup OggTheora support.

There was no way to know if vtkIOMovie had OggTheora support enabled. Hence
adding a vtkIOMovieConfigure file that has this configuration made available.
Now when OggTheora support is available, vtkIOMovieConfigure.h defines
VTK_HAS_OGGTHEORA_SUPPORT.

Change-Id: I1efe54cb43f3ea09ab36a7bfa5a6a13d9b5c0593
parent 443af9fa
......@@ -8,7 +8,10 @@ set_source_files_properties(
ABSTRACT
)
set (VTK_HAS_OGGTHEORA_SUPPORT)
if(vtkIOMovie_vtkoggtheora)
set (VTK_HAS_OGGTHEORA_SUPPORT TRUE)
list(APPEND Module_SRCS vtkOggTheoraWriter.cxx)
endif()
......@@ -23,6 +26,14 @@ if(WIN32 AND VTK_USE_VIDEO_FOR_WINDOWS)
list(APPEND Module_SRCS vtkAVIWriter.cxx)
endif()
# Configure the module specific settings into a module configured header.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/vtkIOMovieConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkIOMovieConfigure.h)
set(vtkIOMovie_HDRS
${CMAKE_CURRENT_BINARY_DIR}/vtkIOMovieConfigure.h)
vtk_module_library(vtkIOMovie ${Module_SRCS})
if(WIN32 AND VTK_USE_VIDEO_FOR_WINDOWS)
......
/*=========================================================================
Program: Visualization Toolkit
Module: vtkIOMovieConfigure.h.in
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkIOMovieConfigure_h
#define __vtkIOMovieConfigure_h
/* This header contains build settings for the vtkIOMovie module */
// If vtkOggTheoraWriter is enabled.
#cmakedefine VTK_HAS_OGGTHEORA_SUPPORT
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment