2017-03-26 15:08:47 +02:00
|
|
|
project (doc)
|
|
|
|
|
2018-07-09 04:57:21 +02:00
|
|
|
IF (WIN32)
|
|
|
|
MESSAGE(STATUS "This is Windows. Will not install man page")
|
|
|
|
ELSE (WIN32)
|
|
|
|
INCLUDE(GNUInstallDirs)
|
2017-03-26 15:08:47 +02:00
|
|
|
|
2018-07-09 04:57:21 +02:00
|
|
|
find_program(GZIP gzip)
|
2017-03-26 15:08:47 +02:00
|
|
|
|
2018-07-09 04:57:21 +02:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cryfs.1.gz
|
|
|
|
COMMAND ${GZIP} -c ${CMAKE_CURRENT_SOURCE_DIR}/man/cryfs.1 > ${CMAKE_CURRENT_BINARY_DIR}/cryfs.1.gz
|
|
|
|
)
|
|
|
|
add_custom_target(man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cryfs.1.gz)
|
|
|
|
|
2022-10-12 06:10:31 +02:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cryfs-unmount.1.gz
|
|
|
|
COMMAND ${GZIP} -c ${CMAKE_CURRENT_SOURCE_DIR}/man/cryfs-unmount.1 > ${CMAKE_CURRENT_BINARY_DIR}/cryfs-unmount.1.gz
|
|
|
|
)
|
|
|
|
add_custom_target(umountman ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cryfs-unmount.1.gz)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cryfs.1.gz ${CMAKE_CURRENT_BINARY_DIR}/cryfs-unmount.1.gz
|
2018-07-09 04:57:21 +02:00
|
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
|
|
CONFIGURATIONS Release
|
|
|
|
)
|
|
|
|
ENDIF(WIN32)
|