mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Search for mediastreamer2 and belle-sip when searching for linphone with CMake.
This commit is contained in:
parent
891862331a
commit
d6e225ff6c
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,8 @@
|
|||
# LINPHONE_LDFLAGS - The linking flags needed to use linphone
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/LinphoneTargets.cmake")
|
||||
find_package(Mediastreamer2 REQUIRED)
|
||||
find_package(BelleSIP REQUIRED)
|
||||
if(@ENABLE_TUNNEL@)
|
||||
find_package(Tunnel)
|
||||
endif()
|
||||
|
|
@ -37,6 +39,8 @@ get_filename_component(LINPHONE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|||
set(LINPHONE_INCLUDE_DIRS "${LINPHONE_CMAKE_DIR}/../../../include")
|
||||
set(LINPHONE_LIBRARIES BelledonneCommunications::linphone)
|
||||
set(LINPHONE_LDFLAGS @LINK_FLAGS@)
|
||||
list(APPEND LINPHONE_INCLUDE_DIRS ${MEDIASTREAMER2_INCLUDE_DIRS} ${BELLESIP_INCLUDE_DIRS})
|
||||
list(APPEND LINPHONE_LIBRARIES ${MEDIASTREAMER2_LIBRARIES} ${BELLESIP_LIBRARIES})
|
||||
if(TUNNEL_FOUND)
|
||||
list(APPEND LINPHONE_INCLUDE_DIRS ${TUNNEL_INCLUDE_DIRS})
|
||||
list(APPEND LINPHONE_LIBRARIES ${TUNNEL_LIBRARIES})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue