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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(media_plugin_example)
  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(ExamplePlugin)
  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. ### media_plugin_example
  25. set(media_plugin_example_SOURCE_FILES
  26.     media_plugin_example.cpp
  27.     )
  28. add_library(media_plugin_example
  29.     SHARED
  30.     ${media_plugin_example_SOURCE_FILES}
  31. )
  32. target_link_libraries(media_plugin_example
  33.   ${LLPLUGIN_LIBRARIES}
  34.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  35.   ${LLCOMMON_LIBRARIES}
  36.   ${EXAMPLE_PLUGIN_LIBRARIES}
  37.   ${PLUGIN_API_WINDOWS_LIBRARIES}
  38. )
  39. add_dependencies(media_plugin_example
  40.   ${LLPLUGIN_LIBRARIES}
  41.   ${MEDIA_PLUGIN_BASE_LIBRARIES}
  42.   ${LLCOMMON_LIBRARIES}
  43. )
  44. if (WINDOWS)
  45.   set_target_properties(
  46.     media_plugin_example
  47.     PROPERTIES
  48.     LINK_FLAGS "/MANIFEST:NO"
  49.     )
  50. endif (WINDOWS)
  51. if (DARWIN)
  52.   # Don't prepend 'lib' to the executable name, and don't embed a full path in the library's install name
  53.   set_target_properties(
  54.     media_plugin_example
  55.     PROPERTIES
  56.     PREFIX ""
  57.     BUILD_WITH_INSTALL_RPATH 1
  58.     INSTALL_NAME_DIR "@executable_path"
  59.     LINK_FLAGS "-exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../base/media_plugin_base.exp"
  60.   )
  61. endif (DARWIN)