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.
This commit is contained in:
Jochen Topf 2026-07-26 16:38:45 +02:00
parent c33d74be06
commit 5b5ae13a4a
6 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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
```

View File

View File

@ -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)