Commit 34ced926 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Link ms2 against srtp when building with CMake.

parent a178ac44
find_library(LIBSRTP NAMES srtp)
find_library(LIBORTP NAMES ortp)
if(MS2_ENABLE_GSM)
find_library(LIBGSM NAMES gsm)
......@@ -117,7 +118,7 @@ if(WIN32)
)
set(BASE_LIBS ws2_32 ole32 oleaut32 winmm uuid)
endif(WIN32)
set(BASE_LIBS ${BASE_LIBS} ${LIBORTP})
set(BASE_LIBS ${BASE_LIBS} ${LIBSRTP} ${LIBORTP})
add_library(mediastreamer_base SHARED ${BASE_SOURCE_FILES} ${BASE_GENERATED_SOURCE_FILES})
set_target_properties(mediastreamer_base PROPERTIES VERSION 2.10.0 SOVERSION 3)
......@@ -314,6 +315,7 @@ if(WIN32)
endif(MS2_ENABLE_VIDEO)
endif(WIN32)
list(APPEND VOIP_LIBS
${LIBSRTP}
${LIBORTP}
mediastreamer_base
)
......
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