aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-04-15 21:53:50 +1000
committerGitHub <noreply@github.com>2022-04-15 21:53:50 +1000
commit715d7d4424ae34f3ff60d03505197b26ebe660be (patch)
tree7682268367f6f62cf7f994541e4db76507f17214 /CMakeLists.txt
parent4ff1306e0c6c4c1a8c9b3c2ee72f8e7f0aa590dc (diff)
parentfa2b3bcc633ce6f658d659fb3c0a87ddb6bc91ba (diff)
downloadPrismLauncher-715d7d4424ae34f3ff60d03505197b26ebe660be.tar.gz
PrismLauncher-715d7d4424ae34f3ff60d03505197b26ebe660be.tar.bz2
PrismLauncher-715d7d4424ae34f3ff60d03505197b26ebe660be.zip
Merge pull request #417 from Scrumplex/feat-install-manpage
Install manpage on Linux system builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d45d4975..1c51d7d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -204,6 +204,7 @@ elseif(UNIX)
set(LAUNCHER_DESKTOP_DEST_DIR "share/applications" CACHE STRING "Path to the desktop file directory")
set(LAUNCHER_METAINFO_DEST_DIR "share/metainfo" CACHE STRING "Path to the metainfo directory")
set(LAUNCHER_ICON_DEST_DIR "share/icons/hicolor/scalable/apps" CACHE STRING "Path to the scalable icon directory")
+ set(LAUNCHER_MAN_DEST_DIR "share/man/man6" CACHE STRING "Path to the man page directory")
# jars path is determined on runtime, relative to "Application root path", generally /usr for Launcher_PORTABLE=0
set(Launcher_APP_BINARY_DEFS "-DLAUNCHER_JARS_LOCATION=${JARS_DEST_DIR}")
@@ -211,6 +212,7 @@ elseif(UNIX)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_Desktop} DESTINATION ${LAUNCHER_DESKTOP_DEST_DIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_MetaInfo} DESTINATION ${LAUNCHER_METAINFO_DEST_DIR})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_SVG} DESTINATION ${LAUNCHER_ICON_DEST_DIR})
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_ManPage} DESTINATION ${LAUNCHER_MAN_DEST_DIR} RENAME "${Launcher_APP_BINARY_NAME}.6")
endif()
# install as bundle with no dependencies included