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

Revision 10082, 1.8 kB (checked in by robert, 5 years ago)

Quitened down warnings generated by ffmpeg headers by remove -pedantic from CMAKE_CXX_FLAGS

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
[9998]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
[10082]56IF(CMAKE_COMPILER_IS_GNUCXX)
57    # Remove -pedantic flag as it barfs on ffmoeg headers
58   STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
[9842]59
[10082]60ENDIF()
[9816]61
[10082]62
[9816]63#### end var setup  ###
[9839]64SETUP_PLUGIN(ffmpeg ffmpeg)
Note: See TracBrowser for help on using the browser.