diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2014-12-10 01:13:42 +0300 |
---|---|---|
committer | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2015-07-07 08:11:10 +0300 |
commit | 7383e4d722809e2460bd4e87ea7fdbef5f64c303 (patch) | |
tree | ef86da2a0b1202888e9d421f2fdd83f5de9ffeb6 | |
parent | 2531b9095491966c7dbcf717a8b6d3dc72c0fb9f (diff) | |
download | cmake-7383e4d722809e2460bd4e87ea7fdbef5f64c303.tar.gz |
CMake: Install COMPONENTs (sphinx-man)
Added component sphinx-man
-rw-r--r-- | CMakeCPack.cmake | 3 | ||||
-rw-r--r-- | CMakeCPackOptions.cmake.in | 5 | ||||
-rw-r--r-- | Utilities/Sphinx/CMakeLists.txt | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake index b299e7f96a..0eda2bd063 100644 --- a/CMakeCPack.cmake +++ b/CMakeCPack.cmake @@ -83,6 +83,9 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") if(BUILD_QtDialog) list(APPEND _CPACK_IFW_COMPONENTS_ALL cmake-gui) endif() + if(SPHINX_MAN) + list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-man) + endif() if(SPHINX_HTML) list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-html) endif() diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in index 07c7017dcd..51ee4dbd7e 100644 --- a/CMakeCPackOptions.cmake.in +++ b/CMakeCPackOptions.cmake.in @@ -117,6 +117,11 @@ if(CPACK_GENERATOR MATCHES "IFW") set(CPACK_IFW_COMPONENT_GROUP_DOCUMENTATION_VERSION "@_CPACK_IFW_PACKAGE_VERSION@") + set(CPACK_COMPONENT_SPHINX-MAN_DISPLAY_NAME "man") + set(CPACK_COMPONENT_SPHINX-MAN_GROUP Documentation) + set(CPACK_IFW_COMPONENT_SPHINX-MAN_NAME "SphinxMan") + set(CPACK_IFW_COMPONENT_SPHINX-MAN_VERSION "@_CPACK_IFW_PACKAGE_VERSION@") + set(CPACK_COMPONENT_SPHINX-HTML_DISPLAY_NAME "HTML") set(CPACK_COMPONENT_SPHINX-HTML_GROUP Documentation) set(CPACK_IFW_COMPONENT_SPHINX-HTML_NAME "SphinxHTML") diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt index f2a3727fd4..a76ee26533 100644 --- a/Utilities/Sphinx/CMakeLists.txt +++ b/Utilities/Sphinx/CMakeLists.txt @@ -154,7 +154,8 @@ if(SPHINX_MAN) set(name "${CMAKE_MATCH_1}") set(sec "${CMAKE_MATCH_2}") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec} - DESTINATION ${CMAKE_MAN_DIR}/man${sec}) + DESTINATION ${CMAKE_MAN_DIR}/man${sec} + COMPONENT sphinx-man) endif() endforeach() endif() |