Общие цели для генерации документации

This commit is contained in:
Andrei Astafev 2021-12-22 10:39:17 +03:00
parent 6a11f9b43d
commit 6985a2cfbf
2 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,11 @@ function(myx_cmake_doc_breathe)
endif() endif()
endif() endif()
if(NOT TARGET myx-cmake-doc-breathe)
add_custom_target(myx-cmake-doc-breathe)
endif()
add_dependencies(myx-cmake-doc-breathe ${_target})
install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/breathe/html install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/breathe/html
COMPONENT doc OPTIONAL COMPONENT doc OPTIONAL
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/breathe) DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/breathe)

View File

@ -49,6 +49,10 @@ function(myx_cmake_doc_doxygen)
COMPONENT doc OPTIONAL COMPONENT doc OPTIONAL
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/doxygen) DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/doxygen)
endif() endif()
if(NOT TARGET myx-cmake-doc-doxygen)
add_custom_target(myx-cmake-doc-doxygen)
endif()
add_dependencies(myx-cmake-doc-doxygen ${_target})
else() else()
message(STATUS "MyxCMake: target ${_target} is already defined.") message(STATUS "MyxCMake: target ${_target} is already defined.")
endif() endif()