wangzhengquan
2021-01-07 6c32e1a482c14412108675ec78f49ebe4f94a374
test_net_socket/CMakeLists.txt
@@ -5,11 +5,17 @@
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/net_mod_socket.sh
  )
add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/heart_beat.sh
  COMMAND cp  ${CMAKE_CURRENT_SOURCE_DIR}/heart_beat.sh ${CMAKE_CURRENT_BINARY_DIR}/heart_beat.sh
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/heart_beat.sh
  )
# add the executable
add_executable(test_net_mod_socket test_net_mod_socket.cpp  ${CMAKE_CURRENT_BINARY_DIR}/net_mod_socket.sh)
target_link_libraries(test_net_mod_socket PUBLIC shm_queue  ${EXTRA_LIBS} )
add_executable(heart_beat heart_beat.cpp)
add_executable(heart_beat heart_beat.cpp ${CMAKE_CURRENT_BINARY_DIR}/heart_beat.sh)
target_link_libraries(heart_beat PUBLIC shm_queue )
# target_link_libraries(heart_beat PUBLIC shm_queue  ${EXTRA_LIBS} )