diff options
Diffstat (limited to 'indra/media_plugins')
-rw-r--r-- | indra/media_plugins/CMakeLists.txt | 8 | ||||
-rw-r--r-- | indra/media_plugins/cef/CMakeLists.txt | 16 | ||||
-rw-r--r-- | indra/media_plugins/libvlc/CMakeLists.txt | 11 |
3 files changed, 28 insertions, 7 deletions
diff --git a/indra/media_plugins/CMakeLists.txt b/indra/media_plugins/CMakeLists.txt index fe0a0f0796..20a8a74042 100644 --- a/indra/media_plugins/CMakeLists.txt +++ b/indra/media_plugins/CMakeLists.txt @@ -2,16 +2,16 @@ add_subdirectory(base) -if (LINUX OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_subdirectory(libvlc) add_subdirectory(example) -endif (LINUX OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") -if (DARWIN) +if (DARWIN OR LINUX) add_subdirectory(cef) add_subdirectory(libvlc) add_subdirectory(example) -endif (DARWIN) +endif (DARWIN OR LINUX) if (WINDOWS) add_subdirectory(cef) diff --git a/indra/media_plugins/cef/CMakeLists.txt b/indra/media_plugins/cef/CMakeLists.txt index 410778114d..15b2d71923 100644 --- a/indra/media_plugins/cef/CMakeLists.txt +++ b/indra/media_plugins/cef/CMakeLists.txt @@ -32,8 +32,9 @@ set(media_plugin_cef_HEADER_FILES # Select which VolumeCatcher implementation to use if (LINUX) - message(FATAL_ERROR "CEF plugin has been enabled for a Linux compile.\n" - " Please create a volume_catcher implementation for this platform.") +# message(FATAL_ERROR "CEF plugin has been enabled for a Linux compile.\n" +# " Please create a volume_catcher implementation for this platform.") + list(APPEND media_plugin_cef_SOURCE_FILES mac_volume_catcher_null.cpp) elseif (DARWIN) list(APPEND media_plugin_cef_SOURCE_FILES mac_volume_catcher_null.cpp) find_library(CORESERVICES_LIBRARY CoreServices) @@ -90,3 +91,14 @@ if (DARWIN) ) endif (DARWIN) + +if (INSTALL) + if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu) + set(_LIB lib/${ARCH}-linux-gnu) + elseif (EXISTS /lib64) + set(_LIB lib64) + else () + set(_LIB lib) + endif () + install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB}) +endif () diff --git a/indra/media_plugins/libvlc/CMakeLists.txt b/indra/media_plugins/libvlc/CMakeLists.txt index 9e5c0abb62..d5d9a5d147 100644 --- a/indra/media_plugins/libvlc/CMakeLists.txt +++ b/indra/media_plugins/libvlc/CMakeLists.txt @@ -56,4 +56,13 @@ if (DARWIN) endif (DARWIN) -include(LibraryInstall) +if (INSTALL) + if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu) + set(_LIB lib/${ARCH}-linux-gnu) + elseif (EXISTS /lib64) + set(_LIB lib64) + else () + set(_LIB lib) + endif () + install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB}) +endif () |