CMakeLists.txt 761 Bytes
Newer Older
1
# add a target to generate API documentation with Doxygen
2 3
OPTION( SCALFMM_BUILD_DOC "Set to ON to build the Doxygen documentation " OFF )
IF(SCALFMM_BUILD_DOC)
COULAUD Olivier's avatar
COULAUD Olivier committed
4 5 6 7 8 9 10 11 12
  find_package(Doxygen)
  if(DOXYGEN_FOUND)
    configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
    add_custom_target(
      doc
      ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
      COMMENT "Generating API documentation with Doxygen" VERBATIM
      )
13
#    INSTALL(FILES   ${SCALFMM_BINARY_DIR}/Doc/scalfmm.tag
14 15
#      DESTINATION doc/
#      )
16
#    INSTALL(DIRECTORY   ${SCALFMM_BINARY_DIR}/Doc/html
17 18
#      DESTINATION doc/
#      )
COULAUD Olivier's avatar
COULAUD Olivier committed
19
  endif(DOXYGEN_FOUND)
20
endif(SCALFMM_BUILD_DOC)