# This is a post-build script because the html files are generated by the build process
# Set the following variables before calling this:
# API_DOC_DIR - the location of the javadoc generated doc files
# INSTALL_SUBDIR - the root of this install tree
MESSAGE (STATUS "Installing Javadoc API documentation")
SET(CARGS "-E copy_directory \"@API_DOC_DIR@\" \"@CMAKE_INSTALL_PREFIX@/doc/javadoc\"")
EXEC_PROGRAM(
"@CMAKE_COMMAND@"
ARGS ${CARGS}
RETURN_VALUE INSTALL_MYDIR_STATUS
)
IF (INSTALL_MYDIR_STATUS)
MESSAGE(FATAL_ERROR "Error installing Javadoc API documentation")
ENDIF (INSTALL_MYDIR_STATUS)