Merge pull request #7832 from alalek:install_docs_target

pull/7853/head
Alexander Alekhin 8 years ago
commit 8b92151ef0
  1. 6
      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()

Loading…
Cancel
Save