Commit c41d826a authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix CMake install paths.

parent 6a70456f
......@@ -125,13 +125,15 @@ set_target_properties(mediastreamer_base PROPERTIES VERSION 2.10.0 SOVERSION 3)
target_link_libraries(mediastreamer_base ${BASE_LIBS})
install(TARGETS mediastreamer_base
DESTINATION ${LIB_INSTALL_DIR}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/mediastreamer_base.pdb
DESTINATION ${LIB_INSTALL_DIR}
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
......@@ -351,13 +353,15 @@ set_target_properties(mediastreamer_voip PROPERTIES VERSION 2.10.0 SOVERSION 3 L
target_link_libraries(mediastreamer_voip ${VOIP_LIBS})
install(TARGETS mediastreamer_voip
DESTINATION ${LIB_INSTALL_DIR}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/mediastreamer_voip.pdb
DESTINATION ${LIB_INSTALL_DIR}
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
......
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