Commit f7a62bed authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkIOVideo: update to the new module system

parent 614dca7d
......@@ -2,8 +2,8 @@
IF(NOT DEFINED VTK_USE_VIDEO_FOR_WINDOWS)
MESSAGE(STATUS "Checking if vfw32 is available")
TRY_COMPILE(VTK_USE_VIDEO_FOR_WINDOWS_DEFAULT
${VTK_BINARY_DIR}/CMakeTmp
${VTK_CMAKE_DIR}/vtkTestvfw32.cxx
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
${CMAKE_CURRENT_LIST_DIR}/vtkTestvfw32.cxx
CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=vfw32"
OUTPUT_VARIABLE OUTPUT)
IF(VTK_USE_VIDEO_FOR_WINDOWS_DEFAULT)
......@@ -29,8 +29,8 @@ IF(VTK_USE_VIDEO_FOR_WINDOWS)
IF(NOT DEFINED VTK_VFW_SUPPORTS_CAPTURE)
MESSAGE(STATUS "Checking if vfw32 supports video capture")
TRY_COMPILE(VTK_VFW_SUPPORTS_CAPTURE
${VTK_BINARY_DIR}/CMakeTmp
${VTK_CMAKE_DIR}/vtkTestvfw32Capture.cxx
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
${CMAKE_CURRENT_LIST_DIR}/vtkTestvfw32Capture.cxx
CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=vfw32"
OUTPUT_VARIABLE OUTPUT)
IF(VTK_VFW_SUPPORTS_CAPTURE)
......
set(Module_SRCS
vtkVideoSource.cxx
)
set(classes
vtkVideoSource)
if(WIN32)
if (WIN32)
include(vtkTestVideoForWindows)
if(VTK_VFW_SUPPORTS_CAPTURE)
list(APPEND Module_SRCS vtkWin32VideoSource.cxx)
endif()
if (VTK_VFW_SUPPORTS_CAPTURE)
list(APPEND classes vtkWin32VideoSource)
endif ()
if(VTK_USE_MATROX_IMAGING)
list(APPEND Module_SRCS vtkMILVideoSource.cxx)
if (VTK_USE_MATROX_IMAGING)
# Include directory needed for vtkMILVideoSource.cxx.
endif()
endif()
list(APPEND classes vtkMILVideoSource)
endif ()
endif ()
vtk_module_library(vtkIOVideo ${Module_SRCS})
vtk_module_add_module(VTK::IOVideo
CLASSES ${classes})
if(WIN32 AND VTK_USE_VIDEO_FOR_WINDOWS)
vtk_module_link_libraries(vtkIOVideo LINK_PRIVATE vfw32)
endif()
if (WIN32 AND VTK_USE_VIDEO_FOR_WINDOWS)
vtk_module_link(VTK::IOVideo
PRIVATE
vfw32)
endif ()
vtk_module(vtkIOVideo
GROUPS
StandAlone
KIT
vtkIO
DEPENDS
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonSystem
vtksys
)
\ No newline at end of file
NAME
VTK::IOVideo
LIBRARY_NAME
vtkIOVideo
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonSystem
VTK::vtksys
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