diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f2a6ae972a43aeabd00895be6c9befd037278f4..488803ae4cf4f2e4155f7a871c122264c53e5401 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,4 +13,17 @@ src/testCommandList.cpp ) # Add include directory -target_include_directories("Info3_Praktikum-test" PUBLIC include/) \ No newline at end of file +target_include_directories("Info3_Praktikum-test" PUBLIC include/) + + +# Doxygen documentation +find_package(Doxygen) +if (DOXYGEN_FOUND) + add_custom_target( doc_doxygen ALL + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/.. + COMMENT "Generating API documentation with Doxygen" + VERBATIM ) +else (DOXYGEN_FOUND) + message("Doxygen need to be installed to generate the doxygen documentation") +endif (DOXYGEN_FOUND) \ No newline at end of file