CMakeLists.txt 625 B

123456789101112131415161718
  1. FIND_PACKAGE(Doxygen)
  2. if(DOXYGEN_FOUND)
  3. set(INPUTDIRS
  4. "\"${CMAKE_CURRENT_SOURCE_DIR}../src/core\"
  5. \"${CMAKE_CURRENT_SOURCE_DIR}../src/gui\"
  6. \"${CMAKE_CURRENT_SOURCE_DIR}../src/tracks\"
  7. \"${CMAKE_CURRENT_SOURCE_DIR}../include\"
  8. \"${CMAKE_CURRENT_SOURCE_DIR}../plugins\"")
  9. CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
  10. ADD_CUSTOM_TARGET(doc
  11. COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
  12. WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
  13. COMMENT "Generating API documentation with Doxygen"
  14. SOURCES Doxyfile.in)
  15. endif(DOXYGEN_FOUND)