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

Install pdb file for Debug configuration on Windows when using cmake.

parent ce1127bb
......@@ -96,9 +96,19 @@ set_target_properties(libmediastreamer_base PROPERTIES VERSION 2.9.2 SOVERSION 3
target_link_libraries(libmediastreamer_base ${BASE_LIBS})
install(TARGETS libmediastreamer_base
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
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/libmediastreamer_base.pdb
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
endif(WIN32)
if(USE_INSTALLED_COMPONENTS)
add_dependencies(libmediastreamer_base INSTALL_libortp)
......@@ -206,6 +216,7 @@ if(MS2_ENABLE_VIDEO)
list(APPEND VOIP_SOURCE_FILES videofilters/vp8.c)
endif(MS2_ENABLE_VPX)
if(WIN32)
add_definitions(-DHAVE_DIRECTSHOW)
list(APPEND VOIP_SOURCE_FILES
videofilters/msdscap-mingw.cc
videofilters/drawdib-display.c
......@@ -278,9 +289,19 @@ set_target_properties(libmediastreamer_voip PROPERTIES VERSION 2.9.2 SOVERSION 3
target_link_libraries(libmediastreamer_voip ${VOIP_LIBS})
install(TARGETS libmediastreamer_voip
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
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/libmediastreamer_voip.pdb
COMPONENT COMP_libmediastreamer2
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
endif(WIN32)
if(USE_INSTALLED_COMPONENTS)
add_dependencies(libmediastreamer_voip
......
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