##############################################################################
# @file  CMakeLists.txt
# @brief Build configuration of software documentation.
#
# This build configuration builds and/or installs the documentation of the
# software package. The documentation can be divided into user documentation
# (user manual) and developer documentation (developer manual). For
# developers, the documentation of the API is of particular interest,
# where developers who are responsible for maintaining the software
# may be provided with even more detailed documentation of the implementation.
#
# Copyright (c) 2012 University of Pennsylvania.
#
# This file is part of DTI-DROID.
#
# DTI-DROID is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DTI-DROID is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DTI-DROID.  If not, see <http://www.gnu.org/licenses/>.
#
# Contact: SBIA Group <sbia-software at uphs.upenn.edu>
##############################################################################

# ============================================================================
# API documentation
# ============================================================================

# The following CMake code adds an API documentation to the 'doc' target which
# is automatically generated by Doxygen from the in-source code comments.
# Please refer to the documentation of basis_add_doc() for details.
#
# See basis_add_doc()

basis_add_doc (api GENERATOR Doxygen)

# ============================================================================
# manuals
# ============================================================================

# Add documentation files in the current directory and/or install these files
# using the macro basis_add_doc().
#
# See basis_add_doc()

if (EXISTS UserManual.pdf)
  basis_add_doc (UserManual.pdf OUTPUT_NAME "${PROJECT_NAME} User Manual.pdf")
endif ()
