From 91e5fe9116f32d39a0a4714fb2fcc539eb1820eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 14 Aug 2020 20:49:51 +0200 Subject: [PATCH] Included autogenerated code to the ign_create_docs function (#76) Signed-off-by: ahcorde --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0aa2484..ff61f60e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,13 @@ configure_file(${CMAKE_SOURCE_DIR}/tutorials.md.in ${CMAKE_BINARY_DIR}/tutorials ign_create_docs( API_MAINPAGE_MD "${CMAKE_BINARY_DIR}/api.md" TUTORIALS_MAINPAGE_MD "${CMAKE_BINARY_DIR}/tutorials.md" + AUTOGENERATED_DOC "${CMAKE_BINARY_DIR}/include/ignition/msgs/" TAGFILES "${IGNITION-MATH_DOXYGEN_TAGFILE} = ${IGNITION-MATH_API_URL}" ) + +# Wait to build the doc for the autogenerated code +# The TARGET will exist if doxygen is installed +if(TARGET doc) + add_dependencies(doc ignition-msgs${PROJECT_VERSION_MAJOR}) +endif()