wangzhengquan
2020-12-30 67b69daa801365481c04ca35d2984b0a056df058
udpate
1个文件已添加
3个文件已修改
54 ■■■■■ 已修改文件
CMakeLists.txt 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
build.sh 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/CMakeLists.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_net_socket/CMakeLists.txt 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CMakeLists.txt
@@ -9,33 +9,8 @@
# add the MathFunctions library
# if(USE_MYMATH)
#  add_subdirectory(MathFunctions)
#  list(APPEND EXTRA_LIBS MathFunctions)
# endif()
# list(APPEND EXTRA_INCLUDES "${PROJECT_SOURCE_DIR}/include/usgcommon")
# list(APPEND EXTRA_LIBS lib/usgcommon)
list(APPEND EXTRA_INCLUDES "${PROJECT_SOURCE_DIR}/include/usgcommon")
list(APPEND EXTRA_LIBS ${PROJECT_SOURCE_DIR}/lib/libusgcommon.a pthread)
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
# list(APPEND EXTRA_LIBS shm_queue)
# target_link_libraries(B_BUS PUBLIC ${EXTRA_LIBS})
# add the binary tree to the search path for include files
# so that we will find BusConfig.h
# target_include_directories(B_BUS PUBLIC
#                            "${PROJECT_BINARY_DIR}"
#                             ${EXTRA_INCLUDES}
#                            )
# add the executable
# add_executable(B_BUS B_BUS.cxx)
# add the install targets
# install(TARGETS B_BUS DESTINATION bin)
# install(FILES "${PROJECT_BINARY_DIR}/BusConfig.h"
#   DESTINATION include
#   )
add_subdirectory(${PROJECT_SOURCE_DIR}/test_net_socket)
build.sh
@@ -1,7 +1,7 @@
#! /bin/bash
rm -rf build
mkdir build
[ -d build ] || mkdir build
rm -rf build/*
cd build
# cmake ../Step2
# cmake ../Step4 -DSUPPORT_RDMA=OFF
src/CMakeLists.txt
@@ -30,7 +30,7 @@
target_include_directories(shm_queue PUBLIC
                           "${PROJECT_BINARY_DIR}"
                           "${PROJECT_SOURCE_DIR}/include/usgcommon"
                           ${EXTRA_INCLUDES}
                           )
target_include_directories(shm_queue PUBLIC
test_net_socket/CMakeLists.txt
New file
@@ -0,0 +1,17 @@
# add the executable
add_executable(test_net_mod_socket test_net_mod_socket.cpp)
target_link_libraries(test_net_mod_socket PUBLIC shm_queue  ${EXTRA_LIBS} )
add_executable(heart_beat heart_beat.cpp)
target_link_libraries(heart_beat PUBLIC shm_queue  ${EXTRA_LIBS} )
target_include_directories(test_net_mod_socket PUBLIC
                            "${PROJECT_BINARY_DIR}"
                             ${EXTRA_INCLUDES}
                            )
# add the install targets
install(TARGETS test_net_mod_socket DESTINATION bin)