Allow inclusion of CMake project in a global CMake project.

This commit is contained in:
Ghislain MARY 2015-10-05 17:52:48 +02:00
parent 6f84ae6790
commit b3c247b6d7
5 changed files with 10 additions and 6 deletions

View file

@ -87,8 +87,13 @@ if(MSVC)
endif()
endif()
find_package(BelleSIP REQUIRED)
find_package(Mediastreamer2 REQUIRED)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${EP_bellesip_CONFIG_DIR}/BelleSIPConfig.cmake")
include("${EP_ms2_CONFIG_DIR}/Mediastreamer2Config.cmake")
else()
find_package(BelleSIP REQUIRED)
find_package(Mediastreamer2 REQUIRED)
endif()
find_package(XML2 REQUIRED)
find_package(Zlib)
if(ENABLE_UNIT_TESTS)

View file

@ -36,7 +36,7 @@ if(DOXYGEN_FOUND)
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${DOC_INPUT_FILES}
)
add_custom_target(doc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/doc/html/index.html")
add_custom_target(linphone-doc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/doc/html/index.html")
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc/html" "${CMAKE_CURRENT_BINARY_DIR}/doc/xml"
DESTINATION "share/doc/linphone-${LINPHONE_VERSION}")
else()

@ -1 +1 @@
Subproject commit 67fd090ce4c4845edfeda08050f4d0bb25281241
Subproject commit 8eee009590dffc7db91a355c6f28e5ac1f3622c9

2
oRTP

@ -1 +1 @@
Subproject commit 66fcf36abb30ddf65ca3f99d9bd0aecf8085e5f3
Subproject commit 848c3402122d1249cfe583b66ca8d21857c3d916

View file

@ -82,4 +82,3 @@ else()
target_link_libraries(liblinphone_tester linphone ${GTK2_LIBRARIES})
endif()
endif()