From d52c87dee3aac4af66ad2e1a86094ca27209d816 Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期二, 16 十一月 2021 16:19:45 +0800 Subject: [PATCH] Fix the service manager exits exceptionally issue. --- test_net_socket/CMakeLists.txt | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test_net_socket/CMakeLists.txt b/test_net_socket/CMakeLists.txt index 81cf641..748642c 100644 --- a/test_net_socket/CMakeLists.txt +++ b/test_net_socket/CMakeLists.txt @@ -3,13 +3,16 @@ OUTPUT ${PROJECT_BINARY_DIR}/bin/net_mod_socket.sh COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/net_mod_socket.sh ${PROJECT_BINARY_DIR}/bin/net_mod_socket.sh DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/net_mod_socket.sh + VERBATIM ) + +add_custom_target("net_mod_socket.sh" ALL DEPENDS ${PROJECT_BINARY_DIR}/bin/net_mod_socket.sh) # add the executable -add_executable(test_net_mod_socket test_net_mod_socket.cpp ${PROJECT_BINARY_DIR}/bin/net_mod_socket.sh) -target_link_libraries(test_net_mod_socket PRIVATE shm_queue ${EXTRA_LIBS} ) -target_include_directories(test_net_mod_socket PRIVATE +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} ) @@ -31,4 +34,4 @@ # add the install targets -install(TARGETS test_net_mod_socket DESTINATION bin) +install(TARGETS shm_util DESTINATION bin) -- Gitblit v1.8.0