From 53d7dbb67ea4371ece28e0543764347775fafe0d Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Fri, 8 Sep 2017 17:07:25 -0400 Subject: [PATCH] install generated man page --- source/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 3f0f9feb..dd21e095 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -224,6 +224,11 @@ if(NOT BIN_DEST_DIR) set(BIN_DEST_DIR ${CMAKE_INSTALL_PREFIX}/bin) endif() +if(NOT MAN_DEST_DIR) + # Default location to install runtime files + set(MAN_DEST_DIR ${CMAKE_INSTALL_PREFIX}/share/man) +endif() + # Install library install(TARGETS xlnt LIBRARY DESTINATION ${LIB_DEST_DIR} @@ -235,6 +240,10 @@ install(DIRECTORY ${XLNT_INCLUDE_DIR}/xlnt DESTINATION include PATTERN ".DS_Store" EXCLUDE) +# Install LICENSE.md +install(FILES ${XLNT_ROOT_DIR}/docs/xlnt.3 +DESTINATION ${MAN_DEST_DIR}/man3) + # Configure uninstall configure_file("${XLNT_ROOT_DIR}/cmake/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"