Общие цели для генерации документации
This commit is contained in:
parent
6a11f9b43d
commit
6985a2cfbf
@ -79,6 +79,11 @@ function(myx_cmake_doc_breathe)
|
||||
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
|
||||
COMPONENT doc OPTIONAL
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/breathe)
|
||||
|
@ -49,6 +49,10 @@ function(myx_cmake_doc_doxygen)
|
||||
COMPONENT doc OPTIONAL
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/doxygen)
|
||||
endif()
|
||||
if(NOT TARGET myx-cmake-doc-doxygen)
|
||||
add_custom_target(myx-cmake-doc-doxygen)
|
||||
endif()
|
||||
add_dependencies(myx-cmake-doc-doxygen ${_target})
|
||||
else()
|
||||
message(STATUS "MyxCMake: target ${_target} is already defined.")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user