Export correct libraries when building with CMake.

This commit is contained in:
Ghislain MARY 2016-02-25 14:44:55 +01:00
parent bc2d0a046d
commit f38ccbc88a
3 changed files with 7 additions and 3 deletions

View file

@ -41,7 +41,11 @@ endif()
get_filename_component(LINPHONE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(LINPHONE_INCLUDE_DIRS "${LINPHONE_CMAKE_DIR}/../../../include")
set(LINPHONE_LIBRARIES linphone)
if(@ENABLE_SHARED@)
set(LINPHONE_LIBRARIES linphone)
else()
set(LINPHONE_LIBRARIES linphone-static)
endif()
set(LINPHONE_LDFLAGS @LINK_FLAGS@)
list(APPEND LINPHONE_INCLUDE_DIRS ${MEDIASTREAMER2_INCLUDE_DIRS} ${BELLESIP_INCLUDE_DIRS})
list(APPEND LINPHONE_LIBRARIES ${MEDIASTREAMER2_LIBRARIES} ${BELLESIP_LIBRARIES})

@ -1 +1 @@
Subproject commit 83ace6b88dfa819b04c2dc6bca21961f457c90d6
Subproject commit 685beb165ee050e38ea33eb0e4a1d6a87f7b5520

2
oRTP

@ -1 +1 @@
Subproject commit 92b6ef1cf4884699f07a212f8ceeb06f284fae2c
Subproject commit de0aee3f2024cfd1a24fee5f4ed56be5a2032206