PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/media_plugins/quicktime/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 91 lines | 71 code | 16 blank | 4 comment | 4 complexity | cdd6a25fbe9659a7aed73748ec9acccc MD5 | raw file
 1# -*- cmake -*-
 2
 3project(media_plugin_quicktime)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLImage)
 8include(LLPlugin)
 9include(LLMath)
10include(LLRender)
11include(LLWindow)
12include(Linking)
13include(PluginAPI)
14include(MediaPluginBase)
15include(FindOpenGL)
16include(QuickTimePlugin)
17
18include_directories(
19    ${LLPLUGIN_INCLUDE_DIRS}
20    ${MEDIA_PLUGIN_BASE_INCLUDE_DIRS}
21    ${LLCOMMON_INCLUDE_DIRS}
22    ${LLMATH_INCLUDE_DIRS}
23    ${LLIMAGE_INCLUDE_DIRS}
24    ${LLRENDER_INCLUDE_DIRS}
25    ${LLWINDOW_INCLUDE_DIRS}
26)
27
28if (DARWIN)
29    include(CMakeFindFrameworks)
30    find_library(CARBON_LIBRARY Carbon)
31endif (DARWIN)
32
33
34### media_plugin_quicktime
35
36set(media_plugin_quicktime_SOURCE_FILES
37    media_plugin_quicktime.cpp
38    )
39
40add_library(media_plugin_quicktime
41    SHARED
42    ${media_plugin_quicktime_SOURCE_FILES}
43)
44
45target_link_libraries(media_plugin_quicktime
46  ${LLPLUGIN_LIBRARIES}
47  ${MEDIA_PLUGIN_BASE_LIBRARIES}
48  ${LLCOMMON_LIBRARIES}
49  ${QUICKTIME_LIBRARY}
50  ${PLUGIN_API_WINDOWS_LIBRARIES}
51)
52
53add_dependencies(media_plugin_quicktime
54  ${LLPLUGIN_LIBRARIES}
55  ${MEDIA_PLUGIN_BASE_LIBRARIES}
56  ${LLCOMMON_LIBRARIES}
57)
58
59if (WINDOWS)
60  set_target_properties(
61    media_plugin_quicktime
62    PROPERTIES
63    LINK_FLAGS "/MANIFEST:NO"
64    )
65endif (WINDOWS)
66
67if (QUICKTIME)
68
69    add_definitions(-DLL_QUICKTIME_ENABLED=1)
70
71    if (DARWIN)
72      # Don't prepend 'lib' to the executable name, and don't embed a full path in the library's install name
73      set_target_properties(
74        media_plugin_quicktime
75        PROPERTIES
76        PREFIX ""
77        BUILD_WITH_INSTALL_RPATH 1
78        INSTALL_NAME_DIR "@executable_path"
79        LINK_FLAGS "-exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../base/media_plugin_base.exp"
80      )
81
82# We use a bunch of deprecated system APIs.
83    set_source_files_properties(
84        media_plugin_quicktime.cpp PROPERTIES
85        COMPILE_FLAGS -Wno-deprecated-declarations
86        )
87    find_library(CARBON_LIBRARY Carbon)
88    target_link_libraries(media_plugin_quicktime ${CARBON_LIBRARY})
89  endif (DARWIN)
90endif (QUICKTIME)
91