summaryrefslogtreecommitdiffstats
path: root/utils/sys-utils/CMakeLists.txt
diff options
context:
space:
mode:
authorManuel Bentele2020-09-15 17:56:51 +0200
committerManuel Bentele2020-09-16 07:37:56 +0200
commit7090cf6a7a4da56b17332bfa69ad4d92a0ce2eb8 (patch)
tree30769bba81fe6c03c80545216df1f16f028f1253 /utils/sys-utils/CMakeLists.txt
parentPorted RAW file format kernel module to Linux 4.18.x (diff)
downloadxloop-7090cf6a7a4da56b17332bfa69ad4d92a0ce2eb8.tar.gz
xloop-7090cf6a7a4da56b17332bfa69ad4d92a0ce2eb8.tar.xz
xloop-7090cf6a7a4da56b17332bfa69ad4d92a0ce2eb8.zip
Added RPM package creation and moved to relative CMake installation paths
Diffstat (limited to 'utils/sys-utils/CMakeLists.txt')
-rw-r--r--utils/sys-utils/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/sys-utils/CMakeLists.txt b/utils/sys-utils/CMakeLists.txt
index 38e2def..01295d9 100644
--- a/utils/sys-utils/CMakeLists.txt
+++ b/utils/sys-utils/CMakeLists.txt
@@ -10,7 +10,10 @@ target_include_directories(xlosetup PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../lib ${
install(TARGETS xlosetup DESTINATION bin
COMPONENT main)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/xlosetup.8
- DESTINATION /usr/share/man/man8
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
- COMPONENT main)
+# install xlosetup man page
+# NOTE: installation is done via a directory install with file matching pattern to support CPackRPM's automatic compression of man pages
+install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
+ DESTINATION share/man/man8
+ COMPONENT main
+ USE_SOURCE_PERMISSIONS
+ FILES_MATCHING PATTERN *.8*)