Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Scott Wittenburg
VTK
Commits
de1b8451
Commit
de1b8451
authored
Jan 10, 2018
by
Utkarsh Ayachit
⛰
Committed by
Ben Boeckel
Jan 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtkIOFFMPEG: update to the new module system
parent
adc23470
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
37 deletions
+37
-37
IO/FFMPEG/CMakeLists.txt
IO/FFMPEG/CMakeLists.txt
+15
-18
IO/FFMPEG/module.cmake
IO/FFMPEG/module.cmake
+0
-19
IO/FFMPEG/vtk.module
IO/FFMPEG/vtk.module
+22
-0
No files found.
IO/FFMPEG/CMakeLists.txt
View file @
de1b8451
find_package
(
FFMPEG 2.3.3 REQUIRED
vtk_module_find_package
(
PACKAGE FFMPEG
VERSION 2.3.3
FORWARD_VERSION_REQ MINOR
COMPONENTS
avformat
avcodec
avutil
swscale
)
set
(
Module_SRCS
vtkFFMPEGWriter
.cxx
)
set
(
classes
vtkFFMPEGWriter
)
set_source_files_properties
(
vtkFFMPEGWriter.cxx
PROPERTIES
...
...
@@ -14,21 +17,15 @@ set_source_files_properties(vtkFFMPEGWriter.cxx
# vtkFFMPEGVideoSource requires ffmpeg 3.1 or later.
if
(
NOT FFMPEG_VERSION VERSION_LESS
"3.1"
)
list
(
APPEND
Module_SRCS
vtkFFMPEGVideoSource
.cxx
)
list
(
APPEND
classes
vtkFFMPEGVideoSource
)
endif
()
set
(
ffmpeg_libs
${
FFMPEG_avformat_LIBRARIES
}
${
FFMPEG_avcodec_LIBRARIES
}
${
FFMPEG_avutil_LIBRARIES
}
${
FFMPEG_swscale_LIBRARIES
}
)
vtk_module_library
(
vtkIOFFMPEG
${
Module_SRCS
}
)
target_include_directories
(
vtkIOFFMPEG
PRIVATE
${
FFMPEG_INCLUDE_DIRS
}
)
target_link_libraries
(
vtkIOFFMPEG
vtk_module_add_module
(
VTK::IOFFMPEG
CLASSES
${
classes
}
)
vtk_module_link
(
VTK::IOFFMPEG
PRIVATE
${
ffmpeg_libs
}
)
FFMPEG::avformat
FFMPEG::avcodec
FFMPEG::avutil
FFMPEG::swscale
)
IO/FFMPEG/module.cmake
deleted
100644 → 0
View file @
adc23470
vtk_module
(
vtkIOFFMPEG
TEST_DEPENDS
vtkTestingCore
vtkImagingSources
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkIOMovie
vtkIOVideo
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonMisc
vtkCommonSystem
vtksys
)
IO/FFMPEG/vtk.module
0 → 100644
View file @
de1b8451
NAME
VTK
::
IOFFMPEG
LIBRARY_NAME
vtkIOFFMPEG
KIT
VTK
::
IO
DEPENDS
VTK
::
IOMovie
VTK
::
IOVideo
PRIVATE_DEPENDS
VTK
::
CommonCore
VTK
::
CommonDataModel
VTK
::
CommonMisc
VTK
::
CommonSystem
VTK
::
vtksys
TEST_DEPENDS
VTK
::
ImagingCore
VTK
::
ImagingSources
VTK
::
InteractionStyle
VTK
::
RenderingOpenGL2
VTK
::
TestingCore
VTK
::
TestingRendering
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment