You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.4 KiB

  1. find_package(Doxygen)
  2. # Add a target to generate API documentation with Doxygen
  3. if(DOXYGEN_FOUND)
  4. # We use the doxygen command of CMake instead of using the separate config file
  5. set(DOXYGEN_PROJECT_NAME "Storm")
  6. set(DOXYGEN_PROJECT_BRIEF "A Modern Probabilistic Model Checker")
  7. set(DOXYGEN_BRIEF_MEMBER_DESC YES)
  8. set(DOXYGEN_REPEAT_BRIEF YES)
  9. set(DOXYGEN_JAVADOC_AUTOBRIEF YES)
  10. set(DOXYGEN_QT_AUTOBRIEF YES)
  11. set(DOXYGEN_EXTRACT_ALL YES)
  12. set(DOXYGEN_EXTRACT_STATIC YES)
  13. set(DOXYGEN_SOURCE_BROWSER YES)
  14. set(DOXYGEN_GENERATE_TREEVIEW YES)
  15. set(DOXYGEN_CASE_SENSE_NAMES NO)
  16. set(DOXYGEN_HTML_TIMESTAMP YES)
  17. set(DOXYGEN_CREATE_SUBDIRS YES)
  18. set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc")
  19. doxygen_add_docs(
  20. doc
  21. "${PROJECT_SOURCE_DIR}/src"
  22. COMMENT "Generating API documentation with Doxygen"
  23. )
  24. # These commands can be used if the separate config files should be used
  25. #set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
  26. #string(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src")
  27. #configure_file("${CMAKE_CURRENT_SOURCE_DIR}/resources/doxygen/Doxyfile.in.new" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
  28. #add_custom_target(doc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMENT "Generating API documentation with Doxygen" VERBATIM)
  29. endif(DOXYGEN_FOUND)