forked from motis-project/utl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initiating some documentation using Doxygen & Sphinx
- Loading branch information
Showing
11 changed files
with
3,081 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,8 @@ | |
*.sublime-* | ||
/.idea | ||
/deps | ||
/docs/html | ||
/docs/xml | ||
/.vscode | ||
_build/ | ||
.clang-tidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
find_package(Doxygen REQUIRED) | ||
|
||
# Find all the public headers | ||
get_target_property(UTL_PUBLIC_HEADER_DIR utl INTERFACE_INCLUDE_DIRECTORIES) | ||
file(GLOB_RECURSE UTL_PUBLIC_HEADERS ${UTL_PUBLIC_HEADER_DIR}/*.h) | ||
|
||
#This will be the main output of our command | ||
set(DOXYGEN_INDEX_FILE ${CMAKE_CURRENT_SOURCE_DIR}/html/index.html) | ||
|
||
add_custom_command(OUTPUT ${DOXYGEN_INDEX_FILE} | ||
DEPENDS ${UTL_PUBLIC_HEADERS} | ||
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
MAIN_DEPENDENCY Doxyfile | ||
COMMENT "Generating docs") | ||
|
||
add_custom_target(Doxygen ALL DEPENDS ${DOXYGEN_INDEX_FILE}) |
Oops, something went wrong.