From cf05ea3d9f43e4e84d621e1f9d54cbef552b6e2b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 18 五月 2021 16:53:28 +0800 Subject: [PATCH] fix center init mutex. --- src/CMakeLists.txt | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eb6a848..3d74846 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,11 +1,14 @@ -file(GLOB sources "./*.cpp") +file(GLOB sources "./*.cpp" "../log/*.cpp") set(Target bhome_shmq) set(TargetStatic bhome_shmq_static) +include_directories(../log) add_library(${Target} SHARED ${sources}) add_library(${TargetStatic} STATIC ${sources}) -target_link_libraries(${Target} bhome_msg pthread rt) -target_link_libraries(${TargetStatic} bhome_msg_static pthread rt) +set(LogLibs "boost_log;boost_log_setup;boost_thread;boost_filesystem") + +target_link_libraries(${Target} bhome_msg ${LogLibs} pthread rt) +target_link_libraries(${TargetStatic} bhome_msg_static ${LogLibs} pthread rt) -- Gitblit v1.8.0