|
|
|
@ -837,17 +837,25 @@ if (APPLE)
|
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
|
|
# Doxygen Target -- simply run 'make doc' or 'make doc_pages'
|
|
|
|
|
# output directory for 'make doc' is "${OpenMW_BINARY_DIR}/docs/Doxygen"
|
|
|
|
|
# output directory for 'make doc_pages' is "${DOXYGEN_PAGES_OUTPUT_DIR}" if defined
|
|
|
|
|
# or "${OpenMW_BINARY_DIR}/docs/Pages" otherwise
|
|
|
|
|
find_package(Doxygen)
|
|
|
|
|
if(DOXYGEN_FOUND)
|
|
|
|
|
configure_file(${OpenMW_SOURCE_DIR}/docs/Doxyfile.in ${OpenMW_BINARY_DIR}/docs/Doxyfile @ONLY)
|
|
|
|
|
configure_file(${OpenMW_SOURCE_DIR}/docs/DoxyfilePages.in ${OpenMW_BINARY_DIR}/docs/DoxyfilePages @ONLY)
|
|
|
|
|
if (DOXYGEN_FOUND)
|
|
|
|
|
# determine output directory for doc_pages
|
|
|
|
|
if (NOT DEFINED DOXYGEN_PAGES_OUTPUT_DIR)
|
|
|
|
|
set(DOXYGEN_PAGES_OUTPUT_DIR "${OpenMW_BINARY_DIR}/docs/Pages")
|
|
|
|
|
endif ()
|
|
|
|
|
configure_file(${OpenMW_SOURCE_DIR}/docs/Doxyfile.cmake ${OpenMW_BINARY_DIR}/docs/Doxyfile @ONLY)
|
|
|
|
|
configure_file(${OpenMW_SOURCE_DIR}/docs/DoxyfilePages.cmake ${OpenMW_BINARY_DIR}/docs/DoxyfilePages @ONLY)
|
|
|
|
|
add_custom_target(doc
|
|
|
|
|
${DOXYGEN_EXECUTABLE} ${OpenMW_BINARY_DIR}/docs/Doxyfile
|
|
|
|
|
WORKING_DIRECTORY ${OpenMW_BINARY_DIR}
|
|
|
|
|
COMMENT "Generating API documentation with Doxygen (from Doxyfile)" VERBATIM)
|
|
|
|
|
COMMENT "Generating Doxygen documentation at ${OpenMW_BINARY_DIR}/docs/Doxygen"
|
|
|
|
|
VERBATIM)
|
|
|
|
|
add_custom_target(doc_pages
|
|
|
|
|
${DOXYGEN_EXECUTABLE} ${OpenMW_BINARY_DIR}/docs/DoxyfilePages
|
|
|
|
|
WORKING_DIRECTORY ${OpenMW_BINARY_DIR}
|
|
|
|
|
COMMENT "Generating API documentation with Doxygen (from DoxyfilePages)" VERBATIM)
|
|
|
|
|
endif(DOXYGEN_FOUND)
|
|
|
|
|
COMMENT "Generating documentation for the github-pages at ${DOXYGEN_PAGES_OUTPUT_DIR}" VERBATIM)
|
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|