diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-01-02 14:57:49 (GMT) |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-01-02 15:34:57 (GMT) |
commit | d7969e49af22943a3f0062b8fe8abc04bb1dd6a7 (patch) | |
tree | 2dbcc9a85c9b770d7f794e5003bd2d2a441b266d /contrib | |
parent | 1380c33b7349507e1d51b505a2f4ee8ab126c587 (diff) | |
download | lz4-d7969e49af22943a3f0062b8fe8abc04bb1dd6a7.zip lz4-d7969e49af22943a3f0062b8fe8abc04bb1dd6a7.tar.gz lz4-d7969e49af22943a3f0062b8fe8abc04bb1dd6a7.tar.bz2 |
cmake: Install manpages
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/cmake_unofficial/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/cmake_unofficial/CMakeLists.txt b/contrib/cmake_unofficial/CMakeLists.txt index 38f3b00..9a0983d 100644 --- a/contrib/cmake_unofficial/CMakeLists.txt +++ b/contrib/cmake_unofficial/CMakeLists.txt @@ -175,6 +175,8 @@ if(NOT LZ4_BUNDLED_MODE) "${LZ4_LIB_SOURCE_DIR}/lz4frame.h" "${LZ4_LIB_SOURCE_DIR}/lz4hc.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") + install(FILES "${LZ4_PROG_SOURCE_DIR}/lz4.1" + DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblz4.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") @@ -188,6 +190,13 @@ if(NOT LZ4_BUNDLED_MODE) COMMAND \"${CMAKE_COMMAND}\" -E create_symlink lz4 \"\${dest}\") endforeach() ") + + # create manpage aliases + foreach(f lz4cat unlz4) + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${f}.1" ".so man1/lz4.1\n") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${f}.1" + DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") + endforeach() endif(UNIX) endif(NOT LZ4_BUNDLED_MODE) |