...
This commit is contained in:
parent
2b9402d3f5
commit
27552a573e
11 changed files with 414 additions and 71 deletions
26
doc/CMakeLists.txt
Normal file
26
doc/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#######################################################################################
|
||||
### Doc generation using Doxygen
|
||||
#######################################################################################
|
||||
|
||||
IF (DOXYGEN_FOUND)
|
||||
SET(DOC_DIR ${CMAKE_BINARY_DIR}/doc CACHE PATH "documentation directory")
|
||||
SET(DOC_CONFIG_FILE "doxyfile" CACHE PATH "documentation configuration file")
|
||||
|
||||
# define the doc target
|
||||
IF (DOXYGEN_EXECUTABLE)
|
||||
ADD_CUSTOM_TARGET(doc
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOC_CONFIG_FILE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
ENDIF (DOXYGEN_EXECUTABLE)
|
||||
|
||||
# configure doxyfile file
|
||||
CONFIGURE_FILE(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/${DOC_CONFIG_FILE}.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${DOC_CONFIG_FILE}"
|
||||
)
|
||||
ELSE (DOXYGEN_FOUND)
|
||||
MESSAGE(STATUS "Unable to generate the documentation, Doxygen package not found")
|
||||
ENDIF (DOXYGEN_FOUND)
|
||||
|
||||
#######################################################################################
|
||||
Reference in a new issue