Commit 131a5e19 authored by Antonio Cervone's avatar Antonio Cervone
Browse files

compile doxygen documentation

parent ad4978f5
......@@ -250,6 +250,6 @@ enable_testing()
add_subdirectory(testsuite)
# Documentation (not yet working, don't activate)
if (LIFE_BUILD_DOCS)
#if (LIFE_BUILD_DOCS)
add_subdirectory(doc)
endif()
#endif()
# Macros for LaTeX
include (UseLATEX)
add_subdirectory (manual)
#include (UseLATEX)
#add_subdirectory (manual)
# add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
# copy LifeV logo
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/common/LifeV.png
${CMAKE_CURRENT_BINARY_DIR}/api/html/LifeV.png COPYONLY)
# this can be substituted only with cmake >= 2.8
# file(COPY yourDir DESTINATION yourDestination)
# generate Doxyfile
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
# add doc target
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif(DOXYGEN_FOUND)
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment