Commit 217b5dfd authored by gsell's avatar gsell

add option ENABLE_DOXYDOC for Doxygen documentation

parent b4b88ed6
......@@ -221,6 +221,8 @@ if (NO_FIELD_ASSIGN_OPTIMIZATION)
ADD_DEFINITIONS(-DdontOPTIMIZE_FIELD_ASSIGNMENT)
endif ()
option (ENABLE_DOXYDOC "compile Doxygen documentation" OFF)
include (FindGit)
if (GIT_FOUND)
set (OPAL_WC_REVISION 0)
......@@ -269,4 +271,4 @@ install (
# mode:cmake
# cmake-tab-width: 4
# indent-tabs-mode:nil
# End:
\ No newline at end of file
# End:
......@@ -59,13 +59,16 @@ endif ()
#-----------------------------------------------------------------------------
# Doxygen
find_package(Doxygen)
if (DOXYGEN_FOUND)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
add_custom_target (optpilot-doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
if (ENABLE_DOXYDOC)
find_package(Doxygen)
if (DOXYGEN_FOUND)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
)
add_custom_target (optpilot-doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif ()
endif ()
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