Commit 937a6b65 authored by Ghislain MARY's avatar Ghislain MARY

Allow inclusion of CMake project in a global CMake project.

parent 253e1543
......@@ -27,9 +27,16 @@
# BZRTP_INCLUDE_DIRS - the bzrtp include directory
# BZRTP_LIBRARIES - The libraries needed to use bzrtp
include("${CMAKE_CURRENT_LIST_DIR}/BZRTPTargets.cmake")
if(NOT LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${CMAKE_CURRENT_LIST_DIR}/BZRTPTargets.cmake")
endif()
get_filename_component(BZRTP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(BZRTP_INCLUDE_DIRS "${BZRTP_CMAKE_DIR}/../../../include")
set(BZRTP_LIBRARIES BelledonneCommunications::bzrtp)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BZRTP_INCLUDE_DIRS "${EP_bzrtp_INCLUDE_DIR}")
set(BZRTP_LIBRARIES bzrtp)
else()
set(BZRTP_INCLUDE_DIRS "${BZRTP_CMAKE_DIR}/../../../include")
set(BZRTP_LIBRARIES BelledonneCommunications::bzrtp)
endif()
set(BZRTP_FOUND 1)
......@@ -26,13 +26,13 @@ set(TEST_SOURCES
bzrtpTest.c
testUtils.c
${CMAKE_SOURCE_DIR}/src/bzrtp.c
${CMAKE_SOURCE_DIR}/src/cryptoPolarssl.c
${CMAKE_SOURCE_DIR}/src/cryptoUtils.c
${CMAKE_SOURCE_DIR}/src/packetParser.c
${CMAKE_SOURCE_DIR}/src/pgpwords.c
${CMAKE_SOURCE_DIR}/src/stateMachine.c
${CMAKE_SOURCE_DIR}/src/zidCache.c
../src/bzrtp.c
../src/cryptoPolarssl.c
../src/cryptoUtils.c
../src/packetParser.c
../src/pgpwords.c
../src/stateMachine.c
../src/zidCache.c
)
add_executable(bzrtpTest ${TEST_SOURCES})
......
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