Commit 647dd881 authored by Daniel Wortmann's avatar Daniel Wortmann

Added a target for generating doxygen documentation

make doc will now generate html&latex documentation
parent dcded287
......@@ -9,8 +9,8 @@ site_name(sitename)
set (configfile "NOTFOUND")
if (${Fleur_custom_toolchain})
set (configfile "cmake/cmake.config")
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set (configfile "cmake/cmake.darwin.config")
elseif ($ENV{FC} MATCHES "gfortran.*")
set (configfile "cmake/cmake.gfortran.config")
elseif (${sitename} MATCHES "iff.*")
set (configfile "cmake/cmake.iff.config")
elseif (${sitename} MATCHES "jrl.*")
......@@ -25,6 +25,8 @@ elseif (${sitename} MATCHES "cluster")
set (configfile "cmake/cmake.rwth.config")
elseif (${sitename} MATCHES "judge")
set (configfile "cmake/cmake.judge.config")
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set (configfile "cmake/cmake.darwin.config")
endif ()
if (${configfile} MATCHES "NOTFOUND")
......
......@@ -28,6 +28,7 @@ include(ldau/CMakeLists.txt)
include(mix/CMakeLists.txt)
include(vgen/CMakeLists.txt)
include(inpgen/CMakeLists.txt)
include(docs/CMakeLists.txt)
if (${Fleur_uses_MPI})
include(mpi/CMakeLists.txt)
......
# add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/docs/Doxyfile @ONLY)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/docs/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docs
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif(DOXYGEN_FOUND)
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
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