From 548787003fa3f3b5dcecd30daf4ddcb816533e4a Mon Sep 17 00:00:00 2001 From: huangxin Date: Wed, 7 Dec 2022 16:01:07 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E6=9B=B4=E6=96=B0=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=A1=B9=E6=9F=A5=E6=89=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcs/CMakeLists.txt b/srcs/CMakeLists.txt index a4ffa77..4949d9a 100644 --- a/srcs/CMakeLists.txt +++ b/srcs/CMakeLists.txt @@ -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})