From 5b5ae13a4a77a4c1dc2c1c5ed3a14938e84feaa5 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 26 Jul 2026 16:38:45 +0200 Subject: [PATCH] Move osmpbf-outline tool from "tools" into "demo" directory This isn't really a useful tool for normal users. It is a demo/example program for developers to see how the library can be used. --- CMakeLists.txt | 2 +- README.md | 6 +++--- {tools => demo}/.gitignore | 0 {tools => demo}/CMakeLists.txt | 4 ++-- {tools => demo}/osmpbf-outline.1 | 0 {tools => demo}/osmpbf-outline.cpp | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename {tools => demo}/.gitignore (100%) rename {tools => demo}/CMakeLists.txt (76%) rename {tools => demo}/osmpbf-outline.1 (100%) rename {tools => demo}/osmpbf-outline.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f3df73..72ea315 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,5 +20,5 @@ add_subdirectory(osmpbf) # The osmpbf-outline tool does not compile on Windows because getopt.h is missing if(NOT MSVC) - add_subdirectory(tools) + add_subdirectory(demo) endif() diff --git a/README.md b/README.md index 0148ec4..07da585 100644 --- a/README.md +++ b/README.md @@ -70,11 +70,11 @@ To install: make install ``` -There is a tool named osmpbf-outline that shows a debug output of the contents -of a PBF file. To run it: +There is a demo tool named osmpbf-outline that shows a debug output of some of +the contents of a PBF file. To run it: ```sh -tools/osmpbf-outline osm-file.osm.pbf +demo/osmpbf-outline osm-file.osm.pbf ``` diff --git a/tools/.gitignore b/demo/.gitignore similarity index 100% rename from tools/.gitignore rename to demo/.gitignore diff --git a/tools/CMakeLists.txt b/demo/CMakeLists.txt similarity index 76% rename from tools/CMakeLists.txt rename to demo/CMakeLists.txt index c7e7002..3e17b37 100644 --- a/tools/CMakeLists.txt +++ b/demo/CMakeLists.txt @@ -12,5 +12,5 @@ target_include_directories(osmpbf-outline SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR}) target_link_libraries(osmpbf-outline PRIVATE osmpbf ZLIB::ZLIB protobuf::libprotobuf) set_property(TARGET osmpbf-outline PROPERTY CXX_STANDARD 11) -install(TARGETS osmpbf-outline RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES osmpbf-outline.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +#install(TARGETS osmpbf-outline RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +#install(FILES osmpbf-outline.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/tools/osmpbf-outline.1 b/demo/osmpbf-outline.1 similarity index 100% rename from tools/osmpbf-outline.1 rename to demo/osmpbf-outline.1 diff --git a/tools/osmpbf-outline.cpp b/demo/osmpbf-outline.cpp similarity index 100% rename from tools/osmpbf-outline.cpp rename to demo/osmpbf-outline.cpp