From 5f36004fe6b2d45efa7253a9529c14857509b9b5 Mon Sep 17 00:00:00 2001 From: xinyang Date: Mon, 6 May 2019 23:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=91=E5=AE=9Amonitor?= =?UTF-8?q?=E4=B8=8E=E8=BF=90=E8=A1=8C=E5=8F=82=E6=95=B0=E5=88=B0=E5=8F=AF?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=96=87=E4=BB=B6=E7=9A=84cmake=20target?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 +-- tools/bind-monitor.sh | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 tools/bind-monitor.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 3395bc8..0edf4b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,5 +30,4 @@ TARGET_LINK_LIBRARIES(run ${PROJECT_SOURCE_DIR}/others/libMVSDK.so) ADD_CUSTOM_TARGET(train COMMAND "gnome-terminal" "-x" "bash" "-c" "\"${PROJECT_SOURCE_DIR}/tools/TrainCNN/backward.py\"" ) -# Todo -# ADD_CUSTOM_TARGET(bind-monitor COMMAND "") +ADD_CUSTOM_TARGET(bind-monitor COMMAND "${PROJECT_SOURCE_DIR}/tools/bind-monitor.sh" "${PROJECT_SOURCE_DIR}" "${CMAKE_BINARY_DIR}") diff --git a/tools/bind-monitor.sh b/tools/bind-monitor.sh new file mode 100755 index 0000000..42f0cba --- /dev/null +++ b/tools/bind-monitor.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "$1/tools/monitor.sh \"$2/run --run-with-camera\" &" > $2/monitor-run +chmod +x $2/monitor-run