Added doc-install target

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@174 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2009-06-24 08:23:33 +00:00
parent a8fedf2853
commit 55824a721d

View File

@@ -4,6 +4,12 @@ if (TARGET doc)
acg_copy_after_build (doc "${CMAKE_CURRENT_SOURCE_DIR}/html" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/html") acg_copy_after_build (doc "${CMAKE_CURRENT_SOURCE_DIR}/html" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/html")
endif () endif ()
#install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/html # Add a documentation install target
# DESTINATION share/doc/OpenMesh add_custom_target(doc-install COMMENT "Installing Documentation" VERBATIM )
# )
# Build Documentation before installing it
add_dependencies(doc-install doc)
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")
endif()