From 85652c3834e0ebfdd7ccc432a1c0f8f357e42e43 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 1 Jun 2017 18:45:40 +0100 Subject: [PATCH] Update cmake script to install man pages --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1d8c50121..b18a937afd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,3 +101,5 @@ install(FILES "resources/logo/icon_x128.png" DESTINATION "share/icons/hicolor/12 install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps RENAME openrct2.png") install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps RENAME openrct2.svg") install(FILES "distribution/linux/openrct2.desktop" DESTINATION "share/applications") +install(DIRECTORY "distribution/man/" DESTINATION "share/man/man6" FILES_MATCHING PATTERN "*.6") +install(CODE "execute_process(COMMAND find \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/man6 -type f -exec gzip -f \"{}\" \;)")