From 58d904a328c0d849769b483e901a0be9426b8209 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期二, 20 七月 2021 20:20:44 +0800 Subject: [PATCH] 调整Request C.BHFree的位置 --- src/CMakeLists.txt | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ac5f05f..3fb156d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,14 @@ -file(GLOB sources "./*.cpp") +file(GLOB sources "./*.cpp" "../log/*.cpp") -set(Target bhshm) +set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exported_symbols") +include_directories(../log) +include_directories(${CMAKE_SOURCE_DIR}/proto) +include_directories(${CMAKE_SOURCE_DIR}/protobuf/include) -add_library(${Target} ${sources}) +add_library(bhcommon STATIC ${sources}) +set(LogLibs "boost_log;boost_log_setup;boost_thread;boost_filesystem") +target_link_libraries(bhcommon bhome_msg ${LogLibs} pthread rt) -target_link_libraries(${Target} pthread rt) +add_library(bhome_shmq SHARED bh_api.cc) +target_link_libraries(bhome_shmq bhcommon) -- Gitblit v1.8.0