CMakeLists.txt 547 B

123456789101112131415161718192021
  1. find_package(Doxygen)
  2. if(NOT DOXYGEN_FOUND)
  3. message(FATAL_ERROR "Doxygen is needed to build the documentation.")
  4. endif()
  5. set(doxyfile bee2.doxy)
  6. set(doxy_html_index_file html/index.html)
  7. add_custom_command(OUTPUT ${doxy_html_index_file}
  8. COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile}
  9. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  10. DEPENDS ${doxyfile}
  11. COMMENT "Generating HTML documentation"
  12. )
  13. add_custom_target(docbee2 ALL DEPENDS ${doxy_html_index_file})
  14. install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html
  15. DESTINATION share/bee2/doc)