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

Include Microsoft redistributable libraries in the desktop package on Windows.

parent 49a88d96
......@@ -86,11 +86,18 @@ install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/"
PATTERN "bin/xmlwf.exe" EXCLUDE
)
if(WIN32)
if(MSVC)
install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/lib/mediastreamer/plugins/"
DESTINATION "lib/mediastreamer/plugins"
FILES_MATCHING PATTERN "*mswasapi*.dll"
)
string(REGEX REPLACE "Visual Studio ([0-9]+).*" "\\1" MSVC_VERSION "${CMAKE_GENERATOR}")
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(MSVC_DEBUG_SYSTEM_LIBRARIES "d")
endif()
find_file(MSVCP_LIB "msvcp${MSVC_VERSION}0${MSVC_DEBUG_SYSTEM_LIBRARIES}.dll" PATHS "C:/Windows/System32")
find_file(MSVCR_LIB "msvcr${MSVC_VERSION}0${MSVC_DEBUG_SYSTEM_LIBRARIES}.dll" PATHS "C:/Windows/System32")
install(FILES ${MSVCP_LIB} ${MSVCR_LIB} DESTINATION "bin")
endif()
set(CPACK_PACKAGE_NAME "Linphone")
......
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