Codebase list votca-xtp / upstream/1.5 share / doc / CMakeLists.txt
upstream/1.5

Tree @upstream/1.5 (Download .tar.gz)

CMakeLists.txt @upstream/1.5raw · history · blame

find_package(Doxygen)
if (DOXYGEN_FOUND)
  configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
  add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/index.html
    COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
    DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
    COMMENT "Build doxygen documentation")
  add_custom_target(html-xtp DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)
  if(NOT TARGET html)
    add_custom_target(html)
  endif()
  add_dependencies(html html-xtp)
  set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES html)
endif (DOXYGEN_FOUND)