wangzhengquan
2021-02-25 f71c50e9470d18afc9716378537c9cdfca315368
shm_util/CMakeLists.txt
@@ -1,11 +1,34 @@
add_executable(shm_util shm_util.cpp )
target_link_libraries(shm_util PRIVATE shm_queue ${EXTRA_LIBS} )
target_include_directories(shm_util PRIVATE
                            "${PROJECT_BINARY_DIR}"
                             ${EXTRA_INCLUDES}
find_library(SHMQUEUE
    NAMES  shm_queue libshm_queue
    HINTS "/home/wzq/Downloads"
                            )
if(SHMQUEUE)
  message(STATUS "Looking for SHMQUEUE - found: ${SHMQUEUE}")
else()
  message(STATUS "Looking for SHMQUEUE - not found")
endif()
list(APPEND M_INCLUDES
 ${PROJECT_BINARY_DIR}/src
 ${PROJECT_SOURCE_DIR}/src
 ${PROJECT_SOURCE_DIR}/src/shm
 ${PROJECT_SOURCE_DIR}/src/queue
 ${PROJECT_SOURCE_DIR}/src/socket
 ${PROJECT_SOURCE_DIR}/src/net
)
add_executable(shm_util2 shm_util.cpp )
target_link_libraries(shm_util2 PRIVATE ${SHMQUEUE} ${EXTRA_LIBS} )
target_include_directories(shm_util2 PRIVATE
                             ${PROJECT_BINARY_DIR}
                             ${EXTRA_INCLUDES}
                             ${M_INCLUDES}
                            )
add_executable(shm_map shm_map.cpp )
target_link_libraries(shm_map PRIVATE shm_queue ${EXTRA_LIBS} )
target_include_directories(shm_map PRIVATE