Skip to content

Commit 8b92151

Browse files
committed
Merge pull request opencv#7832 from alalek:install_docs_target
2 parents 1451f7d + c98330b commit 8b92151

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,10 @@ if(BUILD_DOCS AND DOXYGEN_FOUND)
171171
DESTINATION "${OPENCV_DOC_INSTALL_PATH}"
172172
COMPONENT "docs" OPTIONAL
173173
)
174+
175+
# Alias to build/install docs only
176+
add_custom_target(install_docs
177+
DEPENDS doxygen
178+
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=docs -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
179+
)
174180
endif()

0 commit comments

Comments
 (0)