diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 6825b5199fd93706b482cf648fef0b659f6aec50..f956cde4e8a96c73f42764db8b0bd8f5dc47bca6 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -171,4 +171,10 @@ if(BUILD_DOCS AND DOXYGEN_FOUND) DESTINATION "${OPENCV_DOC_INSTALL_PATH}" COMPONENT "docs" OPTIONAL ) + + # Alias to build/install docs only + add_custom_target(install_docs + DEPENDS doxygen + COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=docs -P "${CMAKE_BINARY_DIR}/cmake_install.cmake" + ) endif()