use acg_create_doc_target

This commit is contained in:
Max Lyon
2020-12-02 12:28:10 +01:00
parent 06c0032c36
commit 5550fb0714
2 changed files with 2 additions and 5 deletions

View File

@@ -3,10 +3,7 @@ include (ACGDoxygen)
IF (DOXYGEN_FOUND)
# Add a documentation install target
add_custom_target(doc-install COMMENT "Installing Documentation" VERBATIM )
# Build Documentation before installing it
add_dependencies(doc-install doc)
acg_create_doc_target(doc-install)
if (TARGET doc-install)
acg_copy_after_build (doc-install "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/html" "${CMAKE_INSTALL_PREFIX}/${ACG_PROJECT_DATADIR}/doc/html")