#------------------------------------------------------------------------------
# CMake config file for Reduze package
# subdir 'doc/reference'
#------------------------------------------------------------------------------

configure_file ("Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")

find_package (Doxygen)
if (DOXYGEN_FOUND)
	add_custom_target (doc #ALL (adds to default build)
		${DOXYGEN} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
		COMMENT "Generate source code documentation using Doxygen"
		DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
	message (STATUS "Added optional build target 'doc' for source code documentation")
endif (DOXYGEN_FOUND)

# TODO: install the tutorial (and bring it up to date before ;)
#install (FILES reduze.pdf DESTINATION doc)
