From 18705acc13f78ac65458b3dd832545e62fbc9172 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 08 二月 2021 10:44:29 +0800
Subject: [PATCH] update
---
src/CMakeLists.txt | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 00b6598..c47e209 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,6 @@
./socket/shm_socket.cpp
./socket/shm_mod_socket.cpp
./time_util.cpp
-./psem.cpp
./bus_error.cpp
./futex_sem.cpp
./svsem.cpp
@@ -28,8 +27,13 @@
./shm/hashtable.cpp
)
+if (BUILD_SHARED_LIBS)
+ add_library(shm_queue SHARED ${_SOURCES_})
+else()
+ add_library(shm_queue STATIC ${_SOURCES_})
+endif()
-add_library(shm_queue ${_SOURCES_})
+#add_library(shm_queue ${_SOURCES_})
target_include_directories(shm_queue PUBLIC ${EXTRA_INCLUDES} )
@@ -46,7 +50,7 @@
target_link_libraries(shm_queue PUBLIC ${EXTRA_LIBS} )
# install rules
-install(TARGETS shm_queue DESTINATION lib)
+install(TARGETS shm_queue DESTINATION lib)
install(FILES
./socket/socket_def.h
./socket/bus_server_socket.h
@@ -59,6 +63,7 @@
./futex_sem.h
./bus_error.h
./bus_def.h
+ ./sole.h
./logger_factory.h
./queue/linked_lock_free_queue.h
./queue/array_lock_free_queue.h
--
Gitblit v1.8.0