mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
828 B
CMake
29 lines
828 B
CMake
set(OSG_FFMPEG_VIDEOPLAYER_LIBRARY "osg-ffmpeg-videoplayer")
|
|
|
|
# Sources
|
|
|
|
set(OSG_FFMPEG_VIDEOPLAYER_SOURCE_FILES
|
|
videoplayer.cpp
|
|
videostate.cpp
|
|
videodefs.hpp
|
|
audiodecoder.cpp
|
|
audiofactory.hpp
|
|
)
|
|
|
|
include_directories(${FFmpeg_INCLUDE_DIRS})
|
|
add_library(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} STATIC ${OSG_FFMPEG_VIDEOPLAYER_SOURCE_FILES})
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${FFmpeg_LIBRARIES})
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${OSG_LIBRARIES})
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
|
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PUBLIC
|
|
<memory>
|
|
<string>
|
|
<vector>
|
|
)
|
|
|
|
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PRIVATE <algorithm>)
|
|
endif()
|