You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
524 B
21 lines
524 B
3 years ago
|
# Compress the man page and install to proper path
|
||
|
|
||
|
find_program(GZIP_TOOL
|
||
|
NAMES gzip
|
||
|
PATHS /bin
|
||
|
/usr/bin
|
||
|
/usr/local/bin)
|
||
|
|
||
|
if(NOT GZIP_TOOL)
|
||
|
message(FATAL_ERROR "Man page compression executable 'gzip' not found.")
|
||
|
endif()
|
||
|
|
||
|
add_custom_target(doc ALL
|
||
|
COMMAND ${GZIP_TOOL} -c ${CMAKE_SOURCE_DIR}/doc/stowage.1 > ${CMAKE_BINARY_DIR}/stowage.1.gz
|
||
|
DEPENDS ${CMAKE_SOURCE_DIR}/doc/stowage.1)
|
||
|
|
||
|
install(
|
||
|
FILES ${CMAKE_BINARY_DIR}/stowage.1.gz
|
||
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
||
|
CONFIGURATIONS Release)
|