Skip to content

Commit

Permalink
Merge pull request #16 from AgoraIO/dev/master
Browse files Browse the repository at this point in the history
Dev/master
  • Loading branch information
plutoless authored Sep 21, 2020
2 parents 5c60cdd + 9dd0b4d commit c67944d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions cmake/Modules/FindAgora.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else()
endif()

if (PKG_CONFIG_FOUND)
pkg_check_modules(_AGORA QUIET agora agora_rtc_sdk agora_sig_sdk)
pkg_check_modules(_AGORA QUIET agora agora_rtc_sdk agora_sig_sdk libeay32)
endif()

find_path(AGORA_INCLUDE_DIR
Expand All @@ -37,7 +37,7 @@ find_path(AGORA_INCLUDE_DIR
include)

find_library(AGORA_LIB
NAMES ${_AGIRA_LIBRARIES} agora agora_rtc_sdk agora_sig_sdk
NAMES ${_AGORA_LIBRARIES} agora agora_rtc_sdk agora_sig_sdk
HINTS
ENV agoraPath${_lib_suffix}
ENV agoraPath
Expand All @@ -58,11 +58,28 @@ find_library(AGORA_LIB
../libs${_lib_suffix} ../libs
../bin${_lib_suffix} ../bin)

find_library(OPENSSL_LIB
NAMES ${_OPENSSL_LIBRARIES} libeay32
HINTS
ENV DepsPath${_lib_suffix}
ENV DepsPath
${DepsPath${_lib_suffix}}
${DepsPath}
${OPENSSL_LIB_DIRS}
PATH_SUFFIXES
lib${_lib_suffix} lib
libs${_lib_suffix} libs
bin${_lib_suffix} bin
../lib${_lib_suffix} ../lib
../libs${_lib_suffix} ../libs
../bin${_lib_suffix} ../bin)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Libcurl DEFAULT_MSG AGORA_LIB AGORA_INCLUDE_DIR)
find_package_handle_standard_args(Agora DEFAULT_MSG AGORA_LIB AGORA_INCLUDE_DIR)
mark_as_advanced(AGORA_INCLUDE_DIR AGORA_LIB)

if(LIBCURL_FOUND)
if(Agora_FOUND)
set(AGORA_INCLUDE_DIRS ${AGORA_INCLUDE_DIR})
set(AGORA_LIB_DIRS ${AGORA_LIB})
set(OPENSSL_LIB_DIRS ${OPENSSL_LIB})
endif()
Binary file removed dependencies2013.zip
Binary file not shown.
Binary file removed dependencies2015.zip
Binary file not shown.
Binary file removed dependencies2017.zip
Binary file not shown.

0 comments on commit c67944d

Please sign in to comment.