root/OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/CMakeLists.txt @ 9948

Revision 9948, 1.6 kB (checked in by robert, 5 years ago)

From David Callu, clean up of FindFFmpeg include paths

RevLine 
[9818]1# INCLUDE_DIRECTORIES( ${FFMPEG_INCLUDE_DIRS} )
[9816]2
[9818]3
[9948]4INCLUDE_DIRECTORIES(
5    ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat
6    ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice
7    ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}/libavcodec
8    ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
9)
[9854]10
[9948]11LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS})
[9854]12
[9948]13SET(TARGET_EXTERNAL_LIBRARIES ${FFMPEG_LIBRARIES} )
[9854]14
15
16
[9948]17IF (FFMPEG_LIBSWSCALE_FOUND)
[9854]18
[9948]19    INCLUDE_DIRECTORIES( ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS} ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS}/libswscale )
[9854]20
[9948]21    ADD_DEFINITIONS(-DUSE_SWSCALE)
[9854]22
[9948]23    SET(TARGET_EXTERNAL_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBSWSCALE_LIBRARIES})
24
[9854]25ENDIF()
26
[9839]27# MESSAGE("FFMPEG_LIBAVFORMAT_INCLUDE_DIRS = "  ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} )
28# MESSAGE("FFMPEG_LIBAVDEVICE_INCLUDE_DIRS = "  ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} )
29# MESSAGE("FFMPEG_LIBAVCODEC_INCLUDE_DIRS = "  ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} )
30# MESSAGE("FFMPEG_LIBAVUTIL_INCLUDE_DIRS = "  ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} )
31# MESSAGE("FFMPEG_LIBRARIES = "  ${FFMPEG_LIBRARIES} )
[9818]32
[9816]33SET(TARGET_SRC
34    FFmpegClocks.cpp
35    FFmpegDecoderAudio.cpp
36    FFmpegDecoder.cpp
37    FFmpegDecoderVideo.cpp
38    FFmpegImageStream.cpp
[9847]39    FFmpegAudioStream.cpp
[9816]40    ReaderWriterFFmpeg.cpp
41)
42
43SET(TARGET_H
44    BoundedMessageQueue.hpp
45    FFmpegClocks.hpp
46    FFmpegDecoderAudio.hpp
47    FFmpegDecoder.hpp
48    FFmpegDecoderVideo.hpp
49    FFmpegHeaders.hpp
50    FFmpegPacket.hpp
[9847]51    FFmpegImageStream.hpp
52    FFmpegAudioStream.hpp
[9816]53    MessageQueue.hpp
54)
55
[9842]56
[9816]57
58#### end var setup  ###
[9839]59SETUP_PLUGIN(ffmpeg ffmpeg)
Note: See TracBrowser for help on using the browser.