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

Revision 10391, 1.8 kB (checked in by robert, 6 years ago)

Added explict search for stdint.h

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
[10391]9    ${FFMPEG_STDINT_INCLUDE_DIR}
[9948]10)
[9854]11
[9948]12LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS})
[9854]13
[9948]14SET(TARGET_EXTERNAL_LIBRARIES ${FFMPEG_LIBRARIES} )
[9854]15
16
17
[9998]18IF(FFMPEG_LIBSWSCALE_FOUND)
[9854]19
[9948]20    INCLUDE_DIRECTORIES( ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS} ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS}/libswscale )
[9854]21
[9948]22    ADD_DEFINITIONS(-DUSE_SWSCALE)
[9854]23
[9948]24    SET(TARGET_EXTERNAL_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBSWSCALE_LIBRARIES})
25
[9854]26ENDIF()
27
[9839]28# MESSAGE("FFMPEG_LIBAVFORMAT_INCLUDE_DIRS = "  ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} )
29# MESSAGE("FFMPEG_LIBAVDEVICE_INCLUDE_DIRS = "  ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} )
30# MESSAGE("FFMPEG_LIBAVCODEC_INCLUDE_DIRS = "  ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} )
31# MESSAGE("FFMPEG_LIBAVUTIL_INCLUDE_DIRS = "  ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} )
32# MESSAGE("FFMPEG_LIBRARIES = "  ${FFMPEG_LIBRARIES} )
[9818]33
[9816]34SET(TARGET_SRC
35    FFmpegClocks.cpp
36    FFmpegDecoderAudio.cpp
37    FFmpegDecoder.cpp
38    FFmpegDecoderVideo.cpp
39    FFmpegImageStream.cpp
[9847]40    FFmpegAudioStream.cpp
[9816]41    ReaderWriterFFmpeg.cpp
42)
43
44SET(TARGET_H
45    BoundedMessageQueue.hpp
46    FFmpegClocks.hpp
47    FFmpegDecoderAudio.hpp
48    FFmpegDecoder.hpp
49    FFmpegDecoderVideo.hpp
50    FFmpegHeaders.hpp
51    FFmpegPacket.hpp
[9847]52    FFmpegImageStream.hpp
53    FFmpegAudioStream.hpp
[9816]54    MessageQueue.hpp
55)
56
[10082]57IF(CMAKE_COMPILER_IS_GNUCXX)
58    # Remove -pedantic flag as it barfs on ffmoeg headers
59   STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
[9842]60
[10082]61ENDIF()
[9816]62
[10082]63
[9816]64#### end var setup  ###
[9839]65SETUP_PLUGIN(ffmpeg ffmpeg)
Note: See TracBrowser for help on using the browser.