81a7c45f168ed8742706b40cf386411b63b3a7f4
[libam7xxx.git] / doc / CMakeLists.txt
1 # add a target to generate API documentation with Doxygen
2 find_package(Doxygen)
3 if(DOXYGEN_FOUND)
4   configure_file("Doxyfile.in" "Doxyfile" @ONLY IMMEDIATE)
5
6   add_custom_target(doc
7     ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
8     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
9     COMMENT "Generating API documentation with Doxygen" VERBATIM
10   )
11 endif(DOXYGEN_FOUND)