Skip to content
Snippets Groups Projects
Verified Commit 89e2e385 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#20] Added Doxygen target in cmake

parent f4d065a0
Branches
Tags
1 merge request!11Resolve "Add Doxygen comments to existing code"
...@@ -8,5 +8,3 @@ ...@@ -8,5 +8,3 @@
build/ build/
cmake-build-debug/ cmake-build-debug/
cmake-build-release/ cmake-build-release/
doc/
...@@ -57,3 +57,5 @@ target_include_directories(vkcv SYSTEM BEFORE PRIVATE ${vkcv_includes}) ...@@ -57,3 +57,5 @@ target_include_directories(vkcv SYSTEM BEFORE PRIVATE ${vkcv_includes})
target_link_libraries(vkcv ${vkcv_libraries}) target_link_libraries(vkcv ${vkcv_libraries})
add_subdirectory(projects) add_subdirectory(projects)
include(${vkcv_config}/ext/Doxygen.cmake)
# check if Doxygen is installed
find_package(Doxygen)
if (DOXYGEN_FOUND)
# note the option ALL which allows to build the docs together with the application
add_custom_target( doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/Doxyfile
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
else (DOXYGEN_FOUND)
message(WARNING "Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)
html/
latex/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment