Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 217b5dfd authored by gsell's avatar gsell
Browse files

add option ENABLE_DOXYDOC for Doxygen documentation

parent b4b88ed6
No related branches found
No related tags found
No related merge requests found
...@@ -221,6 +221,8 @@ if (NO_FIELD_ASSIGN_OPTIMIZATION) ...@@ -221,6 +221,8 @@ if (NO_FIELD_ASSIGN_OPTIMIZATION)
ADD_DEFINITIONS(-DdontOPTIMIZE_FIELD_ASSIGNMENT) ADD_DEFINITIONS(-DdontOPTIMIZE_FIELD_ASSIGNMENT)
endif () endif ()
option (ENABLE_DOXYDOC "compile Doxygen documentation" OFF)
include (FindGit) include (FindGit)
if (GIT_FOUND) if (GIT_FOUND)
set (OPAL_WC_REVISION 0) set (OPAL_WC_REVISION 0)
...@@ -269,4 +271,4 @@ install ( ...@@ -269,4 +271,4 @@ install (
# mode:cmake # mode:cmake
# cmake-tab-width: 4 # cmake-tab-width: 4
# indent-tabs-mode:nil # indent-tabs-mode:nil
# End: # End:
\ No newline at end of file
...@@ -59,13 +59,16 @@ endif () ...@@ -59,13 +59,16 @@ endif ()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Doxygen # Doxygen
find_package(Doxygen) if (ENABLE_DOXYDOC)
if (DOXYGEN_FOUND) find_package(Doxygen)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile if (DOXYGEN_FOUND)
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
add_custom_target (optpilot-doc ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile )
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} add_custom_target (optpilot-doc
COMMENT "Generating API documentation with Doxygen" VERBATIM ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif ()
endif () endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment