Description: Allow proper build of doxygen documentation This patch changes the OUTPUT_DIRECTORY variable in doxyfile.in so that the output can be later moved into the corresponding debian package. It also modifies the root CMakeLists.txt file to properly call doxygen during the package build and to install the resulting files. Author: Muammar El Khatib Author: Author: Olek Wojnar Last-Update: <2019-03-31> --- a/doc/doxygen/doxyfile.in +++ b/doc/doxygen/doxyfile.in @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = "Crazy Eddie's GUI System" PROJECT_NUMBER = "${CEGUI_VERSION}" -OUTPUT_DIRECTORY = +OUTPUT_DIRECTORY = "${PROJECT_BINARY_DIR}/doc/doxygen" OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = YES BRIEF_MEMBER_DESC = YES --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -659,10 +659,12 @@ add_subdirectory(datafiles) if (DOXYGEN_FOUND) - add_custom_target(html - "${DOXYGEN_EXECUTABLE}" + add_custom_target(html ALL + "${DOXYGEN_EXECUTABLE}" "${PROJECT_BINARY_DIR}/doc/doxygen/doxyfile" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/doc/doxygen" COMMENT "Generating documentation" VERBATIM) + install(DIRECTORY "${PROJECT_BINARY_DIR}/doc/doxygen/html" + DESTINATION "share/doc/libcegui-mk2-${CEGUI_VERSION}") endif() if (CEGUI_BUILD_TESTS OR CEGUI_BUILD_PERFORMANCE_TESTS OR CEGUI_BUILD_DATAFILES_TEST)