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.

36 lines
1.6 KiB

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