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
|
|
|
libavwrapper.cpp
|
|
|
|
audiodecoder.cpp
|
2014-10-22 20:41:05 +00:00
|
|
|
audiofactory.hpp
|
2014-10-22 20:11:03 +00:00
|
|
|
)
|
|
|
|
|
2015-06-16 17:53:41 +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})
|
2015-06-13 19:11:24 +00:00
|
|
|
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${FFMPEG_LIBRARIES} ${Boost_THREAD_LIBRARY})
|
2014-10-22 20:11:03 +00:00
|
|
|
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|