CMakeLists.txt (643B)
1 find_package(Doxygen) 2 3 if(DOXYGEN_FOUND) 4 # configuration variables 5 set(CMAKE_DOXYGEN_INPUT_LIST ${CMAKE_SOURCE_DIR}/src/) 6 set(DOXYGEN_OUTPUT_DIR html) 7 8 configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) 9 add_custom_command(OUTPUT ${DOXYGEN_OUTPUT_DIR} 10 DEPENDS rtosc-doc zynaddsubfx ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile 11 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile 12 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 13 COMMENT "Generating API documentation with Doxygen" VERBATIM) 14 add_custom_target(doc DEPENDS html) 15 endif() 16 17 add_subdirectory(bash-completion) 18