Commit d9372d60 authored by Ghislain MARY's avatar Ghislain MARY

Allow inclusion of CMake project a global CMake project.

parent fac134fc
......@@ -28,14 +28,19 @@
# BELLESIP_LIBRARIES - The libraries needed to use belle-sip
# BELLESIP_LDFLAGS - The linking flags needed to use belle-sip
include("${CMAKE_CURRENT_LIST_DIR}/BelleSIPTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/BelleSIPTargets.cmake" OPTIONAL)
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)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BELLESIP_INCLUDE_DIRS "${EP_bellesip_INCLUDE_DIR}")
set(BELLESIP_LIBRARIES bellesip)
else()
set(BELLESIP_INCLUDE_DIRS "${BELLESIP_CMAKE_DIR}/../../../include")
set(BELLESIP_LIBRARIES BelledonneCommunications::bellesip)
endif()
set(BELLESIP_LDFLAGS @LINK_FLAGS@)
if(TUNNEL_FOUND)
list(APPEND BELLESIP_INCLUDE_DIRS ${TUNNEL_INCLUDE_DIRS})
......
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