Commit 04dade95 authored by Julien Wadel's avatar Julien Wadel

Merge branch 'feature/ms2_macos_plugins' into 'master'

Change installation directory of ms2 plugins on macos

See merge request !3
parents 8dda204a ef7c6685
......@@ -61,12 +61,14 @@ set(SOURCE_FILES
silk_enc.c
)
set(MS2_PLUGINS_DIR "${MEDIASTREAMER2_PLUGINS_LOCATION}")
if(ENABLE_STATIC)
add_library(mssilk-static STATIC ${SOURCE_FILES})
set_target_properties(mssilk-static PROPERTIES OUTPUT_NAME mssilk)
target_link_libraries(mssilk-static ${LIBS})
install(TARGETS mssilk-static
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
ARCHIVE DESTINATION "${MS2_PLUGINS_DIR}"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
......@@ -96,9 +98,9 @@ if(ENABLE_SHARED)
set_target_properties(mssilk PROPERTIES PREFIX "lib")
endif()
install(TARGETS mssilk
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
RUNTIME DESTINATION ${MS2_PLUGINS_DIR}
LIBRARY DESTINATION ${MS2_PLUGINS_DIR}
ARCHIVE DESTINATION ${MS2_PLUGINS_DIR}
FRAMEWORK DESTINATION Frameworks
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment