Commit 3623a4fe authored by Ghislain MARY's avatar Ghislain MARY

Move CMake dependencies checks for srtp and zrtp from oRTP.

parent 1288220f
......@@ -77,6 +77,14 @@ if(@ENABLE_VIDEO@)
endif()
endif()
if(@ENABLE_SRTP@)
find_package(SRTP)
endif()
if(@ENABLE_ZRTP@)
find_package(BZRTP)
endif()
set(_MS2_ROOT_PATHS
${WITH_MS2}
${CMAKE_INSTALL_PREFIX}
......@@ -157,6 +165,14 @@ if(VPX_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${VPX_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${VPX_LIBRARIES})
endif()
if(SRTP_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${SRTP_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${SRTP_LIBRARIES})
endif()
if(BZRTP_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${BZRTP_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${BZRTP_LIBRARIES})
endif()
if(WIN32)
list(APPEND MS2_LIBRARIES ole32 oleaut32 uuid gdi32 user32 vfw32)
endif(WIN32)
......
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