forked from mirrors/linphone-iphone
Define LINPHONE_CPPFLAGS and LINPHONE_LDFLAGS when searching for linphone with CMake.
This commit is contained in:
parent
d6e225ff6c
commit
0ad2c51e58
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
# LINPHONE_FOUND - system has linphone
|
||||
# LINPHONE_INCLUDE_DIRS - the linphone include directory
|
||||
# LINPHONE_LIBRARIES - The libraries needed to use linphone
|
||||
# LINPHONE_CPPFLAGS - The compilation flags needed to use linphone
|
||||
# LINPHONE_LDFLAGS - The linking flags needed to use linphone
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/LinphoneTargets.cmake")
|
||||
|
|
@ -41,6 +42,8 @@ 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})
|
||||
set(LINPHONE_CPPFLAGS "${MEDIASTREAMER2_CPPFLAGS}")
|
||||
set(LINPHONE_LDFLAGS "${MEDIASTREAMER2_LDFLAGS} ${BELLESIP_LDFLAGS}")
|
||||
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