2015-04-19 18:14:06 +00:00
|
|
|
set(OSG_FFMPEG_VIDEOPLAYER_LIBRARY "osg-ffmpeg-videoplayer")
|
2014-10-22 20:11:03 +00:00
|
|
|
|
|
|
|
# Sources
|
|
|
|
|
2015-04-19 18:14:06 +00:00
|
|
|
set(OSG_FFMPEG_VIDEOPLAYER_SOURCE_FILES
|
2014-10-24 19:19:17 +00:00
|
|
|
videoplayer.cpp
|
|
|
|
videostate.cpp
|
|
|
|
videodefs.hpp
|
2014-10-22 20:11:03 +00:00
|
|
|
audiodecoder.cpp
|
2014-10-22 20:41:05 +00:00
|
|
|
audiofactory.hpp
|
2014-10-22 20:11:03 +00:00
|
|
|
)
|
|
|
|
|
2016-05-09 14:24:17 +00:00
|
|
|
include_directories(${FFmpeg_INCLUDE_DIRS})
|
2015-04-19 18:14:06 +00:00
|
|
|
add_library(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} STATIC ${OSG_FFMPEG_VIDEOPLAYER_SOURCE_FILES})
|
2022-05-22 00:32:41 +00:00
|
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${FFmpeg_LIBRARIES})
|
2021-01-20 02:25:46 +00:00
|
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${OSG_LIBRARIES})
|
2023-11-24 13:26:53 +00:00
|
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} SDL2::SDL2)
|
2014-10-22 20:11:03 +00:00
|
|
|
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2022-07-01 14:05:17 +00:00
|
|
|
|
2024-03-08 00:22:42 +00:00
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
2022-07-01 14:05:17 +00:00
|
|
|
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PUBLIC
|
|
|
|
<memory>
|
|
|
|
<string>
|
|
|
|
<vector>
|
|
|
|
)
|
|
|
|
|
|
|
|
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PRIVATE <algorithm>)
|
|
|
|
endif()
|