cmake: installing man and doc files compliant to distribution standard

This commit is contained in:
ideal
2019-03-11 14:57:00 +08:00
parent a3265742d1
commit 56e805c99b
+8 -2
View File
@@ -69,13 +69,19 @@ if (NOT WITH_DOC_MAN)
set_target_properties(doc-man PROPERTIES EXCLUDE_FROM_ALL TRUE)
else ()
install(DIRECTORY ${CMAKE_BINARY_DIR}/man/
DESTINATION man)
DESTINATION share/man/man1
FILES_MATCHING PATTERN "*.1"
)
install(DIRECTORY ${CMAKE_BINARY_DIR}/man/
DESTINATION share/man/man8
FILES_MATCHING PATTERN "*.8"
)
endif ()
if (NOT WITH_DOC_HTML)
set_target_properties(doc-html PROPERTIES EXCLUDE_FROM_ALL TRUE)
else ()
install(DIRECTORY ${CMAKE_BINARY_DIR}/html/
DESTINATION doc/html)
DESTINATION share/doc/${PROJECT_NAME})
endif ()
# This is required for custom command