add BUILD_DOCUMENTATION option

This commit is contained in:
Mark Brand 2013-11-16 12:00:16 +01:00
parent 7209863438
commit 3478becf9e

View File

@ -941,6 +941,13 @@ ENDIF()
##############################################################################
# Documentation
OPTION(
VMIME_BUILD_DOCUMENTATION
"Build documentation"
ON
)
IF(VMIME_BUILD_DOCUMENTATION)
FIND_PACKAGE(Doxygen)
IF(DOXYGEN_FOUND)
@ -954,7 +961,7 @@ IF(DOXYGEN_FOUND)
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
ENDIF(DOXYGEN_FOUND)
ENDIF(VMIME_BUILD_DOCUMENTATION)
##############################################################################
# Sanity checks