File: 0017-Install-tools.patch

package info (click to toggle)
open3d 0.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,236 kB
  • sloc: cpp: 206,501; python: 27,254; ansic: 8,356; javascript: 1,883; sh: 1,527; makefile: 259; xml: 69
file content (80 lines) | stat: -rw-r--r-- 3,662 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 7 Mar 2022 20:10:24 +0100
Subject: Install tools

Forwarded: not-needed
---
 cpp/tools/CMakeLists.txt           | 2 ++
 cpp/tools/ConvertPointCloud.cpp    | 4 ++--
 cpp/tools/ManuallyCropGeometry.cpp | 2 +-
 cpp/tools/MergeMesh.cpp            | 2 +-
 cpp/tools/ViewGeometry.cpp         | 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/cpp/tools/CMakeLists.txt b/cpp/tools/CMakeLists.txt
index 9d5f681..2bb8fd9 100644
--- a/cpp/tools/CMakeLists.txt
+++ b/cpp/tools/CMakeLists.txt
@@ -9,6 +9,8 @@ macro(open3d_add_tool TOOL_NAME)
     set_target_properties(${TOOL_NAME} PROPERTIES FOLDER "Tools")
     open3d_show_and_abort_on_warning(${TOOL_NAME})
     open3d_set_global_properties(${TOOL_NAME})
+    set_target_properties(${TOOL_NAME} PROPERTIES OUTPUT_NAME "Open3D${TOOL_NAME}")
+    install(TARGETS ${TOOL_NAME} DESTINATION bin)
 endmacro()
 
 open3d_add_tool(ConvertPointCloud)
diff --git a/cpp/tools/ConvertPointCloud.cpp b/cpp/tools/ConvertPointCloud.cpp
index eebf4be..6347654 100644
--- a/cpp/tools/ConvertPointCloud.cpp
+++ b/cpp/tools/ConvertPointCloud.cpp
@@ -14,8 +14,8 @@ void PrintHelp() {
     PrintOpen3DVersion();
     // clang-format off
     utility::LogInfo("Usage:");
-    utility::LogInfo("    > ConvertPointCloud source_file target_file [options]");
-    utility::LogInfo("    > ConvertPointCloud source_directory target_directory [options]");
+    utility::LogInfo("    > Open3DConvertPointCloud source_file target_file [options]");
+    utility::LogInfo("    > Open3DConvertPointCloud source_directory target_directory [options]");
     utility::LogInfo("      Read point cloud from source file and convert it to target file.");
     utility::LogInfo("");
     utility::LogInfo("Options (listed in the order of execution priority):");
diff --git a/cpp/tools/ManuallyCropGeometry.cpp b/cpp/tools/ManuallyCropGeometry.cpp
index e8777e8..e1a4a01 100644
--- a/cpp/tools/ManuallyCropGeometry.cpp
+++ b/cpp/tools/ManuallyCropGeometry.cpp
@@ -12,7 +12,7 @@ void PrintHelp() {
     PrintOpen3DVersion();
     // clang-format off
     utility::LogInfo("Usage:");
-    utility::LogInfo("    > ManuallyCropGeometry [--pointcloud/mesh] geometry_file [options]");
+    utility::LogInfo("    > Open3DManuallyCropGeometry [--pointcloud/mesh] geometry_file [options]");
     utility::LogInfo("      Manually crop geometry in specified file.");
     utility::LogInfo("");
     utility::LogInfo("Options:");
diff --git a/cpp/tools/MergeMesh.cpp b/cpp/tools/MergeMesh.cpp
index e7b9d99..bdb0e6f 100644
--- a/cpp/tools/MergeMesh.cpp
+++ b/cpp/tools/MergeMesh.cpp
@@ -12,7 +12,7 @@ void PrintHelp() {
     PrintOpen3DVersion();
     // clang-format off
     utility::LogInfo("Usage:");
-    utility::LogInfo("    > MergeMesh source_directory target_file [option]");
+    utility::LogInfo("    > Open3DMergeMesh source_directory target_file [option]");
     utility::LogInfo("      Merge mesh files under <source_directory>.");
     utility::LogInfo("");
     utility::LogInfo("Options (listed in the order of execution priority):");
diff --git a/cpp/tools/ViewGeometry.cpp b/cpp/tools/ViewGeometry.cpp
index b31dd11..42b5f51 100644
--- a/cpp/tools/ViewGeometry.cpp
+++ b/cpp/tools/ViewGeometry.cpp
@@ -12,7 +12,7 @@ void PrintHelp() {
     PrintOpen3DVersion();
     // clang-format off
     utility::LogInfo("Usage:");
-    utility::LogInfo("    > ViewGeometry [options]");
+    utility::LogInfo("    > Open3DViewGeometry [options]");
     utility::LogInfo("      Open a window to view geometry.");
     utility::LogInfo("");
     utility::LogInfo("Basic options:");