Merge pull request #61 from mabrand/fix2
Added BUILD_DOCUMENTATION option.
This commit is contained in:
commit
043c3d2f2f
@ -941,20 +941,27 @@ ENDIF()
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
FIND_PACKAGE(Doxygen)
|
OPTION(
|
||||||
|
VMIME_BUILD_DOCUMENTATION
|
||||||
|
"Build documentation"
|
||||||
|
ON
|
||||||
|
)
|
||||||
|
|
||||||
IF(DOXYGEN_FOUND)
|
IF(VMIME_BUILD_DOCUMENTATION)
|
||||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile @ONLY)
|
FIND_PACKAGE(Doxygen)
|
||||||
|
|
||||||
# Make a target so that documentation can be generated by running "make doc"
|
IF(DOXYGEN_FOUND)
|
||||||
ADD_CUSTOM_TARGET(
|
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile @ONLY)
|
||||||
doc
|
|
||||||
${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
||||||
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
||||||
)
|
|
||||||
ENDIF(DOXYGEN_FOUND)
|
|
||||||
|
|
||||||
|
# Make a target so that documentation can be generated by running "make doc"
|
||||||
|
ADD_CUSTOM_TARGET(
|
||||||
|
doc
|
||||||
|
${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
||||||
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
|
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
||||||
|
)
|
||||||
|
ENDIF(DOXYGEN_FOUND)
|
||||||
|
ENDIF(VMIME_BUILD_DOCUMENTATION)
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Sanity checks
|
# Sanity checks
|
||||||
|
Loading…
Reference in New Issue
Block a user