From 87f014b618c130b9f06d344ec50622d66da5d041 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 14 一月 2021 15:03:08 +0800
Subject: [PATCH] update
---
src/CMakeLists.txt | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 86714bb..e0913e7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,7 +5,7 @@
# configure a header file to pass some of the CMake settings
# to the source code
-configure_file(BusConfig.h.in BusConfig.h)
+configure_file(bus_config.h.in bus_config.h)
add_library(shm_queue
logger_factory.cpp
@@ -21,33 +21,26 @@
socket/net_mod_socket_io.cpp
socket/net_mod_server_socket.cpp
bus_error.cpp
- queue/shm_queue_wrapper.cpp
shm/shm_mm_wrapper.cpp
shm/mm.cpp
shm/hashtable.cpp
+ px_sem_util.cpp
)
target_include_directories(shm_queue PUBLIC
- "${PROJECT_BINARY_DIR}"
- "${PROJECT_SOURCE_DIR}/include/usgcommon"
+ ${EXTRA_INCLUDES}
)
target_include_directories(shm_queue PUBLIC
+ ${PROJECT_BINARY_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/shm
${CMAKE_CURRENT_SOURCE_DIR}/queue
${CMAKE_CURRENT_SOURCE_DIR}/socket
)
-
-# state that anybody linking to us needs to include the current source dir
-# to find MathFunctions.h, while we don't.
-target_include_directories(shm_queue INTERFACE
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/shm
- ${CMAKE_CURRENT_SOURCE_DIR}/queue
- ${CMAKE_CURRENT_SOURCE_DIR}/socket
- )
+
+target_link_libraries(shm_queue PUBLIC ${EXTRA_LIBS} )
# install rules
install(TARGETS shm_queue DESTINATION lib)
--
Gitblit v1.8.0