diff options
author | Marius Gripsgard <marius@ubports.com> | 2021-12-30 03:01:58 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2022-08-11 09:57:24 +0000 |
commit | 78e754c1844e1e88b0480312ad23305e39c514ae (patch) | |
tree | d3306d02efbbccee04d17f1bd98ac3cac933b8dd | |
parent | b6f3683c63ceec32760da6a7018ef9c3c0c1952b (diff) |
doc: Install man pages with cmake
Change-Id: Ibce74cf1b524c8c08b38dfc76549b4723ea705b3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | cmake/QbsDocumentation.cmake | 1 | ||||
-rw-r--r-- | doc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | doc/man/CMakeLists.txt | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/cmake/QbsDocumentation.cmake b/cmake/QbsDocumentation.cmake index a1ce44057..cc6752b37 100644 --- a/cmake/QbsDocumentation.cmake +++ b/cmake/QbsDocumentation.cmake @@ -1,6 +1,7 @@ # Options: option(QBS_INSTALL_HTML_DOCS "Whether to install Qbs HTML Documentation" OFF) option(QBS_INSTALL_QCH_DOCS "Whether to install Qbs QCH Documentation" OFF) +option(QBS_INSTALL_MAN_PAGE "Whether to install Qbs man page" OFF) # Get information on directories from qmake # as this is not yet exported by cmake. diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 5b8ac7636..04ff12470 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -26,3 +26,5 @@ add_qbs_documentation( ${_DOC_IMAGES_SOURCES} ${_DOC_TARGETS_SOURCES} ) + +add_subdirectory(man) diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt new file mode 100644 index 000000000..b9ef2020a --- /dev/null +++ b/doc/man/CMakeLists.txt @@ -0,0 +1,3 @@ +if (QBS_INSTALL_MAN_PAGE) + install(FILES qbs.1 DESTINATION ${QBS_RESOURCES_INSTALL_DIR}/man/man1 COMPONENT qbs_man_page) +endif() |