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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(media_plugin_quicktime)
  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(QuickTimePlugin)
  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. )
  24. if (DARWIN)
  25.     include(CMakeFindFrameworks)
  26.     find_library(CARBON_LIBRARY Carbon)
  27. endif (DARWIN)
  28. ### media_plugin_quicktime
  29. set(media_plugin_quicktime_SOURCE_FILES
  30.     media_plugin_quicktime.cpp
  31.     )
  32. add_library(media_plugin_quicktime
  33.     SHARED
  34.     ${media_plugin_quicktime_SOURCE_FILES}
  35. )
  36. target_link_libraries(media_plugin_quicktime
  37.   ${LLPLUGIN_LIBRARIES}
  38.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  39.   ${LLCOMMON_LIBRARIES}
  40.   ${QUICKTIME_LIBRARY}
  41.   ${PLUGIN_API_WINDOWS_LIBRARIES}
  42. )
  43. add_dependencies(media_plugin_quicktime
  44.   ${LLPLUGIN_LIBRARIES}
  45.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  46.   ${LLCOMMON_LIBRARIES}
  47. )
  48. if (WINDOWS)
  49.   set_target_properties(
  50.     media_plugin_quicktime
  51.     PROPERTIES
  52.     LINK_FLAGS "/MANIFEST:NO"
  53.     )
  54. endif (WINDOWS)
  55. if (QUICKTIME)
  56.     add_definitions(-DLL_QUICKTIME_ENABLED=1)
  57.     if (DARWIN)
  58.       # Don't prepend 'lib' to the executable name, and don't embed a full path in the library's install name
  59.       set_target_properties(
  60.         media_plugin_quicktime
  61.         PROPERTIES
  62.         PREFIX ""
  63.         BUILD_WITH_INSTALL_RPATH 1
  64.         INSTALL_NAME_DIR "@executable_path"
  65.         LINK_FLAGS "-exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../base/media_plugin_base.exp"
  66.       )
  67. # We use a bunch of deprecated system APIs.
  68.     set_source_files_properties(
  69.         media_plugin_quicktime.cpp PROPERTIES
  70.         COMPILE_FLAGS -Wno-deprecated-declarations
  71.         )
  72.     find_library(CARBON_LIBRARY Carbon)
  73.     target_link_libraries(media_plugin_quicktime ${CARBON_LIBRARY})
  74.   endif (DARWIN)
  75. endif (QUICKTIME)