OCT 1. 更新工程依赖项查找问题
This commit is contained in:
parent
900d86eb6c
commit
548787003f
|
@ -14,10 +14,15 @@ FIND_PACKAGE(PkgConfig)
|
|||
PKG_SEARCH_MODULE(LIBCURL REQUIRED libcurl)
|
||||
PKG_SEARCH_MODULE(LIBSSL REQUIRED libssl)
|
||||
PKG_SEARCH_MODULE(LIBCRYPTO REQUIRED libcrypto)
|
||||
LIST(APPEND COMMON_LIBS "${LIBCURL_LDFLAGS} ${LIBSSL_LDFLAGS} ${LIBCRYPTO_LDFLAGS}")
|
||||
LIST(APPEND COMMON_LIBS "-ldl -lpthread -lzlog -lm -luv -lzmq -luuid -lconfig")
|
||||
PKG_SEARCH_MODULE(LIBUV REQUIRED libuv)
|
||||
PKG_SEARCH_MODULE(LIBCONFIG REQUIRED libconfig)
|
||||
PKG_SEARCH_MODULE(LIBZMQ REQUIRED libzmq)
|
||||
FIND_LIBRARY(LIBZLOG zlog REQUIRED)
|
||||
FIND_LIBRARY(LIBUUID uuid REQUIRED)
|
||||
|
||||
LIST(APPEND COMMON_LIBS "-lpthread")
|
||||
LIST(APPEND COMMON_LIBS "${LIBUV_LDFLAGS} ${LIBCONFIG_LDFLAGS} ${LIBCURL_LDFLAGS} ${LIBSSL_LDFLAGS} ${LIBCRYPTO_LDFLAGS}")
|
||||
LIST(APPEND COMMON_LIBS "${LIBZMQ_LDFLAGS} ${LIBZLOG} ${LIBUUID}")
|
||||
LIST(APPEND COMMON_LIBS "-lm -lpthread")
|
||||
|
||||
ADD_DEFINITIONS(${COMMON_DEFINE})
|
||||
|
||||
|
|
Loading…
Reference in New Issue