CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:2k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(media_plugin_gstreamer010)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLImage)
  6. include(LLPlugin)
  7. include(LLMath)
  8. include(LLRender)
  9. include(LLWindow)
  10. include(Linking)
  11. include(PluginAPI)
  12. include(MediaPluginBase)
  13. include(FindOpenGL)
  14. include(GStreamer010Plugin)
  15. include_directories(
  16.     ${LLPLUGIN_INCLUDE_DIRS}
  17.     ${MEDIA_PLUGIN_BASE_INCLUDE_DIRS}
  18.     ${LLCOMMON_INCLUDE_DIRS}
  19.     ${LLMATH_INCLUDE_DIRS}
  20.     ${LLIMAGE_INCLUDE_DIRS}
  21.     ${LLRENDER_INCLUDE_DIRS}
  22.     ${LLWINDOW_INCLUDE_DIRS}
  23.     ${GSTREAMER010_INCLUDE_DIRS}
  24.     ${GSTREAMER010_PLUGINS_BASE_INCLUDE_DIRS}
  25. )
  26. ### media_plugin_gstreamer010
  27. set(media_plugin_gstreamer010_SOURCE_FILES
  28.     media_plugin_gstreamer010.cpp
  29.     llmediaimplgstreamer_syms.cpp
  30.     llmediaimplgstreamervidplug.cpp
  31.     )
  32. set(media_plugin_gstreamer010_HEADER_FILES
  33.     llmediaimplgstreamervidplug.h
  34.     llmediaimplgstreamer_syms.h
  35.     llmediaimplgstreamertriviallogging.h
  36.     )
  37. if (${CXX_VERSION_NUMBER} MATCHES "4[23].")
  38.     # Work around a bad interaction between broken gstreamer headers and
  39.     # g++ 4.3's increased strictness.
  40.     set_source_files_properties(llmediaimplgstreamervidplug.cpp PROPERTIES
  41.                                 COMPILE_FLAGS -Wno-write-strings)
  42. endif (${CXX_VERSION_NUMBER} MATCHES "4[23].")
  43. add_library(media_plugin_gstreamer010
  44.     SHARED
  45.     ${media_plugin_gstreamer010_SOURCE_FILES}
  46. )
  47. target_link_libraries(media_plugin_gstreamer010
  48.   ${LLPLUGIN_LIBRARIES}
  49.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  50.   ${LLCOMMON_LIBRARIES}
  51.   ${PLUGIN_API_WINDOWS_LIBRARIES}
  52.   ${GSTREAMER010_LIBRARIES}
  53. )
  54. add_dependencies(media_plugin_gstreamer010
  55.   ${LLPLUGIN_LIBRARIES}
  56.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  57.   ${LLCOMMON_LIBRARIES}
  58. )