From 6985a2cfbf6299de4dbc9a5031d87cc3e1d4d01a Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 22 Dec 2021 10:39:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=89=D0=B8=D0=B5=20=D1=86=D0=B5?= =?UTF-8?q?=D0=BB=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/functions/MyxCMakeDocBreathe.cmake | 5 +++++ MyxCMake/functions/MyxCMakeDocDoxygen.cmake | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/MyxCMake/functions/MyxCMakeDocBreathe.cmake b/MyxCMake/functions/MyxCMakeDocBreathe.cmake index 0b69f09..3aa8db1 100644 --- a/MyxCMake/functions/MyxCMakeDocBreathe.cmake +++ b/MyxCMake/functions/MyxCMakeDocBreathe.cmake @@ -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) diff --git a/MyxCMake/functions/MyxCMakeDocDoxygen.cmake b/MyxCMake/functions/MyxCMakeDocDoxygen.cmake index 7eefe39..a59b4d4 100644 --- a/MyxCMake/functions/MyxCMakeDocDoxygen.cmake +++ b/MyxCMake/functions/MyxCMakeDocDoxygen.cmake @@ -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()