diff options
author | chai <chaifix@163.com> | 2021-12-13 00:07:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-12-13 00:07:19 +0800 |
commit | 60cbbdec07ab7a5636eac5b3c024ae44e937f4d4 (patch) | |
tree | b2c7b0a868f18159dbc43d8954e1bd7668549a88 /Client/ThirdParty/Box2D/docs/CMakeLists.txt |
+init
Diffstat (limited to 'Client/ThirdParty/Box2D/docs/CMakeLists.txt')
-rw-r--r-- | Client/ThirdParty/Box2D/docs/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Client/ThirdParty/Box2D/docs/CMakeLists.txt b/Client/ThirdParty/Box2D/docs/CMakeLists.txt new file mode 100644 index 0000000..edffb4e --- /dev/null +++ b/Client/ThirdParty/Box2D/docs/CMakeLists.txt @@ -0,0 +1,32 @@ + +# NOTE: The order of this list determines the order of items in the Guides +# (i.e. Pages) list in the generated documentation + +set(BOX2D_DOXYGEN_SOURCES + "include/box2d" + "docs/overview.md" + "docs/hello.md" + "docs/testbed.md" + "docs/common.md" + "docs/collision.md" + "docs/dynamics.md" + "docs/loose_ends.md" + "docs/references.md" + "docs/FAQ.md") + +# Format the source list into a Doxyfile INPUT value that Doxygen can parse +foreach(path IN LISTS BOX2D_DOXYGEN_SOURCES) + set(BOX2D_DOXYGEN_INPUT "${BOX2D_DOXYGEN_INPUT} \\\n\"${CMAKE_SOURCE_DIR}/${path}\"") +endforeach() + +# https://cmake.org/cmake/help/latest/command/configure_file.html +configure_file(Doxyfile.in Doxyfile @ONLY) + +add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}" + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/docs" + COMMENT "Generating HTML documentation" VERBATIM) + +install( + DIRECTORY "${CMAKE_BINARY_DIR}/docs/html" + DESTINATION "${CMAKE_INSTALL_DOCDIR}" +) |