Anonymous avatar Anonymous committed 9c816fb Merge

Updated the doxygen for building message documentation

Comments (0)

Files changed (3)

doc/CMakeLists.txt

   configure_file(${CMAKE_SOURCE_DIR}/doc/gazebo_messages.in
                  ${CMAKE_BINARY_DIR}/gazebo_messages.dox @ONLY)
 
-  add_custom_target(doc ${DOXYGEN_EXECUTABLE}
-    ${CMAKE_BINARY_DIR}/gazebo.dox
+  add_custom_target(doc
+
+    # Generate the API documentation
+    ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/gazebo.dox
     WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
     COMMAND cp ${CMAKE_SOURCE_DIR}/doc/gazebo_logo.png
             ${CMAKE_BINARY_DIR}/doxygen/html
     COMMAND cp ${CMAKE_SOURCE_DIR}/doc/search.js
             ${CMAKE_BINARY_DIR}/doxygen/html/search
+    COMMAND make -C ${CMAKE_BINARY_DIR}/doxygen/latex
+    COMMAND mv ${CMAKE_BINARY_DIR}/doxygen/latex/refman.pdf
+            ${CMAKE_BINARY_DIR}/doxygen/latex/gazebo-${GAZEBO_VERSION_FULL}.pdf
+
+    # Generate the messages documentation
+    COMMAND doxygen ${CMAKE_BINARY_DIR}/gazebo_messages.dox
+    COMMAND make -C ${CMAKE_BINARY_DIR}/doxygen_msgs/latex
+    COMMAND mv ${CMAKE_BINARY_DIR}/doxygen_msgs/latex/refman.pdf
+            ${CMAKE_BINARY_DIR}/doxygen_msgs/latex/gazebo-msgs-${GAZEBO_VERSION_FULL}.pdf
+
     COMMENT "Generating API documentation with Doxygen" VERBATIM)
-
-  add_custom_target(msgs_doc ${DOXYGEN_EXECUTABLE}
-    ${CMAKE_BINARY_DIR}/gazebo_messages.dox
-    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
-    COMMENT "Generating MSGS documentation with Doxygen" VERBATIM)
-
 endif()
 
 # plain latex in the generated Makefile. Set this option to YES to get a
 # higher quality PDF documentation.
 
-USE_PDFLATEX           = NO
+USE_PDFLATEX           = YES
 
 # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
 # command to the generated LaTeX files. This will instruct LaTeX to keep

doc/gazebo_messages.in

 # plain latex in the generated Makefile. Set this option to YES to get a
 # higher quality PDF documentation.
 
-USE_PDFLATEX           = NO
+USE_PDFLATEX           = YES
 
 # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
 # command to the generated LaTeX files. This will instruct LaTeX to keep
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.