| | |
| | | # we don't need to tinker with the path to run the executable |
| | | set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") |
| | | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") |
| | | # set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}") |
| | | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") |
| | | |
| | | option(BUILD_SHARED_LIBS "Build using shared libraries" ON) |
| | | |
| | |
| | | ./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 SHARED ${_SOURCES_}) |
| | | # add_library(shm_queue STATIC ${_SOURCES_}) |
| | | add_library(shm_queue ${_SOURCES_}) |
| | | #add_library(shm_queue ${_SOURCES_}) |
| | | |
| | | target_include_directories(shm_queue PUBLIC ${EXTRA_INCLUDES} ) |
| | | |
| | |
| | | static int get_bus_sendbuf(bus_head_t &request_head, const void *topic_buf, int topic_size, const void *content_buf, int content_size, void **retbuf); |
| | | |
| | | public: |
| | | static size_t remove_keys(int keys[], size_t length); |
| | | static size_t remove_keys_exclude(int keys[], size_t length); |
| | | // static size_t remove_keys(int keys[], size_t length); |
| | | // static size_t remove_keys_exclude(int keys[], size_t length); |
| | | |
| | | // bus header 编码为网络传输的字节 |
| | | static void * encode_bus_head(bus_head_t & bushead); |