This commit is contained in:
cxh 2025-11-20 09:25:09 +08:00
parent 5c6c91308c
commit a5eb8e564c

View File

@ -50,7 +50,5 @@ target_link_libraries(camera_to_rtsp
# config.json bin/ # config.json bin/
add_custom_command(TARGET camera_to_rtsp POST_BUILD add_custom_command(TARGET camera_to_rtsp POST_BUILD
COMMAND /bin/bash -c "if [ ! -f '$<TARGET_FILE_DIR:camera_to_rtsp>/config.json' ]; then cp '${CMAKE_SOURCE_DIR}/config.json' '$<TARGET_FILE_DIR:camera_to_rtsp>/config.json'; else echo 'config.json exists, skip copy'; fi" COMMAND /bin/bash -c "if [ ! -f \"$<TARGET_FILE_DIR:camera_to_rtsp>/config.json\" ]; then cp \"${CMAKE_SOURCE_DIR}/config.json\" \"$<TARGET_FILE_DIR:camera_to_rtsp>/config.json\"; else echo 'config.json exists, skip copy'; fi"
) )