mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Add LINPHONE_LDFLAGS in CMake script to find linphone.
This commit is contained in:
parent
5b17d4d473
commit
d2f1886083
1 changed files with 5 additions and 3 deletions
|
|
@ -26,6 +26,7 @@
|
|||
# LINPHONE_INCLUDE_DIRS - the linphone include directory
|
||||
# LINPHONE_LIBRARIES - The libraries needed to use linphone
|
||||
# LINPHONE_CPPFLAGS - The compilation flags needed to use linphone
|
||||
# LINPHONE_LDFLAGS - The linking flags needed to use linphone
|
||||
|
||||
find_package(ORTP REQUIRED)
|
||||
find_package(MS2 REQUIRED)
|
||||
|
|
@ -58,12 +59,13 @@ list(APPEND LINPHONE_LIBRARIES ${ORTP_LIBRARIES} ${MS2_LIBRARIES} ${XML2_LIBRARI
|
|||
|
||||
list(REMOVE_DUPLICATES LINPHONE_INCLUDE_DIRS)
|
||||
list(REMOVE_DUPLICATES LINPHONE_LIBRARIES)
|
||||
set(LINPHONE_CPPFLAGS ${MS2_CPPFLAGS})
|
||||
set(LINPHONE_CPPFLAGS "${MS2_CPPFLAGS}")
|
||||
set(LINPHONE_LDFLAGS "${MS2_LDFLAGS}")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Linphone
|
||||
DEFAULT_MSG
|
||||
LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS
|
||||
LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES
|
||||
)
|
||||
|
||||
mark_as_advanced(LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS)
|
||||
mark_as_advanced(LINPHONE_INCLUDE_DIRS LINPHONE_LIBRARIES LINPHONE_CPPFLAGS LINPHONE_LDFLAGS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue