forked from USCiLab/cereal
-
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.
Build doxygen documentation with separate CMakeLists.
Extracted CMakelists.txt to doc subdirectory. Changed paths in doxyfile.in and CMakeLists accordingly. added doc as subdirectory in main CMakeLists.txt.
- Loading branch information
1 parent
bd839cc
commit 3fb59db
Showing
3 changed files
with
24 additions
and
23 deletions.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
find_package(Doxygen) | ||
if(DOXYGEN_FOUND) | ||
|
||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doxygen.in" "${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg" @ONLY) | ||
add_custom_target(doc | ||
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg" | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." | ||
COMMENT "Generating API documentation with Doxygen" VERBATIM | ||
) | ||
|
||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../scripts/updatedoc.in" "${CMAKE_CURRENT_BINARY_DIR}/updatedoc.sh" @ONLY) | ||
add_custom_target(update-doc | ||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/updatedoc.sh" | ||
DEPENDS doc | ||
COMMENT "Copying documentation to gh-pages branch" VERBATIM | ||
) | ||
|
||
endif(DOXYGEN_FOUND) |
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