CMake: Install COMPONENTs (sphinx-man)
Added component sphinx-man
This commit is contained in:
parent
2531b90954
commit
7383e4d722
|
@ -83,6 +83,9 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
if(BUILD_QtDialog)
|
if(BUILD_QtDialog)
|
||||||
list(APPEND _CPACK_IFW_COMPONENTS_ALL cmake-gui)
|
list(APPEND _CPACK_IFW_COMPONENTS_ALL cmake-gui)
|
||||||
endif()
|
endif()
|
||||||
|
if(SPHINX_MAN)
|
||||||
|
list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-man)
|
||||||
|
endif()
|
||||||
if(SPHINX_HTML)
|
if(SPHINX_HTML)
|
||||||
list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-html)
|
list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-html)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -117,6 +117,11 @@ if(CPACK_GENERATOR MATCHES "IFW")
|
||||||
set(CPACK_IFW_COMPONENT_GROUP_DOCUMENTATION_VERSION
|
set(CPACK_IFW_COMPONENT_GROUP_DOCUMENTATION_VERSION
|
||||||
"@_CPACK_IFW_PACKAGE_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_DISPLAY_NAME "HTML")
|
||||||
set(CPACK_COMPONENT_SPHINX-HTML_GROUP Documentation)
|
set(CPACK_COMPONENT_SPHINX-HTML_GROUP Documentation)
|
||||||
set(CPACK_IFW_COMPONENT_SPHINX-HTML_NAME "SphinxHTML")
|
set(CPACK_IFW_COMPONENT_SPHINX-HTML_NAME "SphinxHTML")
|
||||||
|
|
|
@ -154,7 +154,8 @@ if(SPHINX_MAN)
|
||||||
set(name "${CMAKE_MATCH_1}")
|
set(name "${CMAKE_MATCH_1}")
|
||||||
set(sec "${CMAKE_MATCH_2}")
|
set(sec "${CMAKE_MATCH_2}")
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec}
|
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()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue