###################### # # Copyright (C) 2010 - 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. # ###################### IF(WITH_API_DOCS) # add a target to generate API documentation with Doxygen FIND_PACKAGE(Doxygen REQUIRED) SET(APIDOC_DIR ${CMAKE_BINARY_DIR}/doc/src) SET(DOXYGEN_OUTPUT "${APIDOC_DIR}/html/index.html") CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) ADD_CUSTOM_COMMAND(OUTPUT ${DOXYGEN_OUTPUT} COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ADD_CUSTOM_TARGET( apidocs ALL DEPENDS "${DOXYGEN_OUTPUT}" COMMENT "Generating API documentation with Doxygen" ) # package documentation #INSTALL(SCRIPT ${CMAKE_SOURCE_DIR}/cmake/doxygen_helper.cmake.in) INSTALL(DIRECTORY "${APIDOC_DIR}/html" DESTINATION ${DOCDIR} COMPONENT devapidocs ) ENDIF(WITH_API_DOCS)