2021-03-23 05:40:53 +03:00
|
|
|
# Creates and installs manual page
|
|
|
|
|
2021-10-11 23:23:38 +03:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/create-manpage.tmpl create_manpage.py)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
find_program(ARGPARSEMANPAGE argparse-manpage)
|
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(manpage
|
2021-03-24 18:08:14 +03:00
|
|
|
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
|
2021-10-12 00:27:38 +03:00
|
|
|
--author 'the Nominatim developer community'
|
|
|
|
--author-email info@nominatim.org
|
2021-03-23 05:40:53 +03:00
|
|
|
)
|
|
|
|
|
2021-03-24 18:08:14 +03:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 DESTINATION share/man/man1 )
|