Commit f48ed2e0 authored by Ghislain MARY's avatar Ghislain MARY

Handle tunnel dependency when searching for belle-sip with CMake.

parent 14d648ae
......@@ -29,9 +29,16 @@
# BELLESIP_LDFLAGS - The linking flags needed to use belle-sip
include("${CMAKE_CURRENT_LIST_DIR}/BelleSIPTargets.cmake")
if(@ENABLE_TUNNEL@)
find_package(Tunnel)
endif()
get_filename_component(BELLESIP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(BELLESIP_INCLUDE_DIRS "${BELLESIP_CMAKE_DIR}/../../../include")
set(BELLESIP_LIBRARIES BelledonneCommunications::bellesip)
set(BELLESIP_LDFLAGS @LINK_FLAGS@)
if(TUNNEL_FOUND)
list(APPEND BELLESIP_INCLUDE_DIRS ${TUNNEL_INCLUDE_DIRS})
list(APPEND BELLESIP_LIBRARIES ${TUNNEL_LIBRARIES})
endif()
set(BELLESIP_FOUND 1)
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