mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-25 19:35:02 +03:00
47417d1871
Provide extended descriptions for most subcommands.
16 lines
578 B
CMake
16 lines
578 B
CMake
# Creates and installs manual page
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/create-manpage.tmpl create_manpage.py)
|
|
|
|
find_program(ARGPARSEMANPAGE argparse-manpage)
|
|
|
|
ADD_CUSTOM_TARGET(manpage
|
|
COMMAND ${ARGPARSEMANPAGE} --pyfile ${CMAKE_CURRENT_BINARY_DIR}/create_manpage.py
|
|
--function get_parser --project-name Nominatim
|
|
--url https://nominatim.org > ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1
|
|
--author 'the Nominatim developer community'
|
|
--author-email info@nominatim.org
|
|
)
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 DESTINATION share/man/man1 )
|